aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavide Masserut2023-06-20 15:55:11 +0200
committerEli Zaretskii2023-07-01 11:27:58 +0300
commitbfec5674c6529ed20c2e4eeb90f9350b1f899c01 (patch)
tree5e5b068c553d01c07ea636a27564c6e9933b3320
parent7bcf7b8e20eb41ba2a0ecd134a795928786b1d41 (diff)
downloademacs-bfec5674c6529ed20c2e4eeb90f9350b1f899c01.tar.gz
emacs-bfec5674c6529ed20c2e4eeb90f9350b1f899c01.zip
Recognize PKGBUILD as bash style
* lisp/progmodes/sh-script.el (sh--guess-shell): Handle PKGBUILD. (Bug#64251)
-rw-r--r--lisp/progmodes/sh-script.el1
1 files changed, 1 insertions, 0 deletions
diff --git a/lisp/progmodes/sh-script.el b/lisp/progmodes/sh-script.el
index 6beff9f41e9..a305c35c5f8 100644
--- 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'."
1489 ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh") 1489 ((string-match "[.]t?csh\\(rc\\)?\\>" buffer-file-name) "csh")
1490 ((string-match "[.]zsh\\(rc\\|env\\)?\\>" buffer-file-name) "zsh") 1490 ((string-match "[.]zsh\\(rc\\|env\\)?\\>" buffer-file-name) "zsh")
1491 ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh") 1491 ((equal (file-name-nondirectory buffer-file-name) ".profile") "sh")
1492 ((equal (file-name-nondirectory buffer-file-name) "PKGBUILD") "bash")
1492 (t sh-shell-file))) 1493 (t sh-shell-file)))
1493 1494
1494;;;###autoload 1495;;;###autoload