mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2026-10-06 02:40:07 +02:00
「🔨」 fix: fixed when space after pipe
This commit is contained in:
1 parent
0095e89db4
commit
fc7d81fe31
1 file changed
+2
-2
@@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/06/30 12:52:22 by adjoly #+# #+# */
|
||||
/* Updated: 2024/08/04 13:45:18 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/08/13 19:02:15 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@@ -40,7 +40,7 @@ bool check_pipe(char *readline)
|
||||
tmp++;
|
||||
while (*tmp && ft_isspace(*tmp))
|
||||
tmp++;
|
||||
if ((!tmp && !*tmp) || *tmp == '|')
|
||||
if (!tmp || !*tmp || *tmp == '|')
|
||||
return (send_error_parsing("No command after pipe"));
|
||||
}
|
||||
tmp++;
|
||||
|
||||
Reference in new issue
Block a user