* bug#8745: Enhancement Request: Support for restricted bash interpreter scripts
@ 2011-05-27 17:31 David Michael
2011-05-27 19:34 ` Stefan Monnier
0 siblings, 1 reply; 2+ messages in thread
From: David Michael @ 2011-05-27 17:31 UTC (permalink / raw)
To: 8745
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)
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#8745: Enhancement Request: Support for restricted bash interpreter scripts
2011-05-27 17:31 bug#8745: Enhancement Request: Support for restricted bash interpreter scripts David Michael
@ 2011-05-27 19:34 ` Stefan Monnier
0 siblings, 0 replies; 2+ messages in thread
From: Stefan Monnier @ 2011-05-27 19:34 UTC (permalink / raw)
To: David Michael; +Cc: 8745-done
> 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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-05-27 19:34 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-27 17:31 bug#8745: Enhancement Request: Support for restricted bash interpreter scripts David Michael
2011-05-27 19:34 ` Stefan Monnier
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.