diff options
Diffstat (limited to 'tests/test3.in')
-rw-r--r-- | tests/test3.in | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/test3.in b/tests/test3.in index 26942a02..7346dc84 100644 --- a/tests/test3.in +++ b/tests/test3.in @@ -111,5 +111,31 @@ else echo Test 9 pass end +# Test erasing variables in specific scope +set -eU foo +set -g foo bar +begin + set -l foo baz + set -eg foo +end + +if set -q foo + echo Test 10 fail +else + echo Test 10 pass +end + + +# Test universal variable erasing + +set -e foo +../fish -c "set -U foo bar" + +if set -q foo + echo Test 11 pass +else + echo Test 11 fail +end +set -eU foo
\ No newline at end of file |