carapace-sh / carapace

command argument completion generator for spf13/cobra
https://carapace.sh
Apache License 2.0
290 stars 8 forks source link

bash: file completion with spaces broken #947

Open rsteube opened 7 months ago

rsteube commented 7 months ago

Current Behavior

On Debian with Bash 5.2.15 completion with space seems to be broken:

I was doing mv ~Download/some file with spaces.txt . I would type mv ~/Download/some<TAB> and it would expand to: mv "~/Download/some\\\ file\\\ with\\\ spaces.txt"

Expected Behavior

Whereas it should have expanded to mv "~/Download/some\ file\ with\ spaces.txt"

Steps To Reproduce

No response

Version

0.44.1

OS

Shell

Anything else?