This is the mail archive of the 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]

[PATCH] Cygpath enhancement


using the Cygwin environment and maintaining a make system for several users there are often troubles because of users that have blanks in their paths. Since I've seen several requests for shart path names within the list I just added the option -s (or --short-name) to the cygpath utility that can be used in combination with the -w option to receive the filenames or the path in the short form of Windows.

/cygdrive/c/Program Files/Internet Explorer $ cygpath -was IEXPLORE.EXE
/cygdrive/c/Program Files/Internet Explorer $ cygpath -wp $CLASSPATH

Additionally I added an option -i (or --ignore) to prevent the Cygpath utility showing the "usage message" when the filename argument is omitted. This comes in handy using cygpath in make rules passing files as optional argument to Windows/DOS based utilities. Otherwise the "usage message" would always be printed using stderr.


%.exe: %.obj $(RESFILE)
     link $(cygpath -w $<) $(cygpath -wi $(RESFILE))

Patches for and utils.sgml attached made from the tarball source of cygwin-1.2.2.tar.gz.


(See attached file: utils.sgml.diff)(See attached file:



Want to unsubscribe from this list?
Send a message to

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