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()