diff options
author | Spittie <kabirsala@airmail.cc> | 2016-02-12 23:00:40 +0100 |
---|---|---|
committer | Spittie <kabirsala@airmail.cc> | 2016-02-12 23:00:40 +0100 |
commit | a00e26b109083c2003a90d9cb6bd56bd4308392e (patch) | |
tree | 6f1816e70d08506cb84bde42aff2ec0351494aba /share/functions/__fish_print_packages.fish | |
parent | de17bdb1301d6b7e60e31bb0e98786cc101391a4 (diff) |
Fix package listing for zypper
-E is only supported by BSD sed, switch to -r which is also supported
by GNU sed
Diffstat (limited to 'share/functions/__fish_print_packages.fish')
-rw-r--r-- | share/functions/__fish_print_packages.fish | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/share/functions/__fish_print_packages.fish b/share/functions/__fish_print_packages.fish index 51407657..be7d17e1 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 |