On 6/3/11 2:39 PM, Eric Blake wrote:
> Bash has a bug: ${+} is syntactically invalid, as evidenced by the error
> message when running the script, yet using 'set -n' was not able to flag
> it as an error.
It's an invalid word expansion, not a syntax error. To the parser, `${+}'
is a correctly-for
Bash has a bug: ${+} is syntactically invalid, as evidenced by the error
message when running the script, yet using 'set -n' was not able to flag
it as an error.
$ echo $BASH_VERSION
4.2.8(1)-release
$ bash -c 'echo ${+}'; echo $?
bash: ${+}: bad substitution
1
$ bash -cn '${+}'; echo $?
0
$ ksh -