This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Newbie Cygdrive questions
- From: "Larry Hall (Cygwin)" <reply-to-list-only-lh at cygwin dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 06 Feb 2014 22:09:13 -0500
- Subject: Re: Newbie Cygdrive questions
- Authentication-results: sourceware.org; auth=none
- References: <1737153647 dot 9966666 dot 1391712802938 dot JavaMail dot root at ptd dot net> <1037990834 dot 20140207043933 at mtu-net dot ru> <52F43166 dot 6040303 at ptd dot net>
- Reply-to: cygwin at cygwin dot com
On 2/6/2014 8:05 PM, Mike Rushton wrote:
I see.
What would you say to this ?
I have to use an EDI translator - it runs under windows/dos and had unix
versions
I was trying this ... but the program needed to see the path of a config
file ... after the -cp switch.
/cygdrive/c/gentran61SA/lftran /cygdrive/c/gentran61sa/data/EDN -id -cp
/cygdrive/c/Gentran61SA
It gave me errors can not open file /cygdrive/c/Gentran61SA\ediprim.cfg. It
was like the program could not figure out
what style of paths to use.
I changed it to : (escape out of bash and run this code)
! c:/gentran61SA/lftran c:/gentran61sa/data/EDN -id -cp c:/Gentran61SA
and it worked perfectly. Is there a better way to do this ?
Well, as I said before, Cygwin really prefers POSIX paths. But, as you've
found out, non-Cygwin programs won't understand POSIX paths. If you need
to interact with non-Cygwin programs, you'll either want to translate the
paths you send to them back to DOS-style paths with cygpath, set up links
that both Windows and Cygwin will understand without translation, or live
somewhat dangerously and use the path-style you found above. I'm sure
there are other flavors you could find that could also work, at least in
some cases. The cygpath route is the one approach that fully supports
POSIX paths and DOS-style paths.
--
Larry
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple