about summary refs log tree commit diff
path: root/Completion/Debian
diff options
context:
space:
mode:
authorClint Adams <clint@users.sourceforge.net>2001-11-18 20:26:32 +0000
committerClint Adams <clint@users.sourceforge.net>2001-11-18 20:26:32 +0000
commitaf8b430e7bd58fac43fbdf2906bd915dae4ab95a (patch)
treee01e05ddb8f11dbea95d86684ff0323e94a9de4f /Completion/Debian
parente3b82281201b64225962f86ff68a4151cc41e4e4 (diff)
downloadzsh-af8b430e7bd58fac43fbdf2906bd915dae4ab95a.tar.gz
zsh-af8b430e7bd58fac43fbdf2906bd915dae4ab95a.tar.xz
zsh-af8b430e7bd58fac43fbdf2906bd915dae4ab95a.zip
16264: don't use grep and sed in _dput
Diffstat (limited to 'Completion/Debian')
-rw-r--r--Completion/Debian/Command/_dput4
1 files changed, 1 insertions, 3 deletions
diff --git a/Completion/Debian/Command/_dput b/Completion/Debian/Command/_dput
index 39d2973bc..5fe9847d1 100644
--- a/Completion/Debian/Command/_dput
+++ b/Completion/Debian/Command/_dput
@@ -1,9 +1,7 @@
 #compdef dput
 
 if (( ! $+_dput_sites )); then
-  _dput_sites=(
-$(grep "^\[" /etc/dput.cf | sed -e 's,\[,,g' -e 's,\],,g')
-)
+  _dput_sites=( ${${(M)${(f)"$(</etc/dput.cf)"}:#\[*}//[][]/} )
 fi
 
 _arguments '(-c)--config[config file]:config file:' \