Posted to tcl by auriocus at Fri May 19 20:54:09 GMT 2017view raw

  1. test) 55 % ls
  2. /Users/chris/Sources/test:
  3. a b
  4. (test) 56 % foreach f [glob *] { puts [file exists $f] }
  5. 1
  6. 1
  7. (test) 57 % touch ~mist
  8. (test) 58 % foreach f [glob *] { puts [file exists $f] }
  9. 1
  10. 1
  11. 0
  12. (test) 59 %