1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-04-09 18:44:14 +00:00

fish: Fix manpage completion generation with paths containing spaces

Manual pages with spaces in their paths can lead to argument injection.
This commit is contained in:
Zhaofeng Li 2025-03-25 09:59:36 -06:00
parent 869f2ec2ad
commit 9657bb1d5c

View file

@ -449,7 +449,7 @@ in {
for src in $srcs; do
if [ -d $src/share/man ]; then
find -L $src/share/man -type f \
| xargs python ${cfg.package}/share/fish/tools/create_manpage_completions.py --directory $out \
-exec python ${cfg.package}/share/fish/tools/create_manpage_completions.py --directory $out {} + \
> /dev/null
fi
done