From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25011 invoked from network); 7 Aug 2005 06:30:57 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 7 Aug 2005 06:30:57 -0000 Received: (qmail 31630 invoked from network); 7 Aug 2005 06:30:51 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 7 Aug 2005 06:30:51 -0000 Received: (qmail 22880 invoked by alias); 7 Aug 2005 06:30:45 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9260 Received: (qmail 22870 invoked from network); 7 Aug 2005 06:30:44 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 7 Aug 2005 06:30:44 -0000 Received: (qmail 30540 invoked from network); 7 Aug 2005 06:30:44 -0000 Received: from unknown (HELO ivc.alykel.ru) (80.255.146.26) by a.mx.sunsite.dk with SMTP; 7 Aug 2005 06:30:39 -0000 Received: (qmail 6393 invoked by uid 89); 7 Aug 2005 06:30:32 -0000 Received: from unknown (HELO ?192.168.200.192?) (uvv@alykel.ru@192.168.200.192) by 0 with SMTP; 7 Aug 2005 06:30:32 -0000 Message-ID: <42F5AAA7.6010509@yandex.ru> Date: Sun, 07 Aug 2005 14:31:03 +0800 From: UVV User-Agent: Mozilla/5.0 (X11; U; Linux i686; ru-RU; rv:1.7) Gecko/20040618 X-Accept-Language: en-us, en, ru MIME-Version: 1.0 To: Wataru Kagawa , zsh-users@sunsite.dk Subject: Re: a question about argument corrections References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Checker-Version: SpamAssassin 3.0.4 (2005-06-05) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.0.4 Wataru Kagawa пишет: > Hi all, > > I find the 'correctall' option to be useful in most cases, except for > the case described below. > > zsh% ls > foo1 foo2 foo3 > zsh% cp foo3 foo4 > zsh: correct 'foo4' to 'foo3'? [nyae] n > > The same thing happens for the mv command. > > zsh% mv foo3 foo4 > zsh: correct 'foo4' to 'foo3'? [nyae] n > > I wouldn't want to be asked for the correction as long as foo4 doesn't > exist. Is there a way to customize this so that only the first file is > checked when the command is cp or mv? > > Suggestions are greatly appreciated. > > Wataru Kagawa > > > Hi! Try to turn off spelling correction for a single command, e.g. alias mv='nocorrect mv'