This commit is contained in:
LuckyLaszlo
2021-10-31 01:10:57 +02:00
parent c0ef57499a
commit 22d4bbfdd0
9 changed files with 27 additions and 17 deletions

View File

@@ -11,6 +11,7 @@
/* ************************************************************************** */
#include "minishell.h"
int valid_pipeline(t_token **token_list);
int valid_syntax(t_token *token_list)
@@ -18,7 +19,7 @@ int valid_syntax(t_token *token_list)
if (valid_pipeline(&token_list))
return (1);
else
{ // WIP ERROR
{
ft_putstr_fd("minishell: syntax error near unexpected token \'", 2);
ft_putstr_fd(token_list->content, 2);
ft_putstr_fd("\'\n", 2);