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

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

[nongnu] elpa/bash-completion 5661a34c4a 098/313: updated test case for


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 5661a34c4a 098/313: updated test case for cd 2>/dev/null
Date: Sat, 3 Dec 2022 10:59:20 -0500 (EST)

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

    updated test case for cd 2>/dev/null
---
 bash-completion_test.el | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/bash-completion_test.el b/bash-completion_test.el
index 0bd53191b1..ae079f222b 100644
--- a/bash-completion_test.el
+++ b/bash-completion_test.el
@@ -313,25 +313,25 @@ garbage
       (let ((bash-completion-alist nil)
            (default-directory "~/test"))
        (bash-completion-generate-line "hello worl" 7 '("hello" "worl") 1))
-      (concat "cd 2>/dev/null " (expand-file-name "~/test") " ; compgen -o 
default worl"))
+      (concat "cd >/dev/null 2>&1 " (expand-file-name "~/test") " ; compgen -o 
default worl"))
 
      ("bash-completion-generate-line custom completion no function or command"
       (let ((bash-completion-alist '(("zorg" . ("-A" "-G" "*.txt"))))
            (default-directory "/test"))
        (bash-completion-generate-line "zorg worl" 7 '("zorg" "worl") 1))
-      "cd 2>/dev/null /test ; compgen -A -G '*.txt' -- worl")
+      "cd >/dev/null 2>&1 /test ; compgen -A -G '*.txt' -- worl")
 
      ("bash-completion-generate-line custom completion function"
       (let ((bash-completion-alist '(("zorg" . ("-F" "__zorg"))))
            (default-directory "/test"))
        (bash-completion-generate-line "zorg worl" 7 '("zorg" "worl") 1))
-      "cd 2>/dev/null /test ; __BASH_COMPLETE_WRAPPER='COMP_LINE='\\''zorg 
worl'\\''; COMP_POINT=7; COMP_CWORD=1; COMP_WORDS=( zorg worl ); __zorg 
\"${COMP_WORDS[@]}\"' compgen -F __bash_complete_wrapper -- worl")
+      "cd >/dev/null 2>&1 /test ; __BASH_COMPLETE_WRAPPER='COMP_LINE='\\''zorg 
worl'\\''; COMP_POINT=7; COMP_CWORD=1; COMP_WORDS=( zorg worl ); __zorg 
\"${COMP_WORDS[@]}\"' compgen -F __bash_complete_wrapper -- worl")
 
      ("bash-completion-generate-line custom completion command"
       (let ((bash-completion-alist '(("zorg" . ("-C" "__zorg"))))
            (default-directory "/test"))
        (bash-completion-generate-line "zorg worl" 7 '("zorg" "worl") 1))
-      "cd 2>/dev/null /test ; __BASH_COMPLETE_WRAPPER='COMP_LINE='\\''zorg 
worl'\\''; COMP_POINT=7; COMP_CWORD=1; COMP_WORDS=( zorg worl ); __zorg 
\"${COMP_WORDS[@]}\"' compgen -F __bash_complete_wrapper -- worl")
+      "cd >/dev/null 2>&1 /test ; __BASH_COMPLETE_WRAPPER='COMP_LINE='\\''zorg 
worl'\\''; COMP_POINT=7; COMP_CWORD=1; COMP_WORDS=( zorg worl ); __zorg 
\"${COMP_WORDS[@]}\"' compgen -F __bash_complete_wrapper -- worl")
 
 
      ("bash-completion-starts-with empty str"
@@ -384,12 +384,12 @@ garbage
      ("bash-completion-cd-command-prefix current dir"
       (let ((default-directory "/tmp/x"))
        (bash-completion-cd-command-prefix))
-      "cd 2>/dev/null /tmp/x ; ")
+      "cd >/dev/null 2>&1 /tmp/x ; ")
 
      ("bash-completion-cd-command-prefix expand tilde"
       (let ((default-directory "~/x"))
        (bash-completion-cd-command-prefix))
-      (concat "cd 2>/dev/null " (expand-file-name "~/x") " ; "))
+      (concat "cd >/dev/null 2>&1 " (expand-file-name "~/x") " ; "))
 
      ("bash-completion-addsuffix ends with /"
       (flet ((file-accessible-directory-p (a) (error "unexpected")))



reply via email to

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