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)



On Wed, 25 Mar 2015 12:40:32 -0700
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> It may be appropriate to point out this tidbit:
> 
> torch% alias -g '&&'=foo
> torch% echo foo&&bar
> foo foobar

It's somewhat belatedly (sorry) occurred to me that the requirement to
use "-g" with this makes it unlikely there's any use case at all for
aliasing "&&".  The original one was to be able to do

  && stuff

by aliasing (not to "foo", obviously) at the start of an expression, so
it had its normal effect at the end.  You can't do that any more.

pws



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