mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-30 11:21:15 -03:00
__fish_apropos: Fix on macOS
Because MacOS' apropos is bad and doesn't support the `--` option separator, this apparently spews errors. Because the argument _can't_ start with a `-` (because we add a `^`), we can just remove it. Fixes #7965.
This commit is contained in:
@@ -37,7 +37,7 @@ if test $status -eq 0 -a (count $sysver) -eq 3
|
||||
set age (math (date +%s) - (/usr/bin/stat -f %m $whatis))
|
||||
end
|
||||
|
||||
MANPATH="$dir" apropos -- "^$argv"
|
||||
MANPATH="$dir" apropos "^$argv"
|
||||
|
||||
if test $age -ge $max_age
|
||||
test -d "$dir" || mkdir -m 700 -p $dir
|
||||
|
||||
Reference in New Issue
Block a user