projects
/
emacs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7bcf7b8
)
Recognize PKGBUILD as bash style
author
Davide Masserut
<dm@mssdvd.com>
Tue, 20 Jun 2023 13:55:11 +0000
(15:55 +0200)
committer
Eli Zaretskii
<eliz@gnu.org>
Sat, 1 Jul 2023 08:27:58 +0000
(11:27 +0300)
* lisp/progmodes/sh-script.el (sh--guess-shell): Handle PKGBUILD.
(Bug#64251)
lisp/progmodes/sh-script.el
patch
|
blob
|
history
diff --git
a/lisp/progmodes/sh-script.el
b/lisp/progmodes/sh-script.el
index 6beff9f41e96a2d42af4fba7e33ecdc2970ccdbc..a305c35c5f8d00e1f2ffa5dfeb608251b8417e9e 100644
(file)
--- a/
lisp/progmodes/sh-script.el
+++ b/
lisp/progmodes/sh-script.el
@@
-1489,6
+1489,7
@@
Return the name of the shell suitable for `sh-set-shell'."
((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh")
((string-match "[.]zsh\\(rc\\|env\\)?\\>" buffer-file-name) "zsh")
((equal (file-name-nondirectory buffer-file-name) ".profile") "sh")
+ ((equal (file-name-nondirectory buffer-file-name) "PKGBUILD") "bash")
(t sh-shell-file)))
;;;###autoload