casey / just

🤖 Just a command runner
https://just.systems
Creative Commons Zero v1.0 Universal
21.64k stars 481 forks source link

bash completion broken with filename choices containing space #2464

Open laniakea64 opened 1 week ago

laniakea64 commented 1 week ago

Using just master and bash shell, in a folder with

$ ls
 justfile  'justfile (1)'

Trying to autocomplete just -f offers choices justfile and (1). It won't autocomplete justfile (1) (neither quoted nor backslash-escaped). It also won't autocomplete the common prefix justfile.

Autocompleting the just -f '(1)' choice doesn't work either, although I wouldn't expect the resulting command to work since there is no file named (1).

casey commented 1 week ago

Ahh, that's annoying. The completion scripts continue to be a source of pain 😅