This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: File path expansion problem (DLL version 1.5.3-1 and earlier)


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/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]