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" ""