This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: "ls" finds file1 but "ls file1" does not
- From: ericblake at comcast dot net (Eric Blake)
- To: worwor at bellsouth dot net, cygwin cygwin <cygwin at cygwin dot com>
- Date: Tue, 10 May 2005 16:24:33 +0000
- Subject: Re: "ls" finds file1 but "ls file1" does not
> 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/