From 9e2f926ca875e00728616e2c4ca351dd86ac72aa Mon Sep 17 00:00:00 2001 From: mdev9 Date: Fri, 3 May 2024 08:41:56 +0200 Subject: [PATCH] fixed command not found stopping execution --- srcs/path.c | 3 ++- todo | 13 ------------- 2 files changed, 2 insertions(+), 14 deletions(-) delete mode 100644 todo diff --git a/srcs/path.c b/srcs/path.c index d82e9d9..292282d 100755 --- a/srcs/path.c +++ b/srcs/path.c @@ -6,7 +6,7 @@ /* By: marde-vr +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/02/21 21:47:15 by marde-vr #+# #+# */ -/* Updated: 2024/04/30 14:02:25 by marde-vr ### ########.fr */ +/* Updated: 2024/05/03 08:34:53 by marde-vr ### ########.fr */ /* */ /* ************************************************************************** */ @@ -102,5 +102,6 @@ void get_cmd_path(t_msh *msh) free(msh->tokens->value); msh->tokens->value = 0; g_return_code = 127; + msh->in_fd = -2; } } diff --git a/todo b/todo deleted file mode 100644 index 9ebe5b1..0000000 --- a/todo +++ /dev/null @@ -1,13 +0,0 @@ -(()) leaks when exit - - -probably repaired: - -- cat < Makefile | rev | cat -e | rev | cat -- cat Makefile | commandnotfound | cat -- .. # (pas de command not found) -- echo -nnn -n -nnnnnn aaa -nn # (invalid write/read) -- echo -nnn -n -a -nnnnnn aaa -nn # (pas de print de flag apres le -a) (mais ca marche sur echo -nnn -n -nigga -nnnnnn aaa -nn ????????????????) -- cat filenotfound -> exit # (exit avec le status 0 et pas 1) -- < filenotfound # (status code pas a 1) -- export aaa -> env # (variable aaa qui s'affiche)