Re: Nonterminating alias

2016-11-28 Thread Chet Ramey
On 11/27/16 1:45 AM, Dan Douglas wrote:
> A simpler one this time. Bash 4.4 only.
> 
>  $ bash -c $'alias @="eval {\n}"; eval @'
> bash: xrealloc: cannot allocate 18446744071562068464 bytes

Yeah, I fixed this totally obsure one, too.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRUc...@case.eduhttp://cnswww.cns.cwru.edu/~chet/



Nonterminating alias

2016-11-27 Thread Dan Douglas
A simpler one this time. Bash 4.4 only.

 $ bash -c $'alias @="eval {\n}"; eval @'
bash: xrealloc: cannot allocate 18446744071562068464 bytes

I would guess this is part of the way keywords are supposed to be
re-interpolated after alias expansion since 4.4. Maybe not even be a
bug depending on how I'm supposed to look at this.