Commit f2d20357 authored by Gerd Moellmann's avatar Gerd Moellmann

(sh-mode): If there is no #!-line, use the shell

from sh-shell-file.
parent 340fe50f
......@@ -1297,12 +1297,7 @@ with your script for an edit-interpret-debug cycle."
(if interpreter
(sh-set-shell interpreter nil nil)
;; If we don't know the shell for this file, set the syntax
;; table anyway, for the user's normal choice of shell.
(set-syntax-table (sh-feature sh-mode-syntax-table))
;; And avoid indent-new-comment-line (at least) losing.
(setq comment-start-skip "#+[\t ]*"))))
(sh-set-shell sh-shell-file nil t))
(run-hooks 'sh-mode-hook))
(defalias 'shell-script-mode 'sh-mode)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment