From 75f1e36b4456a2b3083bbfb40953d23d32eac2c8 Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sat, 15 Apr 2017 21:49:08 -0700 Subject: [PATCH] a step to remove __fish_sgrep per issue #2450 --- share/functions/__fish_print_packages.fish | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/share/functions/__fish_print_packages.fish b/share/functions/__fish_print_packages.fish index c3985cd13..210884a5e 100644 --- a/share/functions/__fish_print_packages.fish +++ b/share/functions/__fish_print_packages.fish @@ -4,7 +4,7 @@ function __fish_print_packages # apt-cache is much, much faster than rpm, and can do this in real # time. We use it if available. - switch (commandline -tc) + switch (commandline -ct) case '-**' return end @@ -21,7 +21,7 @@ function __fish_print_packages if type -q -f apt-cache # Do not generate the cache as apparently sometimes this is slow. # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=547550 - apt-cache --no-generate pkgnames (commandline -tc) ^/dev/null | sed -e 's/$/'\t$package'/' + apt-cache --no-generate pkgnames (commandline -ct) ^/dev/null | sed -e 's/$/'\t$package'/' return end @@ -125,12 +125,12 @@ function __fish_print_packages # eix is MUCH faster than emerge so use it if it is available if type -q -f eix - eix --only-names "^"(commandline -tc) | cut -d/ -f2 + eix --only-names "^"(commandline -ct) | cut -d/ -f2 return else # FIXME? Seems to be broken if type -q -f emerge - emerge -s \^(commandline -tc) | __fish_sgrep "^*" | cut -d\ -f3 | cut -d/ -f2 + emerge -s \^(commandline -ct) | string match -r "^\*.*" | cut -d' ' -f3 | cut -d/ -f2 return end end