mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 03:16:51 +01:00
「🔨」 fix: fixed pipe error
This commit is contained in:
@ -6,7 +6,7 @@
|
|||||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||||
/* +#+#+#+#+#+ +#+ */
|
/* +#+#+#+#+#+ +#+ */
|
||||||
/* Created: 2024/06/30 12:52:22 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) == '|')
|
if (*(tmp + 1) == '|')
|
||||||
return (send_error_parsing("No command after pipe"));
|
return (send_error_parsing("No command after pipe"));
|
||||||
|
tmp++;
|
||||||
while (*tmp && ft_isspace(*tmp))
|
while (*tmp && ft_isspace(*tmp))
|
||||||
tmp++;
|
tmp++;
|
||||||
if ((!tmp && !*tmp) || *tmp == '|')
|
if ((!tmp && !*tmp) || *tmp == '|')
|
||||||
|
Reference in New Issue
Block a user