From 0e1bd548968dc54cd836588bcdbda500300bc32e Mon Sep 17 00:00:00 2001 From: david072 Date: Sun, 19 Nov 2023 10:37:39 +0100 Subject: [PATCH] Shell/PosixParser: Correctly parse the OR_IF token This fixes an unfortunate typo where we would parse the OR_IF token as an AST::And node. Now, it is parsed into an AST::Or node :^). --- Userland/Shell/PosixParser.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Shell/PosixParser.cpp b/Userland/Shell/PosixParser.cpp index c95cb42379..07f1732bb8 100644 --- a/Userland/Shell/PosixParser.cpp +++ b/Userland/Shell/PosixParser.cpp @@ -799,7 +799,7 @@ ErrorOr> Parser::parse_and_or() auto rhs = TRY(parse_pipeline()); if (!rhs) return RefPtr {}; - node = make_ref_counted( + node = make_ref_counted( node->position(), *node, rhs.release_nonnull(),