From a381d959f2a1c60a285a1673e2061d908dc0edab Mon Sep 17 00:00:00 2001 From: Kurtis Rader Date: Sat, 15 Apr 2017 21:29:07 -0700 Subject: [PATCH] a step to remove __fish_sgrep per issue #2450 --- share/completions/emerge.fish | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/share/completions/emerge.fish b/share/completions/emerge.fish index 589e41359..6a8398807 100644 --- a/share/completions/emerge.fish +++ b/share/completions/emerge.fish @@ -30,8 +30,7 @@ end function __fish_emerge_print_all_pkgs_with_version_compare --description 'Print completions for all packages including the version compare if that is already typed' - set -l version_comparator (commandline --current-token | \ - __fish_sgrep -o '^[\'"]*[<>]\?=\?' | \ + set -l version_comparator (commandline -t | string match -r '^[\'"]*[<>]\?=\?' | \ sed -r 's/^[\'"]*(.*)/\1/g') set -l sedstring