From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4416 invoked by alias); 13 Mar 2014 17:03:16 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18607 Received: (qmail 23255 invoked from network); 13 Mar 2014 17:03:09 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <140313100258.ZM14546@torch.brasslantern.com> Date: Thu, 13 Mar 2014 10:02:58 -0700 In-reply-to: <5321CC16.30606@yahoo.com> Comments: In reply to Amm "Re: noglob does not call alias?" (Mar 13, 8:47pm) References: <1394700750.34719.YahooMailNeo@web194603.mail.sg3.yahoo.com> <197551394709878@web5h.yandex.ru> <20140313123811.GH26446@localhost.mi.fu-berlin.de> <140313073641.ZM14350@torch.brasslantern.com> <5321CC16.30606@yahoo.com> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: noglob does not call alias? MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Mar 13, 8:47pm, Amm wrote: } } alias rm='nocorrect rm -i' } alias noglob='noglob ' } } $ noglob rm 1 } zsh: command not found: nocorrect This is documented: nocorrect Spelling correction is not done on any of the words. This must appear before any other precommand modifier, as it is interpreted immediately, before any parsing is done. It has no effect in non-interactive shells. The other precommand modifiers are actually builtin commands rather than reserved words. There is a long list of reasons it ended up this way which I'm not going to attempt to repeat here, but that is why their arguments don't get magic treatment at parse time. -- Barton E. Schaefer