Re: Command or process substitution resets alias name tracking during alias expansion?

2016-11-23 Thread Dan Douglas
On Wed, Nov 23, 2016 at 1:25 PM, Chet Ramey wrote: > On 11/22/16 5:46 PM, Dan Douglas wrote: >> Hi. Here's a change between bash 4.1 and 4.2 that persists in 4.4. >> (Added the counter to make it stop). > > Thanks for the incredibly obscure report. This will be fixed in the

Re: Command or process substitution resets alias name tracking during alias expansion?

2016-11-23 Thread Chet Ramey
On 11/22/16 5:46 PM, Dan Douglas wrote: > Hi. Here's a change between bash 4.1 and 4.2 that persists in 4.4. > (Added the counter to make it stop). Thanks for the incredibly obscure report. This will be fixed in the next push to the devel branch. Chet -- ``The lyf so short, the craft so long

Command or process substitution resets alias name tracking during alias expansion?

2016-11-22 Thread Dan Douglas
Hi. Here's a change between bash 4.1 and 4.2 that persists in 4.4. (Added the counter to make it stop). ormaajtest@smorgbox $ ( bash-4.2 ) <<\EOF shopt -s expand_aliases; n=0 alias @='((n >= 5)) && alias @="unalias @; echo" printf "$((n++)) " $() @' @ EOF 0 1 2 3 4 5 ormaajtest@smorgbox $ (