* File path expansion problem (DLL version 1.5.3-1 and earlier)
@ 2003-09-04 7:59 Martin Maurer
2003-09-04 15:07 ` Igor Pechtchanski
0 siblings, 1 reply; 3+ messages in thread
From: Martin Maurer @ 2003-09-04 7:59 UTC (permalink / raw)
To: cygwin
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)
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: File path expansion problem (DLL version 1.5.3-1 and earlier)
2003-09-04 7:59 File path expansion problem (DLL version 1.5.3-1 and earlier) Martin Maurer
@ 2003-09-04 15:07 ` Igor Pechtchanski
0 siblings, 0 replies; 3+ messages in thread
From: Igor Pechtchanski @ 2003-09-04 15:07 UTC (permalink / raw)
To: Martin Maurer; +Cc: cygwin
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
* RE: File path expansion problem (DLL version 1.5.3-1 and earlier)
@ 2003-09-04 8:09 Jörg Schaible
0 siblings, 0 replies; 3+ messages in thread
From: Jörg Schaible @ 2003-09-04 8:09 UTC (permalink / raw)
To: cygwin
Hi Martin,
> Is this only a problem of my system, or also reproduceable on
> other systems ?
well, this is normal. myeditor knows nothing about posix paths,
since it is no Cygwin application. For non-Cygwin apps you have
to convert the path yourself:
myeditor "`cygpath -w /etc/services`"
and you should take care in case of a non-Cygwin editor, that it
can handle unix text file format!
Regards,
Jörg
--
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/
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2003-09-04 15:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-04 7:59 File path expansion problem (DLL version 1.5.3-1 and earlier) Martin Maurer
2003-09-04 15:07 ` Igor Pechtchanski
2003-09-04 8:09 Jörg Schaible
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).