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

Re: BUG: Invalid assumption about file paths beginning with '\'




Earnie,
I would have thought that the whole point of the CygWin project was to provide
UNIX tools on the PC Windows platform so that they feel like Windows tools and
not like UNIX tools. In this respect the file system should work as expected for
the platform on which the tool is used. The fact that CygWin is translating
between the Windows file system and a UNIX/POSIX file system (to make the
porting of UNIX tools to windows easier) is irrelevant since it is an internal
(and abstracted) detail.

An Example:
If my working drive is m: and the current working folder is \projects (say) then
when I execute:
gwak -f \myscripts\script.awk in-file.txt
I would expect gawk to read script.awk from m:\myscripts and in-file.txt from
m:\projects. However, this results in a file not found for scripts.awk. If the
command is modified to include the drive letter:
gwak -f m:\myscripts\script.awk in-file.txt
Then it works, which shows that CygWin correctly interpreted in-file.txt as
being in the current working directory on the current drive.

As I said in my original posting, I cannot explicitly state the drive letter on
the command line as it is all part of a makefile which must be executable on any
drive (since it is a network mapping).

Regards
Dave Banham





--
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]