Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: noglob does not call alias?



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



Messages sorted by: Reverse Date, Date, Thread, Author