diff options
author | axel <axel@liljencrantz.se> | 2006-06-05 23:31:33 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-06-05 23:31:33 +1000 |
commit | 20e5d298a064ceed0dadb25d8241cec55e95f34a (patch) | |
tree | 8bffe78c3cea908ec0f9d3d804e0a4cceb8601e6 /tests/test3.in | |
parent | 39e9974e7103d2de05f03b0a3e20526b14bfd953 (diff) |
Updates, bugfixing and minor edits on the test suite
darcs-hash:20060605133133-ac50b-e2ee5868f9f3ede147c7059d90c0f520ed905a5f.gz
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 |