delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2007/08/27/08:27:34

X-Spam-Check-By: sourceware.org
Message-ID: <46D2C335.6060705@byu.net>
Date: Mon, 27 Aug 2007 06:27:33 -0600
From: Eric Blake <ebb9 AT byu DOT net>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.666
MIME-Version: 1.0
To: cygwin AT cygwin DOT com, arnstein AT panix DOT com
Subject: Re: [yselkowitz AT users DOT sourceforge DOT net: Re: How to rename file case-sensitive?]
References: <20070827053131 DOT GA28054 AT panix DOT com>
In-Reply-To: <20070827053131.GA28054@panix.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
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
Note-from-DJ: This may be spam

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to David Arnstein on 8/26/2007 11:31 PM:
> ----- Forwarded message from "Yaakov (Cygwin Ports)" 
> 
> Ronald Fischer wrote:
>> Is there an easy way to rename a file foo to Foo?
>>
>> mv foo Foo 

Upgrade to the experimental coreutils-5.9-5, and this should 'just work'.
 If I don't hear any more negative reports, then I will consider promoting
this to current this week.

> This does not work for me. From my cygwin/bash prompt:
> 
> Strix 516> type rename
> rename is hashed (/usr/bin/rename)
> Strix 508> touch xxx
> Strix 509> rename xxx Xxx
> Strix 513> ls x*
> xxx

That's because rename requires at least three arguments, not two:
old-pattern, new-pattern, files that should be changed.  As in:

rename xxx Xxx xxx

- --
Don't work too hard, make some time for fun as well!

Eric Blake             ebb9 AT byu DOT net
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG0sM184KuGfSFAYARAk+NAJsEtIEDiwNy0q1mjHFBUeMSs9NAdACggX4K
KDUKlcqCDmPpIBFhli7IDOI=
=sPNt
-----END PGP SIGNATURE-----

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