From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11918 invoked by alias); 4 Sep 2003 15:07:39 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 11911 invoked from network); 4 Sep 2003 15:07:38 -0000 Received: from unknown (HELO slinky.cs.nyu.edu) (128.122.20.14) by sources.redhat.com with SMTP; 4 Sep 2003 15:07:38 -0000 Received: from slinky.cs.nyu.edu (localhost [127.0.0.1]) by slinky.cs.nyu.edu (8.12.9+Sun/8.12.9) with ESMTP id h84F7cmL013481; Thu, 4 Sep 2003 11:07:38 -0400 (EDT) Received: from localhost (pechtcha@localhost) by slinky.cs.nyu.edu (8.12.9+Sun/8.12.2/Submit) with ESMTP id h84F7cGg013478; Thu, 4 Sep 2003 11:07:38 -0400 (EDT) X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 04 Sep 2003 15:07:00 -0000 From: Igor Pechtchanski Reply-To: cygwin@cygwin.com To: Martin Maurer cc: cygwin@cygwin.com Subject: Re: File path expansion problem (DLL version 1.5.3-1 and earlier) In-Reply-To: <001001c372ba$62f59110$7802a8c0@michelle> Message-ID: References: <001001c372ba$62f59110$7802a8c0@michelle> Importance: Normal MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-SW-Source: 2003-09/txt/msg00306.txt.bz2 On Thu, 4 Sep 2003, Martin Maurer wrote: > Hello, > > when i call > > myeditor.exe /etc/services > > where myeditor is a win32 editor program, then i get a error messages > that the file > > d:\cygwin\home\martin\tc\services > > does not exist. I think there a two problems: > > 1) instead of ...\etc\... there is only ...\tc\... > 2) etc directory is not in ...\home\martin... > > Is this only a problem of my system, or also reproduceable on other systems > ? > > BTW: I am using default shell after installation, which i think is bash. > Got the same error on my previous version (perhaps two weeks old). > > Greetings, > Martin Maurer (MartinMaurer@clibb.de) This is expected behavior. Remember, "myeditor" is a Windows program, and thus interprets the leading "/e" as a flag, which leaves "tc/services" as the filename. Since you're most likely running it from your home directory, this explains the prepended "c:\cygwin\home\martin\". You should use "cygpath" to convert Cygwin POSIX paths to a format that Windows programs can understand, e.g., myeditor.exe "`cygpath -w /etc/services`" Hope this helps, Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha@cs.nyu.edu ZZZzz /,`.-'`' -. ;-;;,_ igor@watson.ibm.com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski, Ph.D. '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! "I have since come to realize that being between your mentor and his route to the bathroom is a major career booster." -- Patrick Naughton -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/