zbad2 412 B

12345678910111213141516171819
  1. ## TODO: fix and add to testsuite
  2. ## # bash zbad2
  3. ## ZVAR=z.map
  4. ## *.map
  5. ## # hush zbad2
  6. ## ZVAR=z.map
  7. ## z.map <====== !!!
  8. ## hush does globbing for "VAR=val" too!
  9. ## it should do it only for non-assignments.
  10. ## even if word looks like assignment, it can be non-assignment:
  11. ## ZVAR=*.map /bin/echo ZVAR=*.map
  12. ## ^dont_glob ^glob
  13. >ZVAR=z.map
  14. ZVAR=*.map /bin/echo ZVAR=*.map
  15. ZVAR=*.map
  16. echo "$ZVAR"