fish_apropos: use realpath instead of readlink

readlink -f is not supported on macOS Big Sur (from 2020).
This commit is contained in:
Peter Ammon 2024-09-29 18:13:36 -07:00
parent 243a8345ce
commit c227233571
No known key found for this signature in database

View File

@ -40,7 +40,7 @@ if test $status -eq 0 -a (count $sysver) -eq 3
if test $age -ge $max_age if test $age -ge $max_age
test -d "$dir" || mkdir -m 700 -p $dir test -d "$dir" || mkdir -m 700 -p $dir
/usr/libexec/makewhatis -o "$whatis" (/usr/bin/manpath | string split : | xargs readlink -f) >/dev/null 2>&1 </dev/null & /usr/libexec/makewhatis -o "$whatis" (/usr/bin/manpath | string split : | xargs realpath) >/dev/null 2>&1 </dev/null &
disown $last_pid disown $last_pid
end end
end end