diff options
author | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-21 18:20:51 -0800 |
---|---|---|
committer | ridiculousfish <corydoras@ridiculousfish.com> | 2014-02-21 18:20:51 -0800 |
commit | bc4340962480cc7e9d18a2057ca180f6380476cc (patch) | |
tree | 672b450c2b43abb03abece7137cd3593b6c78f88 /tests/test9.in | |
parent | a57077aba3780e011783bbd27485fd8c4eadfad0 (diff) |
Expand the variable name as an ordinary parameter in for loops. Added
test for it too.
Diffstat (limited to 'tests/test9.in')
-rw-r--r-- | tests/test9.in | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/test9.in b/tests/test9.in index e449a21d..32a537f7 100644 --- a/tests/test9.in +++ b/tests/test9.in @@ -70,4 +70,13 @@ end # Test implicit cd. This should do nothing. ./ +# Test special for loop expansion +# Here we the name of the variable is derived from another variable +echo "Testing for loop" +set var1 var2 +for $var1 in 1 2 3 + echo -n $var2 +end +echo + false |