bash-completion was recently updated from 2.11.0 to 2.14.0 in Gentoo.
With bash-completion-2.14.0, rsync path completion fails if a folder name have a space.
To reproduce
~ mkdir "a b" "a c"
~ rsync -av a [hit tab]
It adds a backslash to the command "rsync -av a\ " but hitting tab again fails to show :
a\ b/ a\ c/
with set -x
when I hit tab again (after the backslash is set) :
It isn't exclusive to Gentoo as I observe the exact same issue with Debian testing (Trixie) which features bash-completion-2.14.
On the other hand, with Debian stable (bookworm) and bash-completion-2.11, hitting tab correctly show the folders (with space or not)
Finally, downgrading bash-completion from 2.14.0 to 2.11.0 on my gentoo system solves the issue too.
Describe the bug
bash-completion was recently updated from 2.11.0 to 2.14.0 in Gentoo. With bash-completion-2.14.0, rsync path completion fails if a folder name have a space.
To reproduce
with set -x when I hit tab again (after the backslash is set) :
Versions
It isn't exclusive to Gentoo as I observe the exact same issue with Debian testing (Trixie) which features bash-completion-2.14. On the other hand, with Debian stable (bookworm) and bash-completion-2.11, hitting tab correctly show the folders (with space or not) Finally, downgrading bash-completion from 2.14.0 to 2.11.0 on my gentoo system solves the issue too.