diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2001-11-18 20:24:47 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2001-11-18 20:24:47 +0000 |
| commit | 7c30945e0840e59c6b889093baa8596f3c8ccd56 (patch) | |
| tree | d10913e2f30ffdde902dd53c40fa86f2607ab55a /Completion | |
| parent | Fix typo in _urpmi for urpmi.addmedia (diff) | |
| download | zsh-7c30945e0840e59c6b889093baa8596f3c8ccd56.tar zsh-7c30945e0840e59c6b889093baa8596f3c8ccd56.tar.gz zsh-7c30945e0840e59c6b889093baa8596f3c8ccd56.tar.bz2 zsh-7c30945e0840e59c6b889093baa8596f3c8ccd56.tar.lz zsh-7c30945e0840e59c6b889093baa8596f3c8ccd56.tar.xz zsh-7c30945e0840e59c6b889093baa8596f3c8ccd56.tar.zst zsh-7c30945e0840e59c6b889093baa8596f3c8ccd56.zip | |
16264: don't use grep and sed in _dput
Diffstat (limited to 'Completion')
| -rw-r--r-- | Completion/Debian/Command/_dput | 4 |
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:' \ |
