mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-09 12:11:20 -03:00
Fix for longstanding bug where set -e would fail to erase elements from an array.
This was introduced in 7b3377e78c
This commit is contained 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
|
||||
|
||||
@@ -8,3 +8,4 @@ Test 7 pass
|
||||
Test 8 pass
|
||||
Test 9 pass
|
||||
Test 10 pass
|
||||
Test 11 pass
|
||||
|
||||
Reference in New Issue
Block a user