From 38630279546fbd3876fe2396f2afe4ca1bca9acc Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Wed, 7 Oct 2020 12:27:26 +0200 Subject: Fixing parenthesis pipeline parsing, False negative unmatched quote on str --- src/parser/parser.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/parser/parser.c') diff --git a/src/parser/parser.c b/src/parser/parser.c index 99c9c8b..29fdece 100644 --- a/src/parser/parser.c +++ b/src/parser/parser.c @@ -6,7 +6,7 @@ /* By: nahaddac +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/06/17 18:09:04 by nahaddac #+# #+# */ -/* Updated: 2020/10/06 17:28:31 by cacharle ### ########.fr */ +/* Updated: 2020/10/07 10:31:26 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -96,7 +96,7 @@ t_parsed *parse_pipeline(t_tok_lst *input) expr_ast = expr->ast; free(expr); t_ast *pipeline_ast; - if (tail->ast->tag == AST_CMD) + if (tail->ast->tag == AST_CMD || tail->ast->tag == AST_PARENT) { pipeline_ast = ast_new(AST_PIPELINE); if ((pipeline_ast->pipeline = ft_lstnew(tail->ast)) == NULL) -- cgit