From ecefce2ea89ecb994bb403321e2f3344387cd588 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Thu, 8 May 2025 09:13:46 +0200 Subject: [PATCH] Fix "help printf" on --features=embed-data builds --- share/functions/__fish_print_commands.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/__fish_print_commands.fish b/share/functions/__fish_print_commands.fish index 986a4f088..b9b05b907 100644 --- a/share/functions/__fish_print_commands.fish +++ b/share/functions/__fish_print_commands.fish @@ -1,5 +1,5 @@ function __fish_print_commands --description "Print a list of documented fish commands" - if test -d $__fish_data_dir/man/man1/ + if set -q __fish_data_dir[1] && test -d $__fish_data_dir/man/man1/ for file in $__fish_data_dir/man/man1/**.1* string replace -r '.*/' '' -- $file | string replace -r '.1(.gz)?$' '' |