diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-10 01:04:18 -0700 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2012-05-10 01:04:18 -0700 |
commit | 39863ce4d7fbe77936617dba1d365f488d4c414b (patch) | |
tree | 2348eb41d46e82de6e52ed674175ddb111d035ce /tests | |
parent | 7cae1ae415dd98c9d83dc4cd76b350c1a36a2bbf (diff) |
Fix for longstanding bug where set -e would fail to erase elements from an array.
This was introduced in 7b3377e78c16b3ba74edb141ca0dd2ec895806b9
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test3.in | 7 | ||||
-rw-r--r-- | tests/test3.out | 1 |
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 |