From c4888f4b5f9a3148cd80ec764cd1dd4457dd9d50 Mon Sep 17 00:00:00 2001 From: AnotherTest Date: Thu, 16 Jul 2020 20:42:12 +0430 Subject: [PATCH] Shell: Fix parse mistake in '&&' not being recursive --- Shell/Parser.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Shell/Parser.cpp b/Shell/Parser.cpp index afab4c6cf1..308c415a6a 100644 --- a/Shell/Parser.cpp +++ b/Shell/Parser.cpp @@ -301,11 +301,11 @@ RefPtr Parser::parse_and_logical_sequence() return pipe_sequence; } - auto right_pipe_sequence = parse_pipe_sequence(); - if (!right_pipe_sequence) - right_pipe_sequence = create("Expected an expression after '&&'"); + auto right_and_sequence = parse_and_logical_sequence(); + if (!right_and_sequence) + right_and_sequence = create("Expected an expression after '&&'"); - return create(create(move(pipe_sequence)), create(move(right_pipe_sequence))); + return create(create(move(pipe_sequence)), create(move(right_and_sequence))); } RefPtr Parser::parse_pipe_sequence()