From de5db374da5c53e44c52bf896140efaf4b7ae7ec Mon Sep 17 00:00:00 2001 From: Jesse Luehrs Date: Fri, 7 Jan 2022 04:24:58 -0500 Subject: fix append redirection parsing --- src/shell.pest | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/shell.pest') 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+ } -- cgit v1.2.3-54-g00ecf