mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 03:16:51 +01:00
「🔨」 fix: fixed when space after pipe
This commit is contained in:
@ -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