delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/06/05/10:43:24

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <20000605144242.2567.qmail@web113.yahoomail.com>
Date: Mon, 5 Jun 2000 07:42:42 -0700 (PDT)
From: Earnie Boyd <earnie_boyd AT yahoo DOT com>
Reply-To: earnie_boyd AT yahoo DOT com
Subject: Re: How to learn exact spelling of directories and files: /temp vs. / TEMP etc.
To: "Tolkin, Steve" <Steve DOT Tolkin AT fmr DOT com>,
"'cygwin'" <cygwin AT sourceware DOT cygnus DOT com>
Cc: "'Corinna Vinschen'" <corinna AT vinschen DOT de>
MIME-Version: 1.0

--- "Tolkin, Steve" <Steve DOT Tolkin AT fmr DOT com> wrote:
> Dear Corrina (who will get a cc of this post), 
> 	Thanks for your response to my earlier email.
> > > 3.  Why doesn't ls tem* find the directory named temp ?
> > 
> > Your TEMP directory has uppercase characters in it's name.
> > The pattern matching is case sensitive by default.
> > If you call `ls temp', no pattern matching takes place,
> > so the directory is found because the Windows file systems
> > aren't case sensitive but only case preserving.
> 
> So now it become VERY important for me to determine the actual spelling of
> the name, i.e. which letters if any are capitalized.  How can I do that?
> Neither ls nor \w in the PS1 prompt tells me that!  
> They both just use the same capitalization I provided in the command!
> 
> 598/> ls -ld temp
> drwxrwxrwt   8 administ SYSTEM      32768 Jun  5 09:45 temp
> 599/> ls -ld TEMP
> drwxrwxrwt   8 administ SYSTEM      32768 Jun  5 09:45 TEMP
> 616/TEMp> ls -ldn ../tEmP
> drwxrwxrwt   8 544      18          32768 Jun  5 10:04 ../tEmP
> 617/TEMp> ls -ldn ../TemP
> drwxrwxrwt   8 544      18          32768 Jun  5 10:04 ../TemP
> ....
> 644/tEmP> cd /TEMP
> 645/TEMP> cd /temp
> 646/temp> cd /tEmP
> 647/tEmP>
> 
> Similarly I want to learn the exact spelling of file names.
> 

ls -ldn /

would return what you want.

Cheers,

=====
---
   Earnie Boyd: <mailto:earnie_boyd AT yahoo DOT com>
            __Cygwin: POSIX on Windows__
Cygwin Newbies: <http://www.freeyellow.com/members5/gw32/index.html>
           __Minimalist GNU for Windows__
  Mingw32 List: <http://www.egroups.com/group/mingw32/>
    Mingw Home: <http://www.mingw.org/>

__________________________________________________
Do You Yahoo!?
Yahoo! Photos -- now, 100 FREE prints!
http://photos.yahoo.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com

- Raw text -


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