feat(redirections): allow a command composed only of redirections

This commit is contained in:
Khaïs COLIN 2025-04-28 14:20:13 +02:00
parent a9055b4c66
commit 92d647e33c
8 changed files with 58 additions and 17 deletions

View file

@ -41,9 +41,9 @@ OPT_PIPELINE -> | GROUP_OR_SIMPLE OPT_PIPELINE
OPT_PIPELINE -> ε
GROUP_OR_SIMPLE -> (CMDS) REDIR
GROUP_OR_SIMPLE -> SIMPLE
SIMPLE -> REDIR word REDIR SIMPLE_LST
SIMPLE_LST -> word REDIR SIMPLE_LST
SIMPLE_LST -> ε
SIMPLE -> REDIR SIMPLE_TAIL
SIMPLE_TAIL -> word REDIR SIMPLE_TAIL
SIMPLE_TAIL -> ε
REDIR -> > word REDIR
REDIR -> >> word REDIR
REDIR -> < word REDIR