From 828773b3918c0b42daf6161897c60204bdb0b968 Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Sat, 8 Nov 2025 15:30:08 +0100 Subject: [PATCH] __fish_print_help: Also add "-l" mandoc refuses to open files without. See #12037 --- share/functions/__fish_print_help.fish | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/functions/__fish_print_help.fish b/share/functions/__fish_print_help.fish index 66f7d3cb4..b97e1f14d 100644 --- a/share/functions/__fish_print_help.fish +++ b/share/functions/__fish_print_help.fish @@ -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)?" \