__fish_print_commands: fix environment variable injection

This commit is contained in:
Johannes Altmanninger
2025-10-12 06:08:40 +02:00
parent ec7d20b347
commit 9b44138917

View File

@@ -8,7 +8,7 @@ function __fish_print_commands --description "Print a list of documented fish co
end
end
status list-files man/man1/ 2>/dev/null |
string replace -r '.*/' '' -- $file |
string replace -r '.*/' '' |
string replace -r '.1(.gz)?$' '' |
string match -rv '^fish-(?:changelog|completions|doc|tutorial|faq|for-bash-users|interactive|language|releasenotes)$'
end