carapace-sh/carapace

bash: homedir expansion wrongly quoted

Closed this issue · 0 comments

Current Behavior

Seems bash needs the quotes to be after the slash:

bsh ❯ bat ~"/Downloads/with space"
[bat error]: '~/Downloads/with space': No such file or directory (os error 2)

~ 
bsh ❯ bat ~/"Downloads/with space"
───────┬─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
       │ File: /home/rsteube/Downloads/with space   <EMPTY>
───────┴─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────

Expected Behavior

Either add quotes after slash or revert to backslash behaviour.

Steps To Reproduce

No response

Version

0.46.1

OS

  • Linux
  • OSX
  • Windows

Shell

  • Bash
  • Elvish
  • Fish
  • Nushell
  • Oil
  • Powershell
  • Xonsh
  • Zsh

Anything else?

related #947