From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 8543 invoked from network); 21 Feb 2005 17:09:48 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 21 Feb 2005 17:09:48 -0000 Received: (qmail 66048 invoked from network); 21 Feb 2005 17:09:42 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 21 Feb 2005 17:09:42 -0000 Received: (qmail 5439 invoked by alias); 21 Feb 2005 17:09:34 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 8537 Received: (qmail 5424 invoked from network); 21 Feb 2005 17:09:33 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 21 Feb 2005 17:09:33 -0000 Received: (qmail 64912 invoked from network); 21 Feb 2005 17:09:33 -0000 Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by a.mx.sunsite.dk with SMTP; 21 Feb 2005 17:09:29 -0000 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1D3H0D-0003lH-ET for zsh-users@sunsite.dk; Mon, 21 Feb 2005 18:05:45 +0100 Received: from 241.119-84-212.ippool.ndo.com ([212.84.119.241]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Feb 2005 18:05:45 +0100 Received: from david by 241.119-84-212.ippool.ndo.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 21 Feb 2005 18:05:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: zzapper Subject: Re: zmv another zsh gem Date: Mon, 21 Feb 2005 17:08:58 +0000 Message-ID: References: <200502151206.39476.cht@chello.at> <200502171902.j1HJ2isi010913@news01.csr.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 241.119-84-212.ippool.ndo.com X-Newsreader: Forte Free Agent 2.0/32.652 Sender: news X-Gmane-MailScanner: Found to be clean X-Gmane-MailScanner: Found to be clean X-MailScanner-From: gcszu-zsh-users@m.gmane.org X-MailScanner-To: zsh-users@sunsite.dk X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 On Thu, 17 Feb 2005 19:02:44 +0000, wrote: >Christian Taylor wrote: >> On Tuesday 15 February 2005 09:51, zzapper wrote: >> >> > In comp.editors I came across mmv and zmv >> > [...] >> > The case changers don't work on Cygwin because WinXP grumbles target & >> > source filename are the same! >> >> Using mv to change the case of a filename doesn't work on any "caseless" file >> >> system like vfat, because both filenames refer to the same, existing file. >> Afaik POSIX compliance demands an error in that case. You'll have to do it in >> >> two steps. > >Now I remember, zmv even warns you about this: > >% zmv foobar Foobar >zmv: error(s) in substitution: >file exists: Foobar >(Probably the same file, owing to file system limitations.) A work around is:- zmv '(*~low)' low/'${(L)1}' #lowercase to subdirectory which has the advantage of giving you a second chance if you get it wrong zzapper (vim, cygwin, wiki & zsh) -- vim -c ":%s%s*%CyrnfrTfcbafbeROenzSZbbyranne%|:%s)[R-T]) )Ig|:norm G1VGg?" http://www.vim.org/tips/tip.php?tip_id=305 Best of Vim Tips