You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Single quotes string variable interpolation error when there is = in it #4890
Activity
uasi commentedon Mar 24, 2022
Shorter reproducible example is
let x = $'=':EDIT:
let x = '='raises the same error.echo $'='works fine, though:Configuration
uasi commentedon Mar 24, 2022
Found an unrelated bug in parser.rs, that makes
let x = $"="work by accident.nushell/crates/nu-parser/src/parser.rs
Line 2397 in 5d5b02d
That
b"$\""should beb"$\'". By fixing it, bothlet x = $'='andlet x = $"="(EDIT: andlet x = '='andlet x = "=") raise wrong parse error.