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