From 20e5d298a064ceed0dadb25d8241cec55e95f34a Mon Sep 17 00:00:00 2001 From: axel Date: Mon, 5 Jun 2006 23:31:33 +1000 Subject: Updates, bugfixing and minor edits on the test suite darcs-hash:20060605133133-ac50b-e2ee5868f9f3ede147c7059d90c0f520ed905a5f.gz --- tests/test3.in | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) (limited to 'tests/test3.in') 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 -- cgit v1.2.3