Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com To: cygwin AT cygwin DOT com From: Ross Smith Subject: Re: "ls" finds file1 but "ls file1" does not Date: Wed, 11 May 2005 09:32:51 +1200 Lines: 22 Message-ID: References: <4281016B DOT 3050901 AT bellsouth DOT net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) In-Reply-To: <4281016B.3050901@bellsouth.net> X-IsSubscribed: yes 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. -- Ross Smith ...................... Pharos Systems, Auckland, New Zealand "Carelessly planned projects take three times longer to complete than expected. Carefully planned projects take four times longer to complete than expected, mostly because the planners expect their planning to reduce the time it takes." -- Anon. -- 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/