From fcbf303e05f5486e692e685727b89194ff391a47 Mon Sep 17 00:00:00 2001 From: Fabian Homborg Date: Wed, 4 Aug 2021 18:55:01 +0200 Subject: [PATCH] Only do the macOS apropos thing if makewhatis is available This won't work without it, and happens to be broken on jailbroken iOS. Fixes #8205. --- share/functions/__fish_apropos.fish | 1 + 1 file changed, 1 insertion(+) diff --git a/share/functions/__fish_apropos.fish b/share/functions/__fish_apropos.fish index daca18c74..633ee22d3 100644 --- a/share/functions/__fish_apropos.fish +++ b/share/functions/__fish_apropos.fish @@ -10,6 +10,7 @@ set -l sysver (uname -sr | string match -r "(Darwin) (\d\d)"\.) if test $status -eq 0 -a (count $sysver) -eq 3 and test $sysver[2] = Darwin -a $sysver[3] -ge 19 + and test -x /usr/libexec/makewhatis set -l dir if test -n "$XDG_CACHE_HOME"