File path expansion problem (DLL version 1.5.3-1 and earlier)
Igor Pechtchanski
pechtcha@cs.nyu.edu
Thu Sep 4 15:07:00 GMT 2003
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/
More information about the Cygwin
mailing list