summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-vars/var_expand_in_assign.tests
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-vars/var_expand_in_assign.tests')
-rwxr-xr-xshell/hush_test/hush-vars/var_expand_in_assign.tests15
1 files changed, 15 insertions, 0 deletions
diff --git a/shell/hush_test/hush-vars/var_expand_in_assign.tests b/shell/hush_test/hush-vars/var_expand_in_assign.tests
new file mode 100755
index 0000000..18cdc74
--- /dev/null
+++ b/shell/hush_test/hush-vars/var_expand_in_assign.tests
@@ -0,0 +1,15 @@
+if test $# = 0; then
+ exec "$THIS_SH" "$0" abc "d e"
+fi
+
+space=' '
+echo .$space.
+
+a=$*
+echo .$a.
+a=$@
+echo .$a.
+a="$*"
+echo .$a.
+a="$@"
+echo .$a.