From 90de710318221073c6bfd8c90a6329973aa99183 Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Sun, 27 Sep 2026 02:00:13 +0200 Subject: [PATCH] Completion (Bash): fixes `--config`/`-c` path completion splitting on spaces --- CHANGELOG.md | 3 +++ completions/fastfetch.bash | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8da9d006e8..4811370c46 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,9 @@ Changes: Features: * Improved performance of LocalIP, NetIO and DNS on Windows +Bugfixes: +* Fixed `--config`/`-c` bash completion offering one candidate per word instead of one candidate per file for paths containing spaces. (Completion, Bash) + # 2.69.0 Changes: diff --git a/completions/fastfetch.bash b/completions/fastfetch.bash index 681046ddf6..da159f81b9 100644 --- a/completions/fastfetch.bash +++ b/completions/fastfetch.bash @@ -33,7 +33,9 @@ _fastfetch() { if type _filedir &>/dev/null; then _filedir elif type compgen &>/dev/null; then - COMPREPLY+=($(compgen -f -- "$cur")) + local -a files + readarray -t files < <(compgen -f -- "$cur") + COMPREPLY+=("${files[@]}") fi return ;;