diff options
Diffstat (limited to 'tests/dollar-at2.sub')
-rw-r--r-- | tests/dollar-at2.sub | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/tests/dollar-at2.sub b/tests/dollar-at2.sub new file mode 100644 index 0000000..c079a29 --- /dev/null +++ b/tests/dollar-at2.sub @@ -0,0 +1,19 @@ +t1() +{ + xxx="echo $@" + + recho "$xxx ; echo $@" +} + +t2() +{ + xxx="echo $@" + + recho "${xxx} ; echo $@" +} + +t1 1 +t1 1 2 + +t2 1 +t2 1 2 |