This is the mail archive of the cygwin@sourceware.cygnus.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]

Running a NT program from cygwin


I have a NT program, called e.exe, which is used to edit a file. When I
invoked it with a filename described by a path relative to the current
directory, it works fine. However, if I specified a path starting from the
root directory, it interprets into a wrong path. For example,

Current directory: /usr
Invoke: e include/stdio.h  -> OK
Invoke: e /usr/include/stdio.h -> FAIL, c:\cygwin\usr\usr\include\stdio.h is
searched instead of c:\cygwin\usr\include\stdio.h

In other words, it looks like no matter what path I specified, it is always
prefixed with the current directory (and discarding / if it starts with /).

Regards & Thanks,
Tom


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


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