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