From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Leo Newsgroups: gmane.emacs.devel Subject: Re: Why sh-set-shell insert a space after #! Date: Fri, 17 Aug 2012 15:06:56 +0800 Message-ID: References: <87obmagkj4.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1345187246 16104 80.91.229.3 (17 Aug 2012 07:07:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 17 Aug 2012 07:07:26 +0000 (UTC) Cc: Thierry Volpiatto , emacs-devel@gnu.org To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Aug 17 09:07:26 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1T2GeR-0003yz-Ja for ged-emacs-devel@m.gmane.org; Fri, 17 Aug 2012 09:07:23 +0200 Original-Received: from localhost ([::1]:36873 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2GeQ-0001eV-F1 for ged-emacs-devel@m.gmane.org; Fri, 17 Aug 2012 03:07:22 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:43170) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2GeI-0001H0-5a for emacs-devel@gnu.org; Fri, 17 Aug 2012 03:07:15 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T2GeH-0002eZ-0v for emacs-devel@gnu.org; Fri, 17 Aug 2012 03:07:14 -0400 Original-Received: from mail-pb0-f41.google.com ([209.85.160.41]:59112) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T2GeG-0002eR-R4 for emacs-devel@gnu.org; Fri, 17 Aug 2012 03:07:12 -0400 Original-Received: by pbbro12 with SMTP id ro12so3182636pbb.0 for ; Fri, 17 Aug 2012 00:07:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-type; bh=SJf2c4mY2vgbK7RR/FAgoGgvRjRsscbYfgZ1bc7QhPo=; b=wBBH8eek+tY36xl1vnF50szmtKrk84KJzCNrC4hfAW8GaIHDqWSE6+ucsdVWJgzkIj eb/GRcmBdnDJj4jyAl8EydxpXybwlRxFSifz2WD/K1laqMqsDxEk5xEgxlHU4+t8Td6J zt4moqrgjml5EQmNaVHqH2v/gvdbNVb89V+UmlylneLvHWAmwj6uJ3/mT6vV3hM4dIKE dUyHfYTmH02uL9cOqevf4o/QSCnyAgshQcXYwndpdApiFBL34FvVcLfXaj9kJqgxIhjB 61l9i0GLA+DYPIrOX8vxuFvhs4iGYEaYfTymudiK04G/Jxj825ymHvcVp38p4aGC/rOE yhgw== Original-Received: by 10.66.75.202 with SMTP id e10mr7515243paw.55.1345187232024; Fri, 17 Aug 2012 00:07:12 -0700 (PDT) Original-Received: from Shidais-iMac.local ([216.185.105.36]) by mx.google.com with ESMTPS id iu10sm4329862pbc.45.2012.08.17.00.07.09 (version=TLSv1/SSLv3 cipher=OTHER); Fri, 17 Aug 2012 00:07:11 -0700 (PDT) In-Reply-To: (Leo's message of "Fri, 17 Aug 2012 14:54:54 +0800") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (OS X 10.8) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 209.85.160.41 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:152605 On 2012-08-17 14:54 +0800, Leo wrote: >> Seems that this is wrong: >> http://en.wikipedia.org/wiki/Shebang_%28Unix%29#Magic_number >> http://www.in-ulm.de/~mascheck/various/shebang/#details > > Have I just discovered one of the oldest bugs? ;) Hello Yidong, Any objection to installing this tiny patch in emacs-24? diff --git a/lisp/progmodes/executable.el b/lisp/progmodes/executable.el index c44f1d73..201b4797 100644 --- a/lisp/progmodes/executable.el +++ b/lisp/progmodes/executable.el @@ -84,8 +84,9 @@ (defcustom executable-magicless-file-regexp "/[Mm]akefile$\\|/\\.\\(z?profile\\| :group 'executable) -(defcustom executable-prefix "#! " +(defcustom executable-prefix "#!" "*Interpreter magic number prefix inserted when there was no magic number." + :version "24.2" :type 'string :group 'executable)