emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master bfec5674c65: Recognize PKGBUILD as bash style


From: Eli Zaretskii
Subject: master bfec5674c65: Recognize PKGBUILD as bash style
Date: Sat, 1 Jul 2023 04:28:01 -0400 (EDT)

branch: master
commit bfec5674c6529ed20c2e4eeb90f9350b1f899c01
Author: Davide Masserut <dm@mssdvd.com>
Commit: Eli Zaretskii <eliz@gnu.org>

    Recognize PKGBUILD as bash style
    
    * lisp/progmodes/sh-script.el (sh--guess-shell): Handle PKGBUILD.
    (Bug#64251)
---
 lisp/progmodes/sh-script.el | 1 +
 1 file changed, 1 insertion(+)

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]