aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/test8.in
diff options
context:
space:
mode:
authorGravatar maxfl <gmaxfl@gmail.com>2012-07-08 09:45:34 +0800
committerGravatar maxfl <gmaxfl@gmail.com>2012-07-08 09:45:34 +0800
commit079f17761c7392ee6369c67809db99a647237bfe (patch)
treee910b66c1a87078fdf4c4cd5131c3f174997c973 /tests/test8.in
parente1b8c425da571b7f002103805520a1d496ebb087 (diff)
Fix case when first index is command substitution
Diffstat (limited to 'tests/test8.in')
-rw-r--r--tests/test8.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test8.in b/tests/test8.in
index 3a76e8bf..c3c73384 100644
--- a/tests/test8.in
+++ b/tests/test8.in
@@ -19,3 +19,7 @@ set test1[2..4 -2..-4] $test1[4..2 -4..-2]; echo $test1
echo Test command substitution
echo (seq 5)[-1..1]
echo (seq $n)[3..5 -2..2]
+
+echo Test more
+echo $test[(count $test)..1]
+echo $test[1..(count $test)]