diff options
Diffstat (limited to 'shell/ash_test/ash-vars')
-rw-r--r-- | shell/ash_test/ash-vars/var_leak.right | 2 | ||||
-rwxr-xr-x | shell/ash_test/ash-vars/var_leak.tests | 4 |
2 files changed, 2 insertions, 4 deletions
diff --git a/shell/ash_test/ash-vars/var_leak.right b/shell/ash_test/ash-vars/var_leak.right index 01a5e3263..764680086 100644 --- a/shell/ash_test/ash-vars/var_leak.right +++ b/shell/ash_test/ash-vars/var_leak.right | |||
@@ -1,4 +1,4 @@ | |||
1 | should be empty: '' | 1 | should be empty: '' |
2 | should be empty: '' | 2 | should be empty: '' |
3 | should be not empty: 'val2' | 3 | should be not empty: 'val2' |
4 | should be not empty: 'val3' | 4 | should be empty: '' |
diff --git a/shell/ash_test/ash-vars/var_leak.tests b/shell/ash_test/ash-vars/var_leak.tests index 5242e24eb..adf66692e 100755 --- a/shell/ash_test/ash-vars/var_leak.tests +++ b/shell/ash_test/ash-vars/var_leak.tests | |||
@@ -15,9 +15,7 @@ VAR='' | |||
15 | VAR=val2 exec 2>&1 | 15 | VAR=val2 exec 2>&1 |
16 | echo "should be not empty: '$VAR'" | 16 | echo "should be not empty: '$VAR'" |
17 | 17 | ||
18 | # ash follows the "function call is a special builtin" rule here | ||
19 | # (bash does not do it) | ||
20 | f() { true; } | 18 | f() { true; } |
21 | VAR='' | 19 | VAR='' |
22 | VAR=val3 f | 20 | VAR=val3 f |
23 | echo "should be not empty: '$VAR'" | 21 | echo "should be empty: '$VAR'" |