diff options
| author | Charles Cabergs <me@cacharle.xyz> | 2020-10-07 12:27:26 +0200 |
|---|---|---|
| committer | Charles Cabergs <me@cacharle.xyz> | 2020-10-07 12:27:26 +0200 |
| commit | 38630279546fbd3876fe2396f2afe4ca1bca9acc (patch) | |
| tree | 3b08fa1524722334afbafc5155c96e4ee488862e /src/parser | |
| parent | 22ff0337dc23239c32cc738bb6f576b8a0b66f8b (diff) | |
| download | minishell-38630279546fbd3876fe2396f2afe4ca1bca9acc.tar.gz minishell-38630279546fbd3876fe2396f2afe4ca1bca9acc.tar.bz2 minishell-38630279546fbd3876fe2396f2afe4ca1bca9acc.zip | |
Fixing parenthesis pipeline parsing, False negative unmatched quote on str
Diffstat (limited to 'src/parser')
| -rw-r--r-- | src/parser/parser.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <nahaddac@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* 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) |
