-
Notifications
You must be signed in to change notification settings - Fork 16
Compilation command fails to parse #257
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
Comments
As a workaround, could you use quotes @certik ? As a more minimal example: shell on 🎋 main via 🦀 v1.85.1
❯ cargo r
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s
Running `target/debug/shell`
$ rg -efile1,
Syntax error: × Failed to parse input
╰─▶ Failure to parse at Pos((1, 11))
╭────
1 │ rg -efile1,
· ┬
· ╰── 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
shell on 🎋 main via 🦀 v1.85.1 took 11s
❯ cargo r
Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.25s
Running `target/debug/shell`
$ rg -e"file1,"
crates/deno_task_shell/src/shell/commands/cp_mv.rs
318: fs::write(&file1, "test").unwrap();
442: fs::write(&file1, "test").unwrap();
453: fs::write(&file1, "test").unwrap(); // recreate
$ rg -e="file1,"
crates/deno_task_shell/src/shell/commands/cp_mv.rs
318: fs::write(&file1, "test").unwrap();
442: fs::write(&file1, "test").unwrap();
453: fs::write(&file1, "test").unwrap(); // recreate Looks like we should still fix this though, it works in zsh: shell on 🎋 main via 🦀 v1.85.1 took 2m56s
❯ rg -efile1,
crates/deno_task_shell/src/shell/commands/cp_mv.rs
318: fs::write(&file1, "test").unwrap();
442: fs::write(&file1, "test").unwrap();
453: fs::write(&file1, "test").unwrap(); // recreate |
shell/crates/deno_task_shell/src/grammar.pest Lines 12 to 32 in 1f2a18f
Line 23 forbids using OPERATORs in unquoted words, and shell/crates/deno_task_shell/src/grammar.pest Lines 154 to 157 in 1f2a18f
|
all tests actually pass if we remove |
Another case:
|
Ok, it looks like it's fixed, thank you @lucascolley ! Much appreciated, this was a super annoying bug. |
I do not have a workaround, besides switching to another shell.
The text was updated successfully, but these errors were encountered: