delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/09/23:05:15

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
From: "Ross Boulet" <ross AT rossb DOT com>
To: "'cygwin cygwin'" <cygwin AT cygwin DOT com>
Subject: RE: "ls" finds file1 but "ls file1" does not
Date: Mon, 9 May 2005 22:04:36 -0500
Message-ID: <002b01c5550d$09c3f460$6400000a@RossLap>
MIME-Version: 1.0
In-Reply-To: <SERRANOB5ANH2cv0aGl000002aa@SERRANO.CAM.ARTIMI.COM>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id j4A359kj002982

> > "ls" finds file1 but "ls file1" does not.  How can this
> happen?
> >
> > The following example occurred just after I had renamed
> some *.htm files
> > to *.html using
> > an ash shell script.  No such problem occurred, however,
> when I used DOS
> > "rename" to make
> > the same change.
> 
>   Not 100% sure what's going on here, but can I just ask
> one thing?
> 
> > $ ls
> > _index.htm*    finder.dat*     lib_over.htm*
> setjmp.htm*   time.htm*
> > assert.htm*    float.htm*      lib_prin.htm*
> signal.htm*   types.htm*
> > charset.htm*   function.htm*   lib_scan.htm*
> stdarg.htm*   wchar.htm*
> 
> [etc]  Did your ash script go wrong and rename all those
> files with actual
> asterisks on the end ?
> 
> > Documents/books_open/c/stdcbook_bad/STD_c
> > $ ls assert.htm
> > ls: assert.htm: No such file or directory  <--  ****
> THIS IS THE PROBLEM
> > ****
> 
>   But ISTM there is no such file as assert.htm.  What
> output do you get from
> 
> ls assert.htm\*
> 
>    ?
> 
 
 
ls is acting like the -F option is specified which would
cause the '*' to be displayed at the end of any file name
which is executable (as one prior message shows these files
are).  Under what shell is ls being run and is there an
alias for ls that is causing this option to be invoked?  If
so, are there any other options in the alias?
 
 



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.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