From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4973 invoked by alias); 7 Feb 2014 03:09:34 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 4964 invoked by uid 89); 7 Feb 2014 03:09:33 -0000 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 Received: from vms173025pub.verizon.net (HELO vms173025pub.verizon.net) (206.46.173.25) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 07 Feb 2014 03:09:33 +0000 Received: from [192.168.1.231] ([unknown] [74.104.179.122]) by vms173025.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0N0L00CCMVFB0HG0@vms173025.mailsrvcs.net> for cygwin@cygwin.com; Thu, 06 Feb 2014 21:09:15 -0600 (CST) Message-id: <52F44E59.6050904@cygwin.com> Date: Fri, 07 Feb 2014 03:09:00 -0000 From: "Larry Hall (Cygwin)" Reply-to: cygwin@cygwin.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@cygwin.com Subject: Re: Newbie Cygdrive questions References: <1737153647.9966666.1391712802938.JavaMail.root@ptd.net> <1037990834.20140207043933@mtu-net.ru> <52F43166.6040303@ptd.net> In-reply-to: <52F43166.6040303@ptd.net> Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 7bit X-SW-Source: 2014-02/txt/msg00127.txt.bz2 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