From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Glenn Morris Newsgroups: gmane.emacs.devel Subject: Re: sh-script.el and magic numbers Date: Sun, 19 Jan 2003 23:48:19 +0000 Sender: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Message-ID: <8del78n1ks.fsf@ast.cam.ac.uk> References: <200301190324.VAA14671@eel.dms.auburn.edu> <200301191247.h0JCl1Zs020036@beta.mvs.co.il> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1043020108 15394 80.91.224.249 (19 Jan 2003 23:48:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 19 Jan 2003 23:48:28 +0000 (UTC) Cc: emacs-devel@gnu.org Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 18aPAw-0003zu-00 for ; Mon, 20 Jan 2003 00:48:26 +0100 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 18aPLY-000666-00 for ; Mon, 20 Jan 2003 00:59:24 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18aPC2-0005cj-00 for emacs-devel@quimby.gnus.org; Sun, 19 Jan 2003 18:49:34 -0500 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10.13) id 18aPBU-00051R-00 for emacs-devel@gnu.org; Sun, 19 Jan 2003 18:49:00 -0500 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10.13) id 18aPBN-0004gK-00 for emacs-devel@gnu.org; Sun, 19 Jan 2003 18:48:55 -0500 Original-Received: from brown.csi.cam.ac.uk ([131.111.8.14]) by monty-python.gnu.org with esmtp (Exim 4.10.13) id 18aPAx-0003Pb-00 for emacs-devel@gnu.org; Sun, 19 Jan 2003 18:48:27 -0500 Original-Received: from cass41.ast.cam.ac.uk ([131.111.69.186]) by brown.csi.cam.ac.uk with esmtp (Exim 4.10) id 18aPAt-000399-00; Sun, 19 Jan 2003 23:48:23 +0000 Original-Received: from ast.cam.ac.uk (IDENT:THeH3GJGeqE8/JUB5LBqalUg6m9zaEBh@xpc21 [131.111.69.55])h0JNmJNS006409; Sun, 19 Jan 2003 23:48:19 GMT Original-To: ehud@unix.mvs.co.il X-Attribution: GM Mail-Followup-To: ehud@unix.mvs.co.il, teirllm@dms.auburn.edu, emacs-devel@gnu.org In-Reply-To: <200301191247.h0JCl1Zs020036@beta.mvs.co.il> ("Ehud Karni"'s message of "Sun, 19 Jan 2003 14:47:01 +0200") User-Agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/directory/emacs.html) Original-cc: teirllm@dms.auburn.edu X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1b5 Precedence: list List-Id: Emacs development discussions. List-Help: List-Post: List-Subscribe: , List-Archive: List-Unsubscribe: , Errors-To: emacs-devel-bounces+emacs-devel=quimby.gnus.org@gnu.org Xref: main.gmane.org gmane.emacs.devel:10875 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:10875 "Ehud Karni" wrote: > The short answer is that the "#!" magic number should be a requirement. I would disagree - it seems to me a matter of personal taste. It's not essential, but it does no harm either. So I probably need the longer answer as to why it should be a requirement. Though perhaps that is OT in emacs-devel... The main Emacs-related gripe I have about adding it is that I like to use (add-hook 'after-save-hook 'executable-make-buffer-file-executable-if-script-p) which makes files that contain #! magic executable on save. So if I put #!/bin/bash in my ~/.bashrc, for example, Emacs insists on making it executable, which annoys me, as it's not *meant* to be executed. > You can use it in sourced files (both in sh/bash and csh/tcsh). You can't *use* it. You can put it in the file and it doesn't do anything - doesn't seem very useful to me. I note that none of the system config files in the RedHat distribution I'm currently using have it. > It is good programming practice to add it. Why?