From 21a4473f7acf2b2b79200b7339a18bb636c01e95 Mon Sep 17 00:00:00 2001 From: Christian Neukirchen Date: Wed, 17 Sep 2014 16:26:56 +0200 Subject: [PATCH] _xbps: drop use of sed --- data/_xbps | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/_xbps b/data/_xbps index 9e3f8e97..ac2e3910 100644 --- a/data/_xbps +++ b/data/_xbps @@ -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() {