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

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

bug#17158: 24.4.50; sh-mode does not use auto-mode-interpreter-regexp to


From: Christopher Monsanto
Subject: bug#17158: 24.4.50; sh-mode does not use auto-mode-interpreter-regexp to find shell type
Date: Tue, 1 Apr 2014 07:36:29 -0400

See title; In sh-script.el, line ~1631

>    (cond ((save-excursion
>            (goto-char (point-min))
>           (looking-at "#![ \t]?\\([^ \t\n]*/bin/env[ \t]\\)?\\([^ \t\n]+\\)"))

This appears to duplicate auto-mode-interpreter-regexp in files.el, line ~2593:

> (defvar auto-mode-interpreter-regexp
>  (purecopy "#![ \t]?\\([^ \t\n]*\
/bin/env[ \t]\\)?\\([^ \t\n]+\\)")

This duplication makes it difficult to customize auto-mode-interpreter-regexp. A discrepancy will cause the wrong shell type (bash, ksh, csh, ...) to be selected.

Christopher Monsanto
chris@monsan.to  --  http://monsan.to/


reply via email to

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