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

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

[nongnu] elpa/bash-completion e9a7c8872d 2/5: Give more details when com


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion e9a7c8872d 2/5: Give more details when complaining about the version of Bash.
Date: Sun, 5 Feb 2023 17:58:23 -0500 (EST)

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

    Give more details when complaining about the version of Bash.
---
 bash-completion.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/bash-completion.el b/bash-completion.el
index 073b2f6a07..05f501b566 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -369,8 +369,11 @@ returned."
 (defun bash-completion--setup-bash-common (process)
   "Setup PROCESS to be ready for completion."
   (unless (zerop
-           (bash-completion-send "[[ ${BASH_VERSINFO[0]} -ge 4 ]]" process))
-    (error "bash-completion.el requires at least Bash 4."))
+           (bash-completion-send "echo -n $BASH_VERSION ; [[ 
${BASH_VERSINFO[0]} -ge 4 ]]" process))
+    (error "bash-completion.el requires at least Bash 4, not %s."
+           (with-current-buffer (bash-completion--get-buffer process)
+             (buffer-substring-no-properties
+              (point-min) (point-max)))))
   (bash-completion-send
    (concat "function __emacs_fixdirs {"
            "  local l; "



reply via email to

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