negative_arith.tests 232 B

12345678
  1. >tempfile0.tmp
  2. >tempfile1.tmp
  3. >tempfile9.tmp
  4. # The [...] is interpreted as: "any of the chars 0, -, and 9"
  5. echo tempfile[0"$((-9))"].tmp
  6. # The [...] is [0-9], interpreted as: "any digit"
  7. echo tempfile[0$((-9))].tmp
  8. rm tempfile?.tmp