emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/bash-completion 3eba6922e6 190/313: Use executable-find in


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 3eba6922e6 190/313: Use executable-find instead of hardcoding /bin/bash.
Date: Sat, 3 Dec 2022 10:59:29 -0500 (EST)

branch: elpa/bash-completion
commit 3eba6922e6c0b4375f85ea177b4c4ed8e32cbb81
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    Use executable-find instead of hardcoding /bin/bash.
    
    This allows bash-completion to find bash on systems where it is not in
    /bin/bash, as long as it is in the path or at least in Emacs
    exec-path.
    
    Note that, with this change, this might change the version of bash
    that's used by default on systems with multiple versions of bash
    installed.
    
    fixes #33
---
 bash-completion.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bash-completion.el b/bash-completion.el
index a649d81bbc..df8aca6d05 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -144,7 +144,7 @@ BASH completion is only available in the environment for 
which
   :type '(boolean)
   :group 'bash-completion)
 
-(defcustom bash-completion-prog "/bin/bash"
+(defcustom bash-completion-prog (executable-find "bash")
   "Name or path of the BASH executable to run for command-line completion.
 This should be either an absolute path to the BASH executable or
 the name of the bash command if it is on Emacs' PATH.  This



reply via email to

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