mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-04 10:41:11 +02:00
Back out 11327 and make the correct fix in _groups (redirect ypcat to stderr)
This commit is contained in:
parent
cd65b9b4bb
commit
a39eb7948e
3 changed files with 2 additions and 4 deletions
|
@ -1,6 +1,6 @@
|
|||
2000-05-11 Oliver Kiddle <opk@zsh.org>
|
||||
|
||||
* 11327: Completion/Core/_call: pass on exit code from called command
|
||||
* 11329: Completion/User/_groups: redirect ypcat to stderr
|
||||
|
||||
2000-05-11 Sven Wischnowsky <wischnow@zsh.org>
|
||||
|
||||
|
|
|
@ -11,5 +11,3 @@ if zstyle -s ":completion:${curcontext}:${1}" command tmp; then
|
|||
else
|
||||
eval "$argv[2,-1]"
|
||||
fi
|
||||
|
||||
return $?
|
||||
|
|
|
@ -7,7 +7,7 @@ _tags groups || return 1
|
|||
if ! zstyle -a ":completion:${curcontext}:" groups groups; then
|
||||
(( $+_cache_groups )) ||
|
||||
if (( ${+commands[ypcat]} )) &&
|
||||
tmp=$(_call groups ypcat group.byname); then
|
||||
tmp=$(_call groups ypcat group.byname 2>/dev/null); then
|
||||
: ${(A)_cache_groups:=${${(f)tmp}%%:*}} # If you use YP
|
||||
else
|
||||
: ${(A)_cache_groups:=${${(s: :)$(</etc/group)}%%:*}}
|
||||
|
|
Loading…
Reference in a new issue