unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Leo <sdl.web@gmail.com>
To: "Stephen J. Turnbull" <stephen@xemacs.org>
Cc: emacs-devel@gnu.org
Subject: Re: Why sh-set-shell insert a space after #!
Date: Fri, 17 Aug 2012 23:50:29 +0800	[thread overview]
Message-ID: <m11uj5ikl6.fsf@gmail.com> (raw)
In-Reply-To: <87y5levvf4.fsf@uwakimon.sk.tsukuba.ac.jp> (Stephen J. Turnbull's message of "Fri, 17 Aug 2012 16:18:07 +0900")

On 2012-08-17 15:18 +0800, Stephen J. Turnbull wrote:
> IIRC, POSIX allows but doesn't require the space.  However, some
> historical mostly-compatible shells had problems if there was no
> space.  Since it never hurts with fully conforming shells, and
> sometimes helps, it's a definite portability win.  (AFAIK there was no
> particular correlation between this kind of non-conformance and other,
> more important, non-conformance.)

From my reading of the two links, separation #! and the path with a
space is abnormal and evidenced by all scripts I can find. So I think
the better default for executable-prefix is "#!", not "#! ".

Leo



  parent reply	other threads:[~2012-08-17 15:50 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-17  4:05 Why sh-set-shell insert a space after #! Leo
2012-08-17  5:22 ` Thierry Volpiatto
2012-08-17  6:54   ` Leo
2012-08-17  7:06     ` Leo
2012-08-22 17:17       ` Bastien
2012-08-23  0:53         ` Leo
2012-08-23  9:54           ` Bastien
2012-08-24 17:08   ` Aurélien Aptel
2012-08-17  7:18 ` Stephen J. Turnbull
2012-08-17  8:05   ` Andreas Schwab
2012-08-17 15:50   ` Leo [this message]
2012-08-17 16:37     ` Thierry Volpiatto

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=m11uj5ikl6.fsf@gmail.com \
    --to=sdl.web@gmail.com \
    --cc=emacs-devel@gnu.org \
    --cc=stephen@xemacs.org \
    /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).