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

Re: How to use noglob with an alias?



Jörg Sommer wrote on Sun, 19 Jan 2020 16:39 +00:00:
> Hello,
> 
> how can I use an alias and noglob?
> 
> ```sh
> % alias foo=true
> % foo
> % noglob foo
> zsh: command not found: foo
> ```

Add «alias noglob='noglob '» to your configuration, otherwise the word
after 'noglob' wouldn't be subject to alias expansion.  (That's the default;
some reserved words, such as 'time', are an exception.)



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