GNU bug report logs - #8745
Enhancement Request: Support for restricted bash interpreter scripts

Previous Next

Package: emacs;

Reported by: David Michael <fedora.dm0 <at> gmail.com>

Date: Fri, 27 May 2011 18:15:02 UTC

Severity: wishlist

Done: Stefan Monnier <monnier <at> iro.umontreal.ca>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 8745 in the body.
You can then email your comments to 8745 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to owner <at> debbugs.gnu.org, bug-gnu-emacs <at> gnu.org:
bug#8745; Package emacs. (Fri, 27 May 2011 18:15:03 GMT) Full text and rfc822 format available.

Acknowledgement sent to David Michael <fedora.dm0 <at> gmail.com>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs <at> gnu.org. (Fri, 27 May 2011 18:15:03 GMT) Full text and rfc822 format available.

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

From: David Michael <fedora.dm0 <at> gmail.com>
To: bug-gnu-emacs <at> gnu.org
Subject: Enhancement Request: Support for restricted bash interpreter scripts
Date: Fri, 27 May 2011 13:31:10 -0400
Hi,

  When bash is invoked with the name "rbash", it starts a restricted
shell (same as "bash -r").  This interpreter name is not recognized
and therefore sh-mode is not enabled when editing restricted scripts.

  The following patch is specifically what I am requesting.

 Thanks


*** lisp/files.el.orig  2011-02-18 18:16:54.000000000 -0500
--- lisp/files.el       2011-05-27 13:09:19.058670776 -0400
*************** and `magic-mode-alist', which determines
*** 2396,2401 ****
--- 2396,2402 ----
       ("ksh" . sh-mode)
       ("oash" . sh-mode)
       ("pdksh" . sh-mode)
+      ("rbash" . sh-mode)
       ("rc" . sh-mode)
       ("rpm" . sh-mode)
       ("sh" . sh-mode)




Reply sent to Stefan Monnier <monnier <at> iro.umontreal.ca>:
You have taken responsibility. (Fri, 27 May 2011 19:35:01 GMT) Full text and rfc822 format available.

Notification sent to David Michael <fedora.dm0 <at> gmail.com>:
bug acknowledged by developer. (Fri, 27 May 2011 19:35:01 GMT) Full text and rfc822 format available.

Message #10 received at 8745-done <at> debbugs.gnu.org (full text, mbox):

From: Stefan Monnier <monnier <at> iro.umontreal.ca>
To: David Michael <fedora.dm0 <at> gmail.com>
Cc: 8745-done <at> debbugs.gnu.org
Subject: Re: bug#8745: Enhancement Request: Support for restricted bash
	interpreter scripts
Date: Fri, 27 May 2011 16:34:18 -0300
>   When bash is invoked with the name "rbash", it starts a restricted
> shell (same as "bash -r").  This interpreter name is not recognized
> and therefore sh-mode is not enabled when editing restricted scripts.

>   The following patch is specifically what I am requesting.

Thank you.  Installed in the trunk.


        Stefan




bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Sat, 25 Jun 2011 11:24:04 GMT) Full text and rfc822 format available.

This bug report was last modified 13 years and 363 days ago.

Previous Next


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