diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-11 11:18:30 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-11 11:18:30 -0500 |
commit | 40cfe6a3c6691b0049986783f1d4e4402ee25843 (patch) | |
tree | f158acf2dc4d2c5c850795a434530b9205c80fc8 /src/shell.pest | |
parent | 21035ea723f2a85328fc1b7b50f9488097346ab4 (diff) | |
download | nbsh-40cfe6a3c6691b0049986783f1d4e4402ee25843.tar.gz nbsh-40cfe6a3c6691b0049986783f1d4e4402ee25843.zip |
fix parsing variables in double quoted strings
Diffstat (limited to 'src/shell.pest')
-rw-r--r-- | src/shell.pest | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.pest b/src/shell.pest index d09ccbc..8a51070 100644 --- a/src/shell.pest +++ b/src/shell.pest @@ -6,7 +6,7 @@ bareword_char = @{ !("|" | ";" | "\"" | "'" | "$" | "{" | WHITESPACE | COMMENT) ~ ANY } single_string_char = @{ basic_escape_char | (!"'" ~ ANY) } -double_string_char = @{ escape_char | (!"\"" ~ ANY) } +double_string_char = @{ escape_char | (!("\"" | "$") ~ ANY) } redir_prefix = @{ ("in" | "out" | "err" | ASCII_DIGIT*) ~ (">>" | ">" | "<") ~ WHITESPACE* |