From 8f76f7f44fe2ef0291fb8437df42f2c423865f17 Mon Sep 17 00:00:00 2001 From: Antoine Riard Date: Wed, 15 Mar 2017 00:51:22 +0100 Subject: [PATCH] little modifs --- 42sh/src/main/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/42sh/src/main/main.c b/42sh/src/main/main.c index e4771b10..1af6fc27 100644 --- a/42sh/src/main/main.c +++ b/42sh/src/main/main.c @@ -6,7 +6,7 @@ /* By: jhalford +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2016/12/06 18:40:58 by jhalford #+# #+# */ -/* Updated: 2017/03/15 00:07:41 by ariard ### ########.fr */ +/* Updated: 2017/03/15 00:50:54 by ariard ### ########.fr */ /* */ /* ************************************************************************** */ @@ -71,8 +71,8 @@ int handle_instruction(int fd) } } btree_print(STDBUG, ast, &ft_putast); -// if (ft_exec(&ast)) -// return (2); + if (ft_exec(&ast)) + return (2); instruction_free(&token, &parser, &ast); if (SH_IS_INTERACTIVE(data_singleton()->opts) && *lexer.str) ft_add_str_in_history(lexer.str);