branch: elpa/bash-completion
commit ffe8bc46a2655d99fa14e56b7fbb673773eef6c2
Author: Stephane Zermatten <[email protected]>
Commit: Stephane Zermatten <[email protected]>
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))
" ; ")
""))