update: syntax error gives exit code 2
This commit is contained in:
parent
38c6daba14
commit
d8bc34aa91
2 changed files with 3 additions and 2 deletions
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/09/06 16:31:41 by rparodi #+# #+# */
|
/* Created: 2024/09/06 16:31:41 by rparodi #+# #+# */
|
||||||
/* Updated: 2024/10/10 18:50:37 by maiboyer ### ########.fr */
|
/* Updated: 2024/10/12 16:48:46 by maiboyer ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
@ -82,6 +82,7 @@ void ft_take_args(t_state *state)
|
||||||
line_history_add(state->str_input);
|
line_history_add(state->str_input);
|
||||||
if (parse_str(state))
|
if (parse_str(state))
|
||||||
{
|
{
|
||||||
|
state->last_exit = 2;
|
||||||
mem_free(state->str_input);
|
mem_free(state->str_input);
|
||||||
continue ;
|
continue ;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,7 @@
|
||||||
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
/* By: rparodi <rparodi@student.42.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/03/28 14:40:38 by rparodi #+# #+# */
|
/* Created: 2024/03/28 14:40:38 by rparodi #+# #+# */
|
||||||
/* Updated: 2024/10/11 22:23:14 by maiboyer ### ########.fr */
|
/* Updated: 2024/10/12 16:47:58 by maiboyer ### ########.fr */
|
||||||
/* */
|
/* */
|
||||||
/* ************************************************************************** */
|
/* ************************************************************************** */
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue