delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/22/18:58:30

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-Id: <200211222358.gAMNw2X06966@work.bitmover.com>
From: Andrew Chang <awc AT bitmover DOT com>
To: cygwin AT cygwin DOT com
Subject: DOS shortname and cygwin I/O
Date: Fri, 22 Nov 2002 15:57:59 -0800
MIME-Version: 1.0
X-MailScanner: Found to be clean

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019