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: Sat, 24 Aug 2002 23:26:03 -0600 (MDT) Sender: emacs-devel-admin@gnu.org Message-ID: <200208250526.g7P5Q3F11930@wijiji.santafe.edu> References: Reply-To: rms@gnu.org NNTP-Posting-Host: localhost.gmane.org X-Trace: main.gmane.org 1030253327 17850 127.0.0.1 (25 Aug 2002 05:28:47 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Sun, 25 Aug 2002 05:28:47 +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 17ipx7-0004dn-00 for ; Sun, 25 Aug 2002 07:28:45 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17iqRJ-0001S2-00 for ; Sun, 25 Aug 2002 07:59:57 +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 17ipyO-0007VN-00; Sun, 25 Aug 2002 01:30:04 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17ipuf-0006UH-00 for emacs-devel@gnu.org; Sun, 25 Aug 2002 01:26:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17ipuZ-0006RB-00 for emacs-devel@gnu.org; Sun, 25 Aug 2002 01:26:10 -0400 Original-Received: from pele.santafe.edu ([192.12.12.119]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17ipuZ-0006QU-00; Sun, 25 Aug 2002 01:26:07 -0400 Original-Received: from wijiji.santafe.edu (wijiji [192.12.12.5]) by pele.santafe.edu (8.11.6+Sun/8.11.6) with ESMTP id g7P5QS526928; Sat, 24 Aug 2002 23:26:28 -0600 (MDT) Original-Received: (from rms@localhost) by wijiji.santafe.edu (8.11.6+Sun/8.9.3) id g7P5Q3F11930; Sat, 24 Aug 2002 23:26:03 -0600 (MDT) X-Authentication-Warning: wijiji.santafe.edu: rms set sender to rms@wijiji using -f Original-To: polymath@uwyo.edu In-Reply-To: (message from John H Swaby on Fri, 23 Aug 2002 00:10:55 -0600 (MDT)) 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:6854 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6854 For the languages other than Emacs Lisp, we use the shebang, "#!", as the first two characters of our scripts; but since Emacs requires more than two arguments to load and run a script in batch mode, I use the sesquicolon, ":;", for Emacs. ;; would work if you feed the script manually as input to Bash. However, the special thing about #! is that exec recognizes it. exec won't recognize ;;. I wonder if there is a way we could change Emacs so that it could run properly with #!. Here's an idea that might work: suppose that when Emacs's stdin is a file, but there is no -batch option, it automatically starts in batch mode and loads $0. WIth that change, maybe #!/usr/bin/emacs could work. What do people think?