Re: [PATCH] bash-4.0.10: segfault with `; &' at the end of case statement

2009-03-14 Thread Chet Ramey
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

[PATCH] bash-4.0.10: segfault with `; &' at the end of case statement

2009-03-13 Thread Clark J. Wang
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