apt.fish: Fix compatibility with newer versions of Debian/Ubuntu

Why drop support for `awk -e`? Linux sees so much needless churn!
This commit is contained in:
Mahmoud Al-Qudsi 2023-05-03 21:27:46 -05:00
parent 8bd5183944
commit 4f5cef446a

View File

@ -15,7 +15,7 @@ function __fish_print_apt_packages
# Do not not use `apt-cache` as it is sometimes inexplicably slow (by multiple orders of magnitude).
if not set -q _flag_installed
awk -e '
awk '
BEGIN {
FS=": "
}
@ -32,7 +32,7 @@ BEGIN {
pkg="" # Prevent multiple description translations from being printed
}' < /var/lib/dpkg/status
else
awk -e '
awk '
BEGIN {
FS=": "
}