summaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-quoting/negative_arith.tests
blob: 8e47ca111f082dde722b121268ea511643f80eef (plain)
1
2
3
4
5
6
7
8
>tempfile0.tmp
>tempfile1.tmp
>tempfile9.tmp
# The [...] is interpreted as: "any of the chars 0, -, and 9"
echo tempfile[0"$((-9))"].tmp
# The [...] is [0-9], interpreted as: "any digit"
echo tempfile[0$((-9))].tmp
rm tempfile?.tmp