This is the mail archive of the cygwin@cygwin.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]
Other format: [Raw text]

RE: cygpath -s behaviour


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/


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