-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Valid raw string with equal-sign results in parsing error #13902
Copy link
Copy link
Closed
Labels
A:parserIssues related to parsingIssues related to parsingA:quoting-expansionIssues related to string quoting, interpolation, and expansion of variable or glob patternsIssues related to string quoting, interpolation, and expansion of variable or glob patternsstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look
Milestone
Description
Describe the bug
Might be related to #13901. As mentioned in Discord a few weeks back, a raw string with an equal with no spacing results in an error. It doesn't look like any of us remembered to open an issue at the time.
How to reproduce
r#'A=B'#
Error: nu::parser::unknown_command
× Unknown command.
╭─[entry #10:1:1]
1 │ r#'A=B'#
· ────┬───
· ╰── unknown command
╰────Expected behavior
Treated as a valid raw string
Configuration
| key | value |
|---|---|
| version | 0.98.0 |
| major | 0 |
| minor | 98 |
| patch | 0 |
| branch | |
| commit_hash | |
| build_os | linux-x86_64 |
| build_target | x86_64-unknown-linux-gnu |
| rust_version | rustc 1.80.1 (3f5fd8dd4 2024-08-06) |
| rust_channel | stable-x86_64-unknown-linux-gnu |
| cargo_version | cargo 1.80.1 (376290515 2024-07-16) |
| build_time | 2024-09-18 16:11:39 -04:00 |
| build_rust_channel | release |
| allocator | mimalloc |
| features | default, sqlite, trash |
| installed_plugins | nuplugin 0.98.0 |
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
A:parserIssues related to parsingIssues related to parsingA:quoting-expansionIssues related to string quoting, interpolation, and expansion of variable or glob patternsIssues related to string quoting, interpolation, and expansion of variable or glob patternsstatus:needs-triageAn issue that hasn't had any proper lookAn issue that hasn't had any proper look