-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
On 1/11/13 1:17 PM, Dan Douglas wrote:
> Whether or not this type of error aborts depends upon there being an actual
> newline.
It doesn't actually abort the script itself; the assignment error causes
the current command to be aborted. Posix mode do
Whether or not this type of error aborts depends upon there being an actual
newline.
$ bash -c 'echo pre; foo=$((8#9)); echo post' 2>&1
pre
bash: 8#9: value too great for base (error token is "8#9")
$ bash -c $'echo pre\nfoo=$((8#9))\necho post' 2>&1
pre
bash: line 1: 8#9