GNU bug report logs - #17991
shell-mode: fails to recognize .bashrc files as shell scripts

Previous Next

Package: emacs;

Reported by: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>

Date: Thu, 10 Jul 2014 18:15:02 UTC

Severity: wishlist

Tags: moreinfo, wontfix

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


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

From: Glenn Morris <rgm <at> gnu.org>
To: Andrew Pennebaker <andrew.pennebaker <at> gmail.com>
Cc: 17991 <at> debbugs.gnu.org
Subject: Re: bug#17991: shell-mode: fails to recognize .bashrc files as shell
 scripts
Date: Thu, 10 Jul 2014 14:23:11 -0400
Andrew Pennebaker wrote:

> Would be helpful if shell-mode understood that .bashrc*, .profile*, etc.
> are shell scripts. Right now, they are treated as fundamental.

Works for me.

emacs-24.3 -Q .profile    -> shell-script
emacs-24.3 -Q .bashrc     -> shell-script

C-h v auto-mode-alist
 ("\\.[ck]?sh\\'\\|\\.shar\\'\\|/\\.z?profile\\'" . sh-mode)
 ("\\(/\\|\\`\\)\\.\\(bash_profile\\|z?login\\|bash_login\\|z?logout\\)\\'"
 . sh-mode)
 ("\\(/\\|\\`\\)\\.\\(bash_logout\\|shrc\\|[kz]shrc\\|bashrc\\|t?cshrc\\|esrc\\)\\'"
 . sh-mode)




This bug report was last modified 9 years and 206 days ago.

Previous Next


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