_xbps: drop use of sed

This commit is contained in:
Christian Neukirchen 2014-09-17 16:26:56 +02:00 committed by Juan RP
parent 5cbfdd5c5c
commit 21a4473f7a

View File

@ -44,11 +44,11 @@ _xbps_properties=(
)
_xbps_all_packages() {
compadd "$@" -- $(xbps-query -Rs '' | sed 's/^... \([^ ]*\)-.* .*/\1/')
compadd "$@" -- ${${${(f)"$(xbps-query -Rs '')"}#??? }%%-[^- ]# *}
}
_xbps_installed_packages() {
compadd "$@" -- $(xbps-query -l | sed 's/^.. \([^ ]*\)-.* .*/\1/')
compadd "$@" -- ${${${(f)"$(xbps-query -l)"}#?? }%%-[^- ]# *}
}
_xbps_checkvers() {