mirror of
git://git.code.sf.net/p/zsh/code
synced 2024-09-22 03:40:47 +02:00
16264: don't use grep and sed in _dput
This commit is contained in:
parent
263f3b1422
commit
7c30945e08
@ -1,3 +1,8 @@
|
||||
2001-11-18 Clint Adams <clint@zsh.org>
|
||||
|
||||
* 16264: Completion/Debian/Command/_dput:
|
||||
Use parameter expansion instead of grep and sed.
|
||||
|
||||
2001-11-16 Chmouel Boudjnah <chmouel@mandrakesoft.com>
|
||||
|
||||
* 16258: Completion/Mandrake/Command/_urpmi:
|
||||
|
@ -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:' \
|
||||
|
Loading…
Reference in New Issue
Block a user