diff options
author | Jesse Luehrs <doy@tozt.net> | 2022-01-10 00:14:25 -0500 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2022-01-10 00:14:25 -0500 |
commit | feb932105426a9c9f7ab861dbdf2c2ab813b1f6a (patch) | |
tree | 05d128d744e4104216f805305d30c5e97ce3e8df /src/shell.pest | |
parent | f7ae4de810779c367f7d4cfa83c234ef138b44e0 (diff) | |
download | nbsh-feb932105426a9c9f7ab861dbdf2c2ab813b1f6a.tar.gz nbsh-feb932105426a9c9f7ab861dbdf2c2ab813b1f6a.zip |
add more readable aliases for std fds
Diffstat (limited to 'src/shell.pest')
-rw-r--r-- | src/shell.pest | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/shell.pest b/src/shell.pest index 4c5f728..dc3f247 100644 --- a/src/shell.pest +++ b/src/shell.pest @@ -14,7 +14,9 @@ var = @{ ("${" ~ (!"}" ~ ANY)+ ~ "}") } -redir_prefix = @{ ASCII_DIGIT* ~ (">>" | ">" | "<") ~ WHITESPACE* } +redir_prefix = @{ + ("in" | "out" | "err" | ASCII_DIGIT*) ~ (">>" | ">" | "<") ~ WHITESPACE* +} bareword = @{ bareword_char+ } single_string = @{ single_string_char+ } double_string = @{ double_string_char+ } |