Re: Bash does not exit on non-interactive "Bad substitution" errors

2015-08-07 Thread Chet Ramey
On 8/4/15 8:08 AM, Christian Neukirchen wrote: > Hi, > > I noticed that the following script keeps executing (and outputs > "oops") in Bash 4.3.39(1)-release and 2.05b.13(1)-release, in > difference to dash-0.5.8, mksh-R51, busybox sh v1.23.2, ksh-2012.08.01, > and zsh-5.0.8: > > echo ${x!y} > ec

Bash does not exit on non-interactive "Bad substitution" errors

2015-08-04 Thread Christian Neukirchen
Hi, I noticed that the following script keeps executing (and outputs "oops") in Bash 4.3.39(1)-release and 2.05b.13(1)-release, in difference to dash-0.5.8, mksh-R51, busybox sh v1.23.2, ksh-2012.08.01, and zsh-5.0.8: echo ${x!y} echo oops According to IEEE Std 1003.1, 2.8.1 Consequences of Shel