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

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

[nongnu] elpa/bash-completion ffe8bc46a2 097/313: Ignore 'cd' stdout, in


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion ffe8bc46a2 097/313: Ignore 'cd' stdout, in case someone (like me) is crazy enough to override the builtin command
Date: Sat, 3 Dec 2022 10:59:20 -0500 (EST)

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

    Ignore 'cd' stdout, in case someone (like me) is crazy enough to override 
the builtin command
---
 bash-completion.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/bash-completion.el b/bash-completion.el
index fa636a837d..122cfd6800 100644
--- a/bash-completion.el
+++ b/bash-completion.el
@@ -871,7 +871,7 @@ is set to t."
 
 Return a bash command-line for going to default-directory or \"\"."
   (if default-directory
-      (concat "cd 2>/dev/null "
+      (concat "cd >/dev/null 2>&1 "
              (bash-completion-quote (expand-file-name default-directory))
              " ; ")
     ""))



reply via email to

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