aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-10 01:04:18 -0700
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2012-05-10 01:04:18 -0700
commit39863ce4d7fbe77936617dba1d365f488d4c414b (patch)
tree2348eb41d46e82de6e52ed674175ddb111d035ce /tests
parent7cae1ae415dd98c9d83dc4cd76b350c1a36a2bbf (diff)
Fix for longstanding bug where set -e would fail to erase elements from an array.
Diffstat (limited to 'tests')
-rw-r--r--tests/test3.in7
-rw-r--r--tests/test3.out1
2 files changed, 8 insertions, 0 deletions
diff --git a/tests/test3.in b/tests/test3.in
index c6801999..e1594683 100644
--- a/tests/test3.in
+++ b/tests/test3.in
@@ -127,3 +127,10 @@ else
end
+set foo abc def
+set -e foo[1]
+if test $foo '=' def
+ echo Test 11 pass
+else
+ echo Test 11 fail
+end
diff --git a/tests/test3.out b/tests/test3.out
index 1610013c..a0c33cec 100644
--- a/tests/test3.out
+++ b/tests/test3.out
@@ -8,3 +8,4 @@ Test 7 pass
Test 8 pass
Test 9 pass
Test 10 pass
+Test 11 pass