From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Tim X Newsgroups: gmane.emacs.help Subject: Re: Can priority of interpreter-mode-alist over auto-mode-alist be changed? Date: Sat, 29 Mar 2008 15:51:32 +1100 Organization: Rapt Technologies Message-ID: <8763v6ku97.fsf@lion.rapttech.com.au> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1206769277 7715 80.91.229.12 (29 Mar 2008 05:41:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 29 Mar 2008 05:41:17 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Mar 29 06:41:47 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JfTp4-0003e9-Se for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 06:41:47 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JfToT-00061g-7v for geh-help-gnu-emacs@m.gmane.org; Sat, 29 Mar 2008 01:41:09 -0400 Original-Path: shelby.stanford.edu!headwall.stanford.edu!newsfeed.stanford.edu!sn-xt-sjc-02!sn-xt-sjc-10!sn-xt-sjc-01!sn-xt-sjc-06!sn-post-sjc-01!supernews.com!corp.supernews.com!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.60 (gnu/linux) Cancel-Lock: sha1:wArXlCPxJ/0IG1nRXsDcsuZpAMU= Original-X-Complaints-To: abuse@supernews.com Original-Lines: 24 Original-Xref: shelby.stanford.edu gnu.emacs.help:157416 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:52786 Archived-At: Peter Dyballa 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