Skip to content

Completion of filenames starting with '#' fail to escape the first '#' from the command line #9320

@Khoulaiz

Description

@Khoulaiz

❯ fish --version fish, version 3.5.1

❯ echo $version 3.5.1

❯ uname -a Darwin VWAGWOY00414 21.6.0 Darwin Kernel Version 21.6.0: Thu Sep 29 20:12:57 PDT 2022; root:xnu-8020.240.7~1/RELEASE_X86_64 x86_64

❯ echo $TERM ~/tmp
xterm-256color

recorded with asciinema on pure installation in ~/tmp/tmp

https://asciinema.org/a/533782

Steps to reproduce:

  1. create a couple a normal files and then one with '#' in the start
  2. type a file completion command like 'rm ' and type '#' + multiple times for the completion

expected behaviour:

  • all created command line are executable in terms of the filename completion

current wrong behaviour:

  • command line completion creates filenames that do not exist (prefixing them with an unescaped '#')

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions