issue #120 one line fix
This commit is contained in:
parent
90bfb7773d
commit
e7310fae99
1 changed files with 2 additions and 0 deletions
|
|
@ -48,6 +48,8 @@ static int handle_instruction(t_list **token, t_btree **ast)
|
||||||
btree_print(STDBUG, *ast, &ft_putast);
|
btree_print(STDBUG, *ast, &ft_putast);
|
||||||
if (data->parser.state == SUCCESS && ft_exec(ast) < 0)
|
if (data->parser.state == SUCCESS && ft_exec(ast) < 0)
|
||||||
exit(1);
|
exit(1);
|
||||||
|
else if (data->parser.state != SUCCESS)
|
||||||
|
set_exitstatus(1, 1);
|
||||||
if (SH_IS_INTERACTIVE(data->opts) && data->lexer.str)
|
if (SH_IS_INTERACTIVE(data->opts) && data->lexer.str)
|
||||||
ft_add_str_in_history(data->lexer.str);
|
ft_add_str_in_history(data->lexer.str);
|
||||||
return (0);
|
return (0);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue