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

Re: [PATCH] Re: aliases+=(foo 'echo bar') crash



On Jul 24, 10:47am, Peter Stephenson wrote:
} Subject: Re: [PATCH] Re: aliases+=(foo 'echo bar') crash
}
} On Wed, 23 Jul 2014 22:45:35 -0700
} Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
} > -	pm->node.flags |= PM_UNSET;
} > +	pm->node.flags |= (PM_UNSET|PM_SPECIAL);
} 
} It's a bit surprising this hasn't caused mayhem before now, but I
} suppose the damage is limited or non-existent until you try to set
} the parameters

Simple assignment via either aliases=(a b) or aliases[a]=b doesn't go
through the same code path, so there was no issue until the += syntax
was added ... and it's pretty unusual to append something to a hash
table that way, so I'm not that surprised that no one encountered it.



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