From 368d303a20726a3027b887eef64b3f9920c450a2 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Fri, 3 Feb 2012 09:53:01 +0000 Subject: Mariusz Glebocki: 30179: suppress stderr for listing services --- Completion/Unix/Type/_services | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Completion/Unix/Type/_services') diff --git a/Completion/Unix/Type/_services b/Completion/Unix/Type/_services index 496054795..3dd1e1231 100644 --- a/Completion/Unix/Type/_services +++ b/Completion/Unix/Type/_services @@ -10,7 +10,7 @@ if [[ $OSTYPE = freebsd* ]]; then _wanted services expl service compadd "$@" - $alls[@] && ret=0 fi elif chkconfig --list > /dev/null 2>&1; then - alls=( ${(f)"$(LANGUAGE=C LANG=C LC_ALL=C chkconfig --list)"} ) + alls=( ${(f)"$(LANGUAGE=C LANG=C LC_ALL=C chkconfig --list 2> /dev/null)"} ) inits=( ${${${alls[1,(r)xinetd based*]}[1,-2]}/%[[:space:]]*/} ) xinetds=( ${${${${alls[(r)xinetd based*,-1]}[2,-1]}/#[[:space:]]#}/%:*} ) -- cgit 1.4.1