From 4ff94b657f5b4e94fcdb56c6f2d123a6e057f347 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Wed, 5 Mar 2025 14:28:16 +0100 Subject: [PATCH] __fish_apropos: fixup broken macOS version check Due to the parens, this prints the version twice. Fixes 49023adec7 (Consolidate some calls to uname(1) around shell startup, 2025-03-05). --- share/functions/__fish_apropos.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_apropos.fish b/share/functions/__fish_apropos.fish index 0137d227f..f0b3bb906 100644 --- a/share/functions/__fish_apropos.fish +++ b/share/functions/__fish_apropos.fish @@ -6,7 +6,7 @@ end # Check for macOS Catalina or above. if test (__fish_uname) = Darwin - and test (string match -r "(\d+)" "$(uname -r)") -ge 19 + and test (string match -r "^\d+" "$(uname -r)") -ge 19 and test -x /usr/libexec/makewhatis set -l dir