Solomon
df0a174802
fix unknown_command when parsing certain strings with equal signs (#14053)
# Description
Prevents errors when `=` is used before the end of:
- strings in lists/records (with a symbol adjacent to the quotes)
- raw strings
```
> ["=a"]
Error: nu::parser::unknown_command
× Unknown command.
╭─[entry #9:1:1]
1 │ ["=a"]
· ───┬──
· ╰── unknown command
╰────
```
```
> r#'=a'#
Error: nu::parser::unknown_command
× Unknown command.
╭─[entry #5:1:1]
1 │ r#'=a'#
· ───┬───
· ╰── unknown command
╰────
```
Closes #13902, closes #13901, closes #9879, closes #6401, closes #5806
# User-Facing Changes
Variable names in environment shorthand assignments must satisfy
`is_identifier`.
2024-10-11 07:53:39 -05:00
..
2024-05-13 13:37:53 +00:00
2024-08-22 21:22:10 +02:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-10-11 07:51:50 -05:00
2024-07-30 18:55:22 -05:00
2024-05-13 13:37:53 +00:00
2024-07-21 01:32:36 -07:00
2024-07-25 18:28:44 +08:00
2024-05-13 13:37:53 +00:00
2024-10-05 15:19:26 +02:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-07-21 01:32:36 -07:00
2024-08-22 11:54:27 +02:00
2024-05-13 13:37:53 +00:00
2024-10-11 07:53:39 -05:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-05-13 13:37:53 +00:00
2024-05-23 02:05:27 +00:00
2024-10-03 06:28:22 -05:00
2024-06-28 09:47:12 +08:00
2024-05-13 13:37:53 +00:00
2024-07-17 16:02:42 -05:00
2024-05-13 13:37:53 +00:00