Posted to tcl by Stu at Sat Jun 03 06:18:16 GMT 2023view raw

  1. $ uname -sm
  2. OpenBSD amd64
  3.  
  4. $ echo 'puts [package require tdom]' | tclsh8.6
  5. can't find package tdom
  6.  
  7. $ ls
  8. example3.tcl q.tcl
  9.  
  10. $ md5 -q example3.tcl
  11. 4b3d907b8f3256f14a5f3d6c8f8b4ab0
  12.  
  13. $ cat q.tcl
  14. set auto_path $tcl_library ;# reset to only Tcl library
  15. if {$argc > 0} { source example3.tcl }
  16. catch {package require tdom} res; puts $res
  17.  
  18. $ tclsh8.6 q.tcl
  19. can't find package tdom
  20.  
  21. $ tclsh8.6 q.tcl xyz
  22. 0.9.3
  23.  
  24. ---------------------------------------------
  25.  
  26. $ uname -sm
  27. OpenBSD amd64
  28.  
  29. $ echo 'puts [package require tdom]' | tclsh8.6
  30. can't find package tdom
  31.  
  32. $ ls
  33. example3.tcl q.tcl
  34.  
  35. $ md5 -q example3.tcl
  36. 4b3d907b8f3256f14a5f3d6c8f8b4ab0
  37.  
  38. $ cat q.tcl
  39. set auto_path $tcl_library ;# reset to only Tcl library
  40. if {$argc > 0} { source example3.tcl }
  41. catch {package require tdom} res; puts $res
  42.  
  43. $ tclsh8.6 q.tcl
  44. can't find package tdom
  45.  
  46. $ tclsh8.6 q.tcl xyz
  47. 0.9.3
  48.