From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21080 invoked by alias); 20 Aug 2015 15:40:40 -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: 20445 Received: (qmail 10506 invoked from network); 20 Aug 2015 15:40:39 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.0 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:message-id:date:in-reply-to:comments :references:to:subject:cc:mime-version:content-type; bh=/GlCUfMa6FzHYh0ylZw610aMIICV7jmL+HCRfGuNyNc=; b=XDH30VGoJPB6ymV/C0earaSG7Xjlpjrare/gswoqX926+7ErrchOB4g7R5Utd79q25 G7h9ug47uLG2qbJIyg1Z5GouuI2PwriZh/LoOw9/HPIm0Yw+77HmpqdFD+hnhCCvZHnI HpyGZGo/pcAh+OqBeXWb4dOzXNS4gxZCLkyFp3Gjo60CtP++xtkmMn1I31h6SSiaCWid qgxY2L62wJoMlLjYGq4OAHmxOqPmn6uAMGBk4Kyu76uNYTomDm7gZb7oV8CjdorWKRZq qCguAwXhXiDl8MiZacnTY+2fH9edJjQ5RzY9tD885Raam4dag8Kk5sTE2MWc9LKSYmou 52Ag== X-Gm-Message-State: ALoCoQlRm47BWyNzC/1zCdbD9HzpDkOQe68nlSa5AH85gs8msQurT7eeVnnsgQZNLUqQYqQXhB0C X-Received: by 10.60.131.74 with SMTP id ok10mr3175886oeb.83.1440085237028; Thu, 20 Aug 2015 08:40:37 -0700 (PDT) From: Bart Schaefer Message-Id: <150820084033.ZM29067@torch.brasslantern.com> Date: Thu, 20 Aug 2015 08:40:33 -0700 In-Reply-To: <20150820132434.GA5903@ramirez.u-strasbg.fr> Comments: In reply to Marc Chantreux "Re: Dude, where is noglob?" (Aug 20, 3:24pm) References: <20150820132434.GA5903@ramirez.u-strasbg.fr> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: Zsh hackers list Subject: Re: Dude, where is noglob? Cc: Marc Chantreux MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii On Aug 20, 3:24pm, Marc Chantreux wrote: } } alias dude!="noglob dude" } dude () { print "$@" } } dude! where is my car? } } alias dude="noglob dude" } dude () { print "$@" } } dude where is my car? Normally that second one doesn't work because all you've done is create a function named "noglob" which then takes precedence over the modifier. You need to define the alias AFTER the function. Zsh FAQ #2.1 and #2.3. torch% alias dude!="noglob dude" torch% dude () { print "$@" } torch% dude! where is my car? where is my car? torch% alias dude="noglob dude" torch% dude () { print "$@" } torch% dude where is my car? zsh: no matches found: car? torch% alias dude='noglob dude' 'dude!'='noglob dude' run-help=man which-command=whence torch% functions dude () { print "$@" } noglob () { print "$@" } torch% -- Barton E. Schaefer