unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Thierry Volpiatto <thierry.volpiatto@gmail.com>
To: emacs-devel@gnu.org
Subject: Re: Why sh-set-shell insert a space after #!
Date: Fri, 17 Aug 2012 18:37:36 +0200	[thread overview]
Message-ID: <87d32ph3u7.fsf@gmail.com> (raw)
In-Reply-To: m11uj5ikl6.fsf@gmail.com

Leo <sdl.web@gmail.com> writes:

> 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 "#! ".
Agree, also in all books, manuals I found , it is described like "#!/bin/bash"
and never "#! /bin/bash", same for python.

-- 
  Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997 




      reply	other threads:[~2012-08-17 16:37 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
2012-08-17 16:37     ` Thierry Volpiatto [this message]

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=87d32ph3u7.fsf@gmail.com \
    --to=thierry.volpiatto@gmail.com \
    --cc=emacs-devel@gnu.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).