mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 10:37:45 +00:00
Shell: Add support for the '!' POSIX pipeline prefix
This prefix simply inverts the exit code of the pipeline, which we implement using the 'not' builtin.
This commit is contained in:
parent
b6d7c5fb0e
commit
da7bf5f785
2 changed files with 26 additions and 3 deletions
|
@ -71,7 +71,7 @@ private:
|
|||
ErrorOr<RefPtr<AST::Node>> parse_list();
|
||||
ErrorOr<RefPtr<AST::Node>> parse_and_or();
|
||||
ErrorOr<RefPtr<AST::Node>> parse_pipeline();
|
||||
ErrorOr<RefPtr<AST::Node>> parse_pipe_sequence();
|
||||
ErrorOr<RefPtr<AST::Node>> parse_pipe_sequence(bool is_negated);
|
||||
ErrorOr<RefPtr<AST::Node>> parse_command();
|
||||
ErrorOr<RefPtr<AST::Node>> parse_compound_command();
|
||||
ErrorOr<RefPtr<AST::Node>> parse_subshell();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue