From d914f4e99111c73d7c6bfae9d38f44cf8225adfb Mon Sep 17 00:00:00 2001 From: Mahmoud Al-Qudsi Date: Mon, 24 Jun 2024 14:25:17 -0500 Subject: [PATCH] Fix broken __fish_whatis This has been broken for a *long* time. --- share/functions/__fish_whatis.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_whatis.fish b/share/functions/__fish_whatis.fish index 6851a4db0..e490155f0 100644 --- a/share/functions/__fish_whatis.fish +++ b/share/functions/__fish_whatis.fish @@ -8,7 +8,7 @@ function __fish_whatis end set -l description (whatis $cmd 2>/dev/null | string replace -r '.*? - ' '')[1] - if not string match -qr -- "." "$description" + if string match -qr -- "." "$description" printf '%s\n' $description return 0 else if not string match -q -- "$fallback" ""