Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The auto completion does not escape characters #176

Open
Tracked by #35
certik opened this issue Oct 6, 2024 · 0 comments
Open
Tracked by #35

The auto completion does not escape characters #176

certik opened this issue Oct 6, 2024 · 0 comments

Comments

@certik
Copy link
Contributor

certik commented Oct 6, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant