guix-commits
[Top][All Lists]
Advanced

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

[shepherd] 03/04: bash completion: Redirect stderr to the bit bucket.


From: Ludovic Courtès
Subject: [shepherd] 03/04: bash completion: Redirect stderr to the bit bucket.
Date: Sun, 19 Nov 2023 17:37:21 -0500 (EST)

civodul pushed a commit to branch master
in repository shepherd.

commit 90ead9516ccb8a2a6291baf5edc7ba1a6474f597
Author: Ludovic Courtès <ludo@gnu.org>
AuthorDate: Sun Nov 19 18:19:30 2023 +0100

    bash completion: Redirect stderr to the bit bucket.
    
    * etc/completion/bash/herd: Redirect stderr to /dev/null.
---
 etc/completion/bash/herd | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/etc/completion/bash/herd b/etc/completion/bash/herd
index 74e7a24..892eedb 100644
--- a/etc/completion/bash/herd
+++ b/etc/completion/bash/herd
@@ -33,7 +33,7 @@ _herd_complete_subcommand()
             ;;
         *)
             local services
-            services="$(herd status | grep '^ +\|^ -\| \*' | cut -d ' ' -f3)"
+            services="$(herd status 2> /dev/null | grep '^ +\|^ -\| \*' | cut 
-d ' ' -f3)"
             mapfile -t COMPREPLY < <(compgen -W "$services" -- 
"${COMP_WORDS[$COMP_CWORD]}")
             ;;
     esac



reply via email to

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