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

Re: PATCH: Removing aliases from history, 2015 style (was capturing output of !! not working)



It may be appropriate to point out this tidbit:

torch% alias -g '&&'=foo
torch% echo foo&&bar
foo foobar
torch% fc -l -1     
    2  echo foo&&bar

The point being that a space is introduced before the && expansion because
&& is parsed as a separate word, but no space is added after it.

If this were going to change, I would recommend using something akin to
my patch from workers/34738 to add the second space, rather than attempt
to remove the first one.

-- 
Barton E. Schaefer



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