3
0

strops5_bug.tests 378 B

12345678910
  1. v='*.z'
  2. # Buggy:
  3. # the problem is that expansion rules of LHS and RHS of ~=
  4. # should not be the same: in RHS, "$v" and "*" should escape metas
  5. # (currently "$v" does not),
  6. # but in LHS, they should _not_ do that
  7. # (currently "*" does). Thus these cases fail:
  8. [[ a.z == "$v" ]]; echo 4:no:$? # BUG: "$v" expands to *.z
  9. [[ "*".z == ?.z ]]; echo 5:YES:$? # BUG: "*" expands to \*