Clark J. Wang wrote:
> With bash version: 4.0.10, the following case statement crashed with
> segfault:
>
> $ cat foo.sh
> case a in
> a) echo a ;&
> esac
> $ bash4 foo.sh
> a
> Segmentation fault
> $
>
> In an interactive shell, that case statement causes current shell to hang
> with nearly
With bash version: 4.0.10, the following case statement crashed with
segfault:
$ cat foo.sh
case a in
a) echo a ;&
esac
$ bash4 foo.sh
a
Segmentation fault
$
In an interactive shell, that case statement causes current shell to hang
with nearly 100% CPU usage.
The following patch fixes this f