From a7b1a74543aea7c5157ec64209b7e922bbdaf1c0 Mon Sep 17 00:00:00 2001 From: adjoly Date: Wed, 31 Jul 2024 14:46:33 +0200 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=F0=9F=94=A8=E3=80=8D=20fix:=20fixed?= =?UTF-8?q?=20pipe=20error?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/parsing/check_error/check_pipe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/parsing/check_error/check_pipe.c b/src/parsing/check_error/check_pipe.c index 3658100..901188a 100644 --- a/src/parsing/check_error/check_pipe.c +++ b/src/parsing/check_error/check_pipe.c @@ -6,7 +6,7 @@ /* By: adjoly +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/30 12:52:22 by adjoly #+# #+# */ -/* Updated: 2024/07/30 17:50:40 by adjoly ### ########.fr */ +/* Updated: 2024/07/31 14:46:19 by adjoly ### ########.fr */ /* */ /* ************************************************************************** */ @@ -37,6 +37,7 @@ bool check_pipe(char *readline) { if (*(tmp + 1) == '|') return (send_error_parsing("No command after pipe")); + tmp++; while (*tmp && ft_isspace(*tmp)) tmp++; if ((!tmp && !*tmp) || *tmp == '|')