From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Richard Stallman Newsgroups: gmane.emacs.devel Subject: Re: Sesquicolon -- Note: Not a Bug Date: Sun, 01 Sep 2002 09:15:00 -0400 Sender: emacs-devel-admin@gnu.org Message-ID: References: <200208250526.g7P5Q3F11930@wijiji.santafe.edu> <20020825053748.GA2511@gnu.org> <200208260036.g7Q0aC012352@wijiji.santafe.edu> <200208262151.g7QLpuX12815@wijiji.santafe.edu> Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030887036 8485 127.0.0.1 (1 Sep 2002 13:30:36 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 1 Sep 2002 13:30:36 +0000 (UTC) Cc: miles@gnu.org, polymath@uwyo.edu, 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 17lUoE-0002Cj-00 for ; Sun, 01 Sep 2002 15:30:34 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17lVLy-00070b-00 for ; Sun, 01 Sep 2002 16:05:27 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lUph-0000Ft-00; Sun, 01 Sep 2002 09:32:05 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17lUZO-0003qf-00 for emacs-devel@gnu.org; Sun, 01 Sep 2002 09:15:14 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17lUZJ-0003pX-00 for emacs-devel@gnu.org; Sun, 01 Sep 2002 09:15:12 -0400 Original-Received: from fencepost.gnu.org ([199.232.76.164]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17lUZI-0003ou-00 for emacs-devel@gnu.org; Sun, 01 Sep 2002 09:15:08 -0400 Original-Received: from rms by fencepost.gnu.org with local (Exim 4.10) id 17lUZA-0006KT-00; Sun, 01 Sep 2002 09:15:00 -0400 Original-To: Pavel@Janik.cz In-Reply-To: (Pavel@Janik.cz) Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:7264 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:7264 The current implementation is not enough: pavel@SnowWhite:/tmp> cat /tmp/qq #!/usr/bin/emacs --script (message "The date is %s" (current-time-string)) pavel@SnowWhite:/tmp> /tmp/qq Invalid read syntax: "#" Does this fix it? *** lread.c.~1.296.~ Fri Aug 23 23:14:22 2002 --- lread.c Sat Aug 31 19:38:44 2002 *************** *** 2098,2103 **** --- 2098,2111 ---- goto retry; } + if (c == '!') + { + /* #! appears at the beginning of an executable file. + Skip the first line. */ + while (c != '\n') + c = READCHAR; + goto retry; + } if (c == '$') return Vload_file_name; if (c == '\'')