summaryrefslogtreecommitdiffstats
path: root/src/shell.pest
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-08 02:11:29 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-08 02:18:39 -0500
commit3809ca6a7e119bcd1c77a190380597e937605e9a (patch)
tree7dab7db52c64d0f7f8708d0ff0956972853c9eda /src/shell.pest
parent49c8dadc0c44a3000d2a3f53dd3e06539e797747 (diff)
downloadnbsh-3809ca6a7e119bcd1c77a190380597e937605e9a.tar.gz
nbsh-3809ca6a7e119bcd1c77a190380597e937605e9a.zip
parse individual words from concatenated variables/barewords/etc
Diffstat (limited to 'src/shell.pest')
-rw-r--r--src/shell.pest2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shell.pest b/src/shell.pest
index b1bcae5..fce2c11 100644
--- a/src/shell.pest
+++ b/src/shell.pest
@@ -23,7 +23,7 @@ word = ${
redir_prefix? ~
(var | bareword |
"'" ~ single_string ~ "'" |
- "\"" ~ double_string ~ "\"")
+ "\"" ~ (var | double_string)+ ~ "\"")+
}
exe = ${ word ~ (w ~ word)* }