This is the mail archive of the
mailing list for the Cygwin project.
cygpath -s behaviour
- From: "Watts, Simon (UK)" <swatts at northgrum-it dot eu dot com>
- To: "'cygwin at cygwin dot com'" <cygwin at cygwin dot com>
- Date: Fri, 6 Sep 2002 14:14:33 +0100
- Subject: cygpath -s behaviour
Just spend a merry lunchtime tracking this behaviour down (it would be cruel
to call it a bug):
cygpath -[mw]s "DIR"
echos the file/directory DIR in shortened windows format (ie, mangles to 8.3
If a component part of "DIR" is not in 8.3 format, and does not exist in the
directory structure, then (I presume) 'cygpath' cannot obtain the mangled
form. The upshot is that cygpath returns nothing. It may set an error
state, I havent checked.
It would be useful if this was mentioned in the man page or '--help'.
Is there any more useful behaviour? All I am really trying to do in using
the '-s' option is to mangle any componts of the path containing spaces
(writing cross-platform scripts here...).
What about an option to mangle only those elements of a path which (a) exist
and (b) contain spaces?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html