Skip to content

The auto completion does not escape characters #176

@certik

Description

@certik

An example:

$ mv ~/Downloads/Attachments(2).zip .
Syntax error:   × Failed to parse input
  ╰─▶ Failure to parse at Pos((1, 27))
   ╭────
 1 │ mv ~/Downloads/Attachments(2).zip .
   ·                           ┬
   ·                           ╰── expected EOI, TILDE_PREFIX, AND_IF, OR_IF, Stdout, StdoutStderr, io_redirect, or separator_op
   ╰────
  help: expected EOI, TILDE_PREFIX, AND_IF, OR_IF, Stdout, StdoutStderr,
        io_redirect, or separator_op

The path was auto completed. The correct autocompletion should have been:

mv ~'/Downloads/Attachments(2).zip' .

Or something like that. I don't like the ~'xxx' style, but it's needed since ~ does not work inside ".

Or we could use " and only use ' for absolute paths on Windows.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions