delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/10/20:54:11

Message-Id: <200505110054.j4B0sBnM031070@delorie.com>
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: "Gary R. Van Sickle" <g DOT r DOT vansickle AT worldnet DOT att DOT net>
To: <cygwin AT cygwin DOT com>
Subject: RE: "ls" finds file1 but "ls file1" does not
Date: Tue, 10 May 2005 18:07:25 -0500
MIME-Version: 1.0
In-Reply-To: <d5r8s0$4iu$1@sea.gmane.org>
X-IsSubscribed: yes

> -----Original Message-----
> From: cygwin-owner AT cygwin DOT com 
> [mailto:cygwin-owner AT cygwin DOT com] On Behalf Of Ross Smith
> Sent: Tuesday, May 10, 2005 4:33 PM
> To: cygwin AT cygwin DOT com
> Subject: Re: "ls" finds file1 but "ls file1" does not
> 
> Charles D. Russell wrote:
> > Eric Blake wrote:
> > 
> >>  mv -v "$f" " ` echo $f | tr A-Z a-z ` "
> > 
> > EVIL - you are moving "FOO" to " foo " (Windows strips trailing 
> > spaces, but not leading spaces, so it is really moving to " foo").  
> > YOU ARE ADDING SPACES to the filename.  Fix your script so 
> that there 
> > are no spaces between "` and `".
> > _____________
> > 
> > Thought it was clever of me to make that little ` visible 
> to my old eyes.
> 
> I always use $(...) instead; it's equivalent to `...` and 
> much easier to read.
> 

... And suffers from far fewer nesting problems.

-- 
Gary R. Van Sickle


--
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