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)

tclsh_exec.diff (1.6 KB) - added by steffen@… 20 years ago.
patch implementing standard tcl #! exec convention to start tclsh

Download all attachments as: .zip

Change History (2)

Changed 20 years ago by steffen@…

Attachment: tclsh_exec.diff added

patch implementing standard tcl #! exec convention to start tclsh

comment:1 Changed 20 years ago by olegb@…

Resolution: fixed
Status: newclosed

commited thanks.

Note: See TracTickets for help on using tickets.