[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/bash-completion 91d51ede0d: Have bash-completion-debug rep
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/bash-completion 91d51ede0d: Have bash-completion-debug report all of BASH_VERSION. |
Date: |
Thu, 2 Mar 2023 15:59:11 -0500 (EST) |
branch: elpa/bash-completion
commit 91d51ede0d9424766a0c174890a331385390f7fa
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <stephane@fuzzy.zia>
Have bash-completion-debug report all of BASH_VERSION.
Before this change, when not in separate process mode, only the major
and minor version of the Bash process was reported, in an attempt at
avoiding issues with BASH_VERSION containing unexpected characters.
This change uses BASH_VERSION, instead, as the content of BASH_VERSION
is reasonably well defined and constrained.
---
bash-completion.el | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bash-completion.el b/bash-completion.el
index 442e839ddb..cad465ad90 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -1492,7 +1492,7 @@ Return the status code of the command, as a number."
(bash-completion-use-separate-processes "%s\n")
;; single process, assume __ebcpre is already defined
((not define-functions)
- "type __ebcpre &>/dev/null || echo
==emacs==nopre=${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}==. && { __ebcpre; %s;
}\n")
+ "type __ebcpre &>/dev/null || echo
==emacs==nopre=${BASH_VERSION}==. && { __ebcpre; %s; }\n")
;; single process, define __ebcpre
(t
(concat
@@ -1504,7 +1504,7 @@ Return the status code of the command, as a number."
" history -d $c &>/dev/null || true;"
"}; function __ebcpre {"
" set +x; set +o emacs; set +o vi;"
- " echo
\"==emacs==bash=${BASH_VERSINFO[0]}.${BASH_VERSINFO[1]}==.\";"
+ " echo \"==emacs==bash=${BASH_VERSION}==.\";"
" if [[ -z \"${__ebcps1}\" ]]; then "
" __ebcps1=\"$PS1\";"
" __ebcpc=\"$PROMPT_COMMAND\";"
@@ -1536,7 +1536,7 @@ Return the status code of the command, as a number."
(funcall send-string process complete-command)
(unless bash-completion-use-separate-processes
(bash-completion--wait-for-regexp
- "short-timeout" process
"==emacs==\\(nopre\\|bash\\)=\\([0-9]\\.[0-9]*\\)==."
+ "short-timeout" process
"==emacs==\\(nopre\\|bash\\)=\\([0-9].*?\\)==."
bash-completion-short-command-timeout)
(push (cons 'bash-version (match-string 2))
bash-completion--debug-info)
(when (string= "nopre" (match-string 1))
@@ -1548,7 +1548,7 @@ Return the status code of the command, as a number."
(bash-completion--setup-bash-common process)
(funcall send-string process (concat "__ebcpre; " commandline ";\n"))
(bash-completion--wait-for-regexp
- "short-timeout" process "==emacs==bash=[0-9]\\.[0-9]*==."
+ "short-timeout" process "==emacs==bash=[0-9].*?==."
bash-completion-short-command-timeout))
(delete-region (point-min) (1+ (match-end 0))))
(bash-completion--wait-for-regexp "timeout" process
"==emacs==ret=-?[[:digit:]]+==." timeout)
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [nongnu] elpa/bash-completion 91d51ede0d: Have bash-completion-debug report all of BASH_VERSION.,
ELPA Syncer <=