Fix package listing for zypper

-E is only supported by BSD sed, switch to -r which is also supported
by GNU sed
This commit is contained in:
Spittie
2016-02-12 23:00:40 +01:00
parent de17bdb130
commit a00e26b109

View File

@@ -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