emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#16938: closed (24.3.50; Support the Dash shell she


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#16938: closed (24.3.50; Support the Dash shell shebang and .[bd]sh file types)
Date: Wed, 05 Mar 2014 19:00:03 +0000

Your message dated Wed, 05 Mar 2014 13:59:46 -0500
with message-id <address@hidden>
and subject line Re: bug#16938: 24.3.50; Support the Dash shell shebang and 
.[bd]sh file types
has caused the debbugs.gnu.org bug report #16938,
regarding 24.3.50; Support the Dash shell shebang and .[bd]sh file types
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
16938: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=16938
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: 24.3.50; Support the Dash shell shebang and .[bd]sh file types Date: Tue, 4 Mar 2014 13:14:34 -0500
#!/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

--- End Message ---
--- Begin Message --- Subject: Re: bug#16938: 24.3.50; Support the Dash shell shebang and .[bd]sh file types Date: Wed, 05 Mar 2014 13:59:46 -0500 User-agent: Gnus (www.gnus.org), GNU Emacs (www.gnu.org/software/emacs/)
Version: 24.4

Glenn Morris wrote:

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

Added.


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]