* bug#17158: 24.4.50; sh-mode does not use auto-mode-interpreter-regexp to find shell type
@ 2014-04-01 11:36 Christopher Monsanto
2021-01-20 2:26 ` Lars Ingebrigtsen
0 siblings, 1 reply; 2+ messages in thread
From: Christopher Monsanto @ 2014-04-01 11:36 UTC (permalink / raw)
To: 17158
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
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/
[-- Attachment #2: Type: text/html, Size: 932 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* bug#17158: 24.4.50; sh-mode does not use auto-mode-interpreter-regexp to find shell type
2014-04-01 11:36 bug#17158: 24.4.50; sh-mode does not use auto-mode-interpreter-regexp to find shell type Christopher Monsanto
@ 2021-01-20 2:26 ` Lars Ingebrigtsen
0 siblings, 0 replies; 2+ messages in thread
From: Lars Ingebrigtsen @ 2021-01-20 2:26 UTC (permalink / raw)
To: Christopher Monsanto; +Cc: 17158
Christopher Monsanto <chris@monsan.to> writes:
> 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.
This is now fixed in Emacs 28.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-01-20 2:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-04-01 11:36 bug#17158: 24.4.50; sh-mode does not use auto-mode-interpreter-regexp to find shell type Christopher Monsanto
2021-01-20 2:26 ` Lars Ingebrigtsen
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.