mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-31 12:21:19 -03:00
__fish_print_help: Also add "-l"
mandoc refuses to open files without. See #12037
This commit is contained in:
@@ -26,7 +26,8 @@ function __fish_print_help --description "Print help for the specified fish func
|
||||
return 2
|
||||
end
|
||||
set -l file (path filter -- $man1/$item.1 $man1/$item.1.gz)
|
||||
command man $file[1]
|
||||
# "-l" to read a local file, required for mandoc
|
||||
command man -l $file[1]
|
||||
end
|
||||
__fish_data_with_directory man/man1 \
|
||||
"$(string escape --style=regex $item.1)(?:\.gz)?" \
|
||||
|
||||
Reference in New Issue
Block a user