all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Yates <john@yates-sheets.org>
To: 16938@debbugs.gnu.org
Subject: bug#16938: 24.3.50; Support the Dash shell shebang and .[bd]sh file types
Date: Tue, 4 Mar 2014 13:14:34 -0500	[thread overview]
Message-ID: <CAJnXXogz39=h6rz0VSvO7ZO-9f8QrjW9LjktifEFypB13G-M6A@mail.gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 776 bytes --]

#!/bin/sh is interpreted inconsistently across platforms.  In the rpm
world it most often maps to /bin/bash.  In the Debian universe it maps
to /bin/dash.  Bash and dash have subtle differences that have bitten
me often enough to cause me now to use precise shebangs (#!/bin/bash or
#!/bin/dash) and to suffix my files with either .bsh or .dsh.

At present emacs' interpreter-mode-alist knows nothing about dash and
its auto-mode-alist is ignorant of both the .bsh and .dsh suffixes.

For interpreter-mode-alist I suggest adding the follow entry:

     ("dash" . sh-mode)


For auto-mode-alist I suggest changing the follow entry:

     ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode)

to

     ("\\.[bcdk]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode)

/john

[-- Attachment #2: Type: text/html, Size: 1135 bytes --]

             reply	other threads:[~2014-03-04 18:14 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-03-04 18:14 John Yates [this message]
2014-03-05  2:47 ` bug#16938: 24.3.50; Support the Dash shell shebang and .[bd]sh file types Glenn Morris
2014-03-05 13:21   ` John Yates
2014-03-05 18:59   ` Glenn Morris

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

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

  git send-email \
    --in-reply-to='CAJnXXogz39=h6rz0VSvO7ZO-9f8QrjW9LjktifEFypB13G-M6A@mail.gmail.com' \
    --to=john@yates-sheets.org \
    --cc=16938@debbugs.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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.