sed seems to force UC filename on Mixed 8.3 filenames on FAT32

Corinna Vinschen corinna-cygwin@cygwin.com
Mon Mar 5 17:16:00 GMT 2018


On Mar  5 12:05, Michel LaBarre wrote:
> > From: cygwin-owner@cygwin.com [mailto:cygwin-owner@cygwin.com] On
> > Behalf Of Corinna Vinschen
> > On Mar  5 11:42, Michel LaBarre wrote:
> > > I have the same build 16299.248 and I get the same behaviour.
> > > Perhaps consider: http://www.zoneutils.com/regtricks/filesystem.htm
> > > for parameters to experiment with.  You can use fsutil to control some of
> > these to avoid direct registry modifications.
> > > I expect it is more subtle otherwise the pervasive nature of the flags would
> > mean that any file creation would result in UC names, not just dos2unix.
> > > i.e. ls > Foo.txt should produce FOO.TXT
> > 
> > Maybne something with overwriting existung files?  What if you call
> > `ls > Foo.txt' twice in a row?
> > 
> 
> Nope - that works ok.  (BTW - you were fast on the reply!)
> 
> I did try:
> 	E:\>dos2unix -n Zot.txt Foo.txt
> 	dos2unix: converting file Zot.txt to file Foo.txt in Unix format...
> 	E:\>ls
> 	 Foo.txt    Zot.txt
> 
> I thought using -n might suffice as a quick workaround for Fergus so I tried:
> 
> 	E:\>dos2unix -n Zot.txt Zot.txt
> 	dos2unix: converting file Zot.txt to file Zot.txt in Unix format...
> 	E:\>ls
> 	 Foo.txt  ZOT.TXT

But `mv ZOT.TXT Zot.txt' works?

Can you strace this like this after renaming the file back to Zot.txt

  $ strace -o d2u.trace dos2unix -n Zot.txt Zot.txt

and send the d2u.trace file to this list?


Thanks,
Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://cygwin.com/pipermail/cygwin/attachments/20180305/4363635a/attachment.sig>


More information about the Cygwin mailing list