mirror of
https://github.com/fish-shell/fish-shell.git
synced 2025-03-31 00:45:17 +08:00

When `manpath` prints a symlink to a directory, `/usr/libexec/makewhatis` ignores the entire directory: ``` $ /usr/libexec/makewhatis -o /tmp/whatis \ (/usr/bin/manpath | string split :) makewhatis: /Users/wiggles/.nix-profile/share/man: Not a directory ``` This means that the built-in `man` completions will not index any commands in these directories. If we pass the directories to `readlink -f` first, `makewhatis` correctly indexes the `man` pages. ``` $ /usr/libexec/makewhatis -o /tmp/whatis \ (/usr/bin/manpath | string split : | xargs readlink -f) ```