aboutsummaryrefslogtreecommitdiff
path: root/shell/ash_test/ash-misc/local1.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ash_test/ash-misc/local1.tests')
-rwxr-xr-xshell/ash_test/ash-misc/local1.tests11
1 files changed, 11 insertions, 0 deletions
diff --git a/shell/ash_test/ash-misc/local1.tests b/shell/ash_test/ash-misc/local1.tests
new file mode 100755
index 000000000..b1e675059
--- /dev/null
+++ b/shell/ash_test/ash-misc/local1.tests
@@ -0,0 +1,11 @@
1a=A
2f() {
3 local a
4 # the above line unsets $a
5 echo "A2:'$a'"
6 unset a
7 echo "A3:'$a'"
8}
9echo "A1:'$a'"
10f
11echo "A4:'$a'"