From: Davide Masserut Date: Tue, 20 Jun 2023 13:55:11 +0000 (+0200) Subject: Recognize PKGBUILD as bash style X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bfec5674c6529ed20c2e4eeb90f9350b1f899c01;p=emacs.git Recognize PKGBUILD as bash style * lisp/progmodes/sh-script.el (sh--guess-shell): Handle PKGBUILD. (Bug#64251) --- 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'." ((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