From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19989 invoked from network); 1 Sep 1998 13:41:10 -0000 Received: from math.gatech.edu (list@130.207.146.50) by ns1.primenet.com.au with SMTP; 1 Sep 1998 13:41:10 -0000 Received: (from list@localhost) by math.gatech.edu (8.9.1/8.9.1) id JAA11037; Tue, 1 Sep 1998 09:34:50 -0400 (EDT) Resent-Date: Tue, 1 Sep 1998 09:31:01 -0400 (EDT) Message-Id: <199809011251.FAA13696@bebop.clari.net> To: ZSH users mailing list Subject: Re: Command alias in non-command position In-reply-to: schaefer's message of Wed, 26 Aug 1998 10:36:27 -0700. <980826103628.ZM21060@candle.brasslantern.com> Date: Tue, 01 Sep 1998 05:51:17 -0700 From: Wayne Davison Resent-Message-ID: <"XHamY1.0.Vg2.KS_wr"@math> Resent-From: zsh-users@math.gatech.edu X-Mailing-List: archive/latest/1780 X-Loop: zsh-users@math.gatech.edu X-Loop: zsh-workers@math.gatech.edu Precedence: list Resent-Sender: zsh-workers-request@math.gatech.edu "Bart Schaefer" wrote: > Bruce Stephens wrote: > } Could I define sudo somehow, to say that its first argument ought to > } be expanded as if it were in the command position? > > alias sudo='sudo ' Very nice. There is a problem, however: % alias cp='nocorrect cp' % alias sudo='sudo ' % sudo cp foo bar sudo: nocorrect: command not found I assume there is a similar problem with the other pre-command modifiers. ..wayne..