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

Re: Dude, where is noglob?



Thanks Bart and Peter for replying
On Wed, Aug 19, 2015 at 02:00:14PM +0100, Peter Stephenson wrote:
> On Wed, 19 Aug 2015 14:31:38 +0200
> Marc Chantreux <khatar@xxxxxxxxx> wrote:
> > alias dude!="noglob dude"
> > dude () { print "$@" } 
> > dude! where is my car?
> 
> Do you have !-history enabled?  In which case the dude! command works OK
> (! not active before a space) but the alias could do anything.  Try 
> 
>   alias 'dude!=noglob dude'

i have no idea what's  enabled there but 

alias dude!="noglob dude"
dude () { print "$@" } 
dude! where is my car?

alias dude="noglob dude"
dude () { print "$@" } 
dude where is my car?







-- 
Marc Chantreux (eiro on github and freenode)
http://eiro.github.com/
http://eiro.github.com/atom.xml
"Don't believe everything you read on the Internet"
    -- Abraham Lincoln



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