From a00e26b109083c2003a90d9cb6bd56bd4308392e Mon Sep 17 00:00:00 2001 From: Spittie Date: Fri, 12 Feb 2016 23:00:40 +0100 Subject: [PATCH] Fix package listing for zypper -E is only supported by BSD sed, switch to -r which is also supported by GNU sed --- share/functions/__fish_print_packages.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_print_packages.fish b/share/functions/__fish_print_packages.fish index 514076571..be7d17e1e 100644 --- a/share/functions/__fish_print_packages.fish +++ b/share/functions/__fish_print_packages.fish @@ -67,7 +67,7 @@ function __fish_print_packages end # Remove package version information from output and pipe into cache file - zypper --quiet --non-interactive search --type=package | tail -n +4 | sed -E 's/^. \| ((\w|[-_.])+).*/\1\t'$package'/g' > $cache_file & + zypper --quiet --non-interactive search --type=package | tail -n +4 | sed -r 's/^. \| ((\w|[-_.])+).*/\1\t'$package'/g' > $cache_file & return end