about summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-02-03 09:53:01 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-02-03 09:53:01 +0000
commit368d303a20726a3027b887eef64b3f9920c450a2 (patch)
tree3a64f67b9a0606c30ca9b0ebd550412e89bef8da
parent756f17a755fe52eb36aefc99bed4a41385d41df8 (diff)
downloadzsh-368d303a20726a3027b887eef64b3f9920c450a2.tar.gz
zsh-368d303a20726a3027b887eef64b3f9920c450a2.tar.xz
zsh-368d303a20726a3027b887eef64b3f9920c450a2.zip
Mariusz Glebocki: 30179: suppress stderr for listing services
-rw-r--r--ChangeLog7
-rw-r--r--Completion/Unix/Type/_services2
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index dd02025b9..64b597e0b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2012-02-03  Peter Stephenson  <pws@csr.com>
+
+	* Mariusz Glebocki: 30179: Completion/Unix/Type/_services:
+	suppress stderr for service list.
+
 2012-02-01  Frank Terbeck  <ft@bewatermyfriend.org>
 
 	* A.Costa: unposted: Doc/Zsh/grammar.yo, Etc/ChangeLog-3.1: Fix
@@ -15903,5 +15908,5 @@
 
 *****************************************************
 * This is used by the shell to define $ZSH_PATCHLEVEL
-* $Revision: 1.5571 $
+* $Revision: 1.5572 $
 *****************************************************
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:]]#}/%:*} )