diff options
Diffstat (limited to 'shell/ash_test/ash-vars/var_nested1.tests')
-rwxr-xr-x | shell/ash_test/ash-vars/var_nested1.tests | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/shell/ash_test/ash-vars/var_nested1.tests b/shell/ash_test/ash-vars/var_nested1.tests new file mode 100755 index 0000000..59e4a14 --- /dev/null +++ b/shell/ash_test/ash-vars/var_nested1.tests @@ -0,0 +1,16 @@ +f() { a=A; b=B; } + +a=a +b=b +f +echo Expected:AB Actual:$a$b + +a=a +b=b +b= f +echo Expected:Ab Actual:$a$b + +a=a +b=b +a= b= f +echo Expected:ab Actual:$a$b |