[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Reproducible SIGSEGV in bash 4.2 caused by alias.
From: |
Oliver J. Morais |
Subject: |
Re: Reproducible SIGSEGV in bash 4.2 caused by alias. |
Date: |
Thu, 10 Oct 2013 11:49:44 +0200 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
[Thu, Oct 10, 2013 at 11:38:47AM +0200] Andreas Schwab
> "Oliver J. Morais" <oliver.morais@gmail.com> writes:
> > Playing around with aliases, I stumbled over the following:
> > $ alias alias="eval alias"
> > $ alias foo=bar
> You have created an infinite recursion, same as f() { f; }; f.
Sure, but I think bash should not just crash, zsh for example catches
this glitch:
% alias alias="eval alias"
% alias foo=bar
zsh: job table full or recursion limit exceeded
I know, bash != zsh and the eval-alias-foo is a silly thing to do,
but crashing is a bug :)