unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Richard Stallman <rms@gnu.org>
Cc: miles@gnu.org, polymath@uwyo.edu, emacs-devel@gnu.org
Subject: Re: Sesquicolon -- Note: Not a Bug
Date: Sun, 01 Sep 2002 09:15:00 -0400	[thread overview]
Message-ID: <E17lUZA-0006KT-00@fencepost.gnu.org> (raw)
In-Reply-To: <m3y9an43zj.fsf@Janik.cz> (Pavel@Janik.cz)

    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 == '\'')

  reply	other threads:[~2002-09-01 13:15 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Pine.GSO.4.10.10208230008380.5847-100000@asuwlink.uwyo.edu>
2002-08-25  5:26 ` Sesquicolon -- Note: Not a Bug Richard Stallman
2002-08-25  5:37   ` Miles Bader
2002-08-25 10:01     ` Marius Vollmer
2002-08-26 12:53       ` Richard Stallman
2002-08-26 21:19         ` Marius Vollmer
2002-08-26 22:08           ` Stefan Monnier
2002-08-26  0:36     ` Richard Stallman
2002-08-26  1:53       ` Miles Bader
2002-08-26 21:51         ` Richard Stallman
2002-08-26 22:15           ` Stefan Monnier
2002-08-27  9:28             ` Kim F. Storm
2002-08-31 12:17           ` Pavel Janík
2002-09-01 13:15             ` Richard Stallman [this message]
2002-09-04 17:33               ` Pavel Janík
2002-08-25 18:52   ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E17lUZA-0006KT-00@fencepost.gnu.org \
    --to=rms@gnu.org \
    --cc=emacs-devel@gnu.org \
    --cc=miles@gnu.org \
    --cc=polymath@uwyo.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).