diff --git a/42sh/file b/42sh/file deleted file mode 100644 index ce09b016..00000000 --- a/42sh/file +++ /dev/null @@ -1 +0,0 @@ -/Users/ariard/Projects/42sh diff --git a/42sh/src/exec/plaunch_until.c b/42sh/src/exec/plaunch_until.c index 3d3cab25..4fe8cadb 100644 --- a/42sh/src/exec/plaunch_until.c +++ b/42sh/src/exec/plaunch_until.c @@ -6,7 +6,7 @@ /* By: wescande +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/07 22:04:42 by wescande #+# #+# */ -/* Updated: 2017/03/17 20:20:04 by wescande ### ########.fr */ +/* Updated: 2017/03/18 01:52:33 by wescande ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,8 +16,8 @@ int plaunch_until(t_process *p) { int ret; + ret = 0; ft_exec(&p->data.d_until.condition); - ret = ft_atoi(ft_getenv(data_singleton()->env, "?")); while (ft_strcmp(ft_getenv(data_singleton()->env, "?"), "0")) { ft_exec(&p->data.d_until.content); diff --git a/42sh/src/exec/plaunch_while.c b/42sh/src/exec/plaunch_while.c index db22b136..a98fe146 100644 --- a/42sh/src/exec/plaunch_while.c +++ b/42sh/src/exec/plaunch_while.c @@ -6,7 +6,7 @@ /* By: wescande +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2017/03/07 17:20:53 by wescande #+# #+# */ -/* Updated: 2017/03/17 20:16:10 by wescande ### ########.fr */ +/* Updated: 2017/03/18 01:48:53 by wescande ### ########.fr */ /* */ /* ************************************************************************** */ @@ -16,8 +16,8 @@ int plaunch_while(t_process *p) { int ret; + ret = 0; ft_exec(&p->data.d_while.condition); - ret = ft_atoi(ft_getenv(data_singleton()->env, "?")); while (!(ft_strcmp(ft_getenv(data_singleton()->env, "?"), "0"))) { ft_exec(&p->data.d_while.content);