aboutsummaryrefslogtreecommitdiffstats
path: root/tests/errors.tests
diff options
context:
space:
mode:
authorJari Aalto <jari.aalto@cante.net>2001-11-13 17:56:06 +0000
committerJari Aalto <jari.aalto@cante.net>2009-09-12 16:46:54 +0000
commitf73dda092b33638d2d5e9c35375f687a607b5403 (patch)
treef21584e70a444d6a1ecba0fb5e2cf79e8cce91db /tests/errors.tests
parent28ef6c316f1aff914bb95ac09787a3c83c1815fd (diff)
downloadandroid_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.gz
android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.tar.bz2
android_external_bash-f73dda092b33638d2d5e9c35375f687a607b5403.zip
Imported from ../bash-2.05a.tar.gz.
Diffstat (limited to 'tests/errors.tests')
-rw-r--r--tests/errors.tests7
1 files changed, 4 insertions, 3 deletions
diff --git a/tests/errors.tests b/tests/errors.tests
index 9311a5d..4ead467 100644
--- a/tests/errors.tests
+++ b/tests/errors.tests
@@ -121,7 +121,8 @@ readonly -n AA
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
@@ -217,8 +218,8 @@ trap -p NOSIG
# 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