Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com X-Authentication-Warning: slinky.cs.nyu.edu: pechtcha owned process doing -bs Date: Thu, 12 Sep 2002 15:58:29 -0400 (EDT) From: Igor Pechtchanski Reply-To: cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com Subject: Re: Release candidate 1: /etc/hosts In-Reply-To: <3D80E193.C2242234@pajhome.org.uk> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII On Thu, 12 Sep 2002, Paul Johnston wrote: > Igor, > > > How exactly are you proposing to modify cygpath? cygpath translates > > windows paths to unix-style, and back. There is nothing in the cygpath > > Sorry, should have been clearer about this: modifying cygpath to add a > feature to get the correct case for a path. Perhaps we could figure a > way to use "dir /b" - but I'm sure other people will hit this same issue > in the future and would appreciate such a feature in cygpath. If you > agree this is a good idea, I'm prepared to do the groundwork. Oh, I see, add a modifier similar to '-s', so that it verifies the case of each element in the path... Yeah, that could work, something like: -e, --exact-case print exact case of NAME I'm not sure how to implement this, though... If you have ideas, I'd be interested in hearing them. > Failing that, I think it would be ok to assume that the path will either > be all caps or all non-caps - corresponding to FAT or NTFS. Anyone > tweaking the case of such paths/files on NTFS quite deserves their fate! Well, on my Win2k machine, the exact case is as follows: C:\WINNT\system32\drivers\etc\hosts. Notice that "WINNT" is all caps. I use NTFS, and this is apparently the default setup. > BTW, I'm subbed to cygwin so you don't need to keep copying me on mails. Oops, sorry, this is the default in my mailer. I'll be more careful. Igor -- http://cs.nyu.edu/~pechtcha/ |\ _,,,---,,_ pechtcha AT cs DOT nyu DOT edu ZZZzz /,`.-'`' -. ;-;;,_ igor AT watson DOT ibm DOT com |,4- ) )-,_. ,\ ( `'-' Igor Pechtchanski '---''(_/--' `-'\_) fL a.k.a JaguaR-R-R-r-r-r-.-.-. Meow! It took the computational power of three Commodore 64s to fly to the moon. It takes a 486 to run Windows 95. Something is wrong here. -- SC sig file -- 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/