AA=(one two three)
# try to assign a readonly array with bad assignment syntax
-readonly -a ZZZ=bbb
+# NOTE: this works in post-bash-2.05 (at least when I write this)
+# readonly -a ZZZ=bbb
# bad counts to `shift'
shopt -s shift_verbose
# at some point, this may mean `invert', but for now it is an error
umask -i
+# bad assignments shouldn't change the umask
+mask=$(umask)
+umask g=u
+mask2=$(umask)
+if [ "$mask" != "$mask2" ]; then
+ echo "umask errors change process umask"
+fi
+
# assignment to a readonly variable in environment
VAR=4
readonly VAR
# try to set and unset shell options simultaneously
shopt -s -u checkhash
-# someday, this may give `read' a timeout, but for now it is an error
+# this is an error -- bad timeout spec
read -t var < /dev/null
# try to read into an invalid identifier
# maybe someday trap will take a -s argument like kill, but not now
trap -p -s NOSIG
-# maybe someday we will have a ksh-like ERR trap, but not yet
-trap 'echo [$LINENO] -- error' ERR
+# we have a ksh-like ERR trap, post-bash-2.05
+#trap 'echo [$LINENO] -- error' ERR
# can only return from a function or sourced script
return 2