[yselkowitz@users.sourceforge.net: Re: How to rename file case-sensitive?]

Eric Blake ebb9@byu.net
Mon Aug 27 12:32:00 GMT 2007


-----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@byu.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/



More information about the Cygwin mailing list