GNU bug report logs - #16938
24.3.50; Support the Dash shell shebang and .[bd]sh file types

Previous Next

Package: emacs;

Reported by: John Yates <john <at> yates-sheets.org>

Date: Tue, 4 Mar 2014 18:15:03 UTC

Severity: wishlist

Found in version 24.3.50

Fixed in version 24.4

Done: Glenn Morris <rgm <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 16938 <at> debbugs.gnu.org (full text, mbox):

From: Glenn Morris <rgm <at> gnu.org>
To: John Yates <john <at> yates-sheets.org>
Cc: 16938 <at> debbugs.gnu.org
Subject: Re: bug#16938: 24.3.50;
 Support the Dash shell shebang and .[bd]sh file types
Date: Tue, 04 Mar 2014 21:47:35 -0500
John Yates wrote:

> For interpreter-mode-alist I suggest adding the follow entry:
>
>      ("dash" . sh-mode)

Sounds good.

> 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)

I've never come across .bsh and .dsh used as extensions in this way.
I find zero examples on two random RHEL6, Debian testing machines.
The only .bsh files are LibreOffice components that are not bash scripts.
So this seems like something for your personal .emacs.




This bug report was last modified 11 years and 81 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.