mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-02 14:01:20 -03:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user