Opened 20 years ago
Closed 20 years ago
#2809 closed defect (fixed)
Use standard tcl convention to #! exec tclsh
Reported by: | steffen@… | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | base | Version: | 1.0 |
Keywords: | Cc: | ||
Port: |
Description
port.tcl, portall.tcl and portindex.tcl start with
#!!@TCLSH@
to exec tclsh, the standard tcl convention is to use the following instead
#!/bin/sh #\ exec @TCLSH@ "$0" "$@"
which has the advantages of seting up the shell environment, and working correctly if @TCLSH@ is itself a shell script (a fairly common configuration). The fix is trivial, patch attached.
Attachments (1)
Note: See
TracTickets for help on using
tickets.
patch implementing standard tcl #! exec convention to start tclsh