cygpath -s behaviour
Watts, Simon (UK)
swatts@northgrum-it.eu.com
Fri Sep 6 07:29:00 GMT 2002
Hello,
Version information is as follows (pretty recent AFAIK)...
Windows NT 4.0 /sp6
cygpath version 1.21
cygwin 1.3.12-2 (CVS: cygwin-1-3-12-1)
Testing (bash 2.05a.0(3)) (prompt='#')...
<cut>
#
# cygpath -ws long_name_doesnt_exist
#
#
# cygpath -ms long_name_doesnt_exist || echo FAIL
# cygpath -ms long_name_doesnt_exist && echo FAIL
FAIL
#
</cut>
Cygpath does not appear to be writing to stderr, or exiting
with an error code.
Since I am using a wrapper (shell) function to cygpath anyway,
I have put a check in there. I am also ensuring that I am only
passing existing dirs structures (it would be an error in my
script to have passed the to-be filename, since it could then
have been constructed with a mangled name rather than the
correct long form!).
Cheers,
Si.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list