Skip to content

bash: homedir expansion wrongly quoted #949

Closed
@rsteube

Description

@rsteube

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bashbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions