mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-06-06 17:31:14 -03:00
man.fish: fix spurious error on embed-data builds
Commands like "man grep" print an error because __fish_data_dir[1] is no longer defined. Fix that.
This commit is contained in:
@@ -31,9 +31,11 @@ function man --description "Format and display the on-line manual pages"
|
||||
set -lx MANPATH $manpath
|
||||
|
||||
# Prepend fish's man directory if available.
|
||||
set -l fish_manpath $__fish_data_dir/man
|
||||
if test -d $fish_manpath
|
||||
set MANPATH $fish_manpath $MANPATH
|
||||
if set -q __fish_data_dir[1]
|
||||
set -l fish_manpath $__fish_data_dir/man
|
||||
if test -d $fish_manpath
|
||||
set MANPATH $fish_manpath $MANPATH
|
||||
end
|
||||
end
|
||||
|
||||
if test (count $argv) -eq 1
|
||||
|
||||
Reference in New Issue
Block a user