Guest User

Untitled

a guest
Jan 16th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #!/bin/sh
  2. # A Tcl comment, whose contents don't matter
  3. exec tclsh "$0" "$@"
  4.  
  5. exec tclsh $0 ${1+$@}
  6.  
  7. #!/usr/bin/env tclsh
  8. puts $tcl_version
  9.  
  10. 8.5
  11.  
  12. #!/usr/bin/tclsh
  13. puts $tcl_version
  14.  
  15. pax> cat qq.tcsh
  16. #!/usr/bin/tclsh
  17. puts $argc
  18. puts $argv
  19.  
  20. pax> qq.tcsh my name is pax
  21. 4
  22. my name is pax
  23.  
  24. #!/bin/sh
  25. # A Tcl comment, whose contents don't matter
  26. exec /some/very/long/path/to/find/a/tcl/executable/path/tclsh "$0" "$@"
  27.  
  28. #!/usr/bin/env tclsh
Add Comment
Please, Sign In to add comment