From 4f5cef446aad6530169588b26ae2909301973c80 Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Wed, 3 May 2023 21:27:46 -0500 Subject: [PATCH] apt.fish: Fix compatibility with newer versions of Debian/Ubuntu Why drop support for `awk -e`? Linux sees so much needless churn! --- share/functions/__fish_print_apt_packages.fish | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/share/functions/__fish_print_apt_packages.fish b/share/functions/__fish_print_apt_packages.fish index 130bf1b21..b456138b2 100644 --- a/share/functions/__fish_print_apt_packages.fish +++ b/share/functions/__fish_print_apt_packages.fish @@ -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=": " }