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 07:22:23 +0200 [thread overview]
Message-ID: <87obmagkj4.fsf@gmail.com> (raw)
In-Reply-To: m2mx1uxix7.fsf@gmail.com
Leo <sdl.web@gmail.com> writes:
> Hello all,
>
> If you M-x sh-set-shell in a buffer it inserts something like:
>
> #! /bin/bash
>
> I am curious why a space after #!. I read this page:
> http://en.wikipedia.org/wiki/Shebang_(Unix). The newsgroup post by
> Dennis Ritchie also has a space. But most scripts I have seen do not. So
> I am curious ;)
Seems that this is wrong:
http://en.wikipedia.org/wiki/Shebang_%28Unix%29#Magic_number
http://www.in-ulm.de/~mascheck/various/shebang/#details
--
Thierry
Get my Gnupg key:
gpg --keyserver pgp.mit.edu --recv-keys 59F29997
next prev parent reply other threads:[~2012-08-17 5:22 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 [this message]
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
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=87obmagkj4.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).