delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/10/21:37:02

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: ericblake AT comcast DOT net (Eric Blake)
To: worwor AT bellsouth DOT net, cygwin cygwin <cygwin AT cygwin DOT com>
Subject: Re: "ls" finds file1 but "ls file1" does not
Date: Tue, 10 May 2005 16:24:33 +0000
Message-Id: <051020051624.29381.4280E041000BDEDE000072C522058891160A050E040D0C079D0A@comcast.net>
X-Authenticated-Sender: ZXJpY2JsYWtlQGNvbWNhc3QubmV0

>   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 `".

Also, as mentioned elsewhere, `ls -q' or `ls -Q' would have made this apparent.

--
Eric Blake



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