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] |
Hi, 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 C:\PROGRA~1\INTER~\IEXPLORE.EXE /cygdrive/c/Program Files/Internet Explorer $ cygpath -wp $CLASSPATH .;C:\PROGRA~1\JBUILDER\JRE\LIB 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. RESFILE= OBJFILE=util.obj %.exe: %.obj $(RESFILE) link $(cygpath -w $<) $(cygpath -wi $(RESFILE)) Patches for cygpath.cc and utils.sgml attached made from the tarball source of cygwin-1.2.2.tar.gz. Greetings, Jörg (See attached file: utils.sgml.diff)(See attached file: cygpath.cc.diff)
=?iso-8859-1?Q?utils.sgml.diff?=
=?iso-8859-1?Q?cygpath.cc.diff?=
-- 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] |