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]

DOS shortname and cygwin I/O


Hello,

I just noticed that cygwin seems to get confused when we do a
cd to dos-short-pathname.  It is easy to reproduce:

a) Install cygwin to c:/Programme/cygwin
b) make sure you mount / in binary mode
c) mkdir c:/Programme/cygwin/tst
c) cd c:/Programme/cygwin/tst
d) echo "XXX" > file1
e) od -c file1  # this should show file1 with '\n' line termination
f) cd c:/Progra~2/cygwin/tst    # C:/Progra~2 is the shortname of
 c:/Programme g) echo "XXX" > file2
h) od -c file2  #  this should show file2 with a \r\n line termination

I would expect the "echo"  command to behave the same way, regardless of how
 I cd there. Is there a reason for doing otherwise ?

Thanks
Andrew Chang



--
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]