[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
- Can priority of interpreter-mode-alist over auto-mode-alist be changed?, skuhagen, 2008/03/27
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Peter Dyballa, 2008/03/28
- Message not available
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Lowell Gilbert, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Will Parsons, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Lennart Borgman (gmail), 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Peter Dyballa, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Lowell Gilbert, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Will Parsons, 2008/03/28
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?, Kevin Rodgers, 2008/03/29
Message not available
- Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed?,
Tim X <=