Skip to content

Valid raw string with equal-sign results in parsing error #13902

@NotTheDr01ds

Description

@NotTheDr01ds

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    A:parserIssues related to parsingA:quoting-expansionIssues related to string quoting, interpolation, and expansion of variable or glob patternsstatus:needs-triageAn issue that hasn't had any proper look

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions