help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Can priority of interpreter-mode-alist over auto-mode-alist be chang


From: Tim X
Subject: Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?
Date: Sat, 29 Mar 2008 15:51:32 +1100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux)

Peter Dyballa <Peter_Dyballa@Web.DE> writes:

> Am 27.03.2008 um 13:42 schrieb skuhagen:
>> #!/bin/sh
>>  #\
>>  exec tclsh "$0" "$@"
>
> Why can't you use
>
>       #!/bin/tclsh
>

The way the OP wants to call the script is how Tcl and other scripting
languages recommend doing it. This avoids having to hard code the tcl
path in the script - for example, if a preferred and newer version of
tcl was in /usr/local/bin, the OPs preferred method would find that over
an older version in /usr/bin/tcl. Essentially, it is a way of avoiding
explicit paths to interpreters in the script, makinig it more portable
and giving greater flexibility.

Tim

-- 
tcross (at) rapttech dot com dot au


reply via email to

[Prev in Thread] Current Thread [Next in Thread]