summaryrefslogtreecommitdiffstats
path: root/src/shell.pest
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2022-01-07 04:24:58 -0500
committerJesse Luehrs <doy@tozt.net>2022-01-07 04:24:58 -0500
commitde5db374da5c53e44c52bf896140efaf4b7ae7ec (patch)
treeb59eb8269a4ad2b56ad5aef937dbfdb840ffda79 /src/shell.pest
parent3db9053455a1fcc6f95a8f65a819462792a717bf (diff)
downloadnbsh-de5db374da5c53e44c52bf896140efaf4b7ae7ec.tar.gz
nbsh-de5db374da5c53e44c52bf896140efaf4b7ae7ec.zip
fix append redirection parsing
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 408a996..1ff20c4 100644
--- a/src/shell.pest
+++ b/src/shell.pest
@@ -2,7 +2,7 @@ bareword_char = @{ !("|" | ";" | "\"" | "'" | WHITESPACE | COMMENT) ~ ANY }
single_string_char = @{ "\\'" | (!"'" ~ ANY) }
double_string_char = @{ "\\\"" | (!"\"" ~ ANY) }
-redir_prefix = @{ (ASCII_DIGIT* ~ (">" | "<" | ">>") ~ WHITESPACE*) }
+redir_prefix = @{ ASCII_DIGIT* ~ (">>" | ">" | "<") ~ WHITESPACE* }
bareword = @{ bareword_char+ }
single_string = @{ single_string_char+ }
double_string = @{ double_string_char+ }