delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
DomainKey-Signature: | a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; q=dns; s=default; b=C5PT0cU76KSi8hHK | |
1UdOd5Ueew3jEE8efEkU5ufQtyB1AAkMCsU14dUWHd9lDs0Vnz54R8AT0Irhc/zH | |
d40kk9LRa9zTzjOn/t4JAg3vwYv7d0SoRt6LD2qYuDUwygWQpd2GiqKVFL9SnxbB | |
R83xV6bu40wgvlD++m4UK5esKz0= | |
DKIM-Signature: | v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id |
:list-unsubscribe:list-subscribe:list-archive:list-post | |
:list-help:sender:message-id:date:from:reply-to:mime-version:to | |
:subject:references:in-reply-to:content-type | |
:content-transfer-encoding; s=default; bh=fOUAY56PfLRnKWu3TdWzOd | |
PcAQE=; b=r9NTmIC0SHPu+12ywdzzJi3RArjsd086fZVo5fh5yM6HOT24195kv5 | |
5E2Zk9giCnovvCMjiJnd3BgnsOI/+buZfn8mcCmhVrPgjS4BHi2/57x9gXe6QYw8 | |
RJJ+vUI6v3m2MQEpmwRGBcuKUrTX68PMZvlhpBOyt0qN2yfsJjjxw= | |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Authentication-Results: | sourceware.org; auth=none |
X-Spam-SWARE-Status: | No, score=-1.3 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 |
X-HELO: | vms173025pub.verizon.net |
Message-id: | <52F44E59.6050904@cygwin.com> |
Date: | Thu, 06 Feb 2014 22:09:13 -0500 |
From: | "Larry Hall (Cygwin)" <reply-to-list-only-lh AT cygwin DOT com> |
Reply-to: | cygwin AT cygwin DOT com |
User-Agent: | Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 |
MIME-version: | 1.0 |
To: | cygwin AT cygwin DOT com |
Subject: | Re: Newbie Cygdrive questions |
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> |
In-reply-to: | <52F43166.6040303@ptd.net> |
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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |