sush fix
This commit is contained in:
@@ -11,6 +11,7 @@
|
||||
/* ************************************************************************** */
|
||||
|
||||
#include "../../includes/minishell.h"
|
||||
#include <string.h>
|
||||
|
||||
int syntax_err_mess(char *token_base, int selected)
|
||||
{
|
||||
@@ -87,6 +88,16 @@ int unclosed(t_node *head)
|
||||
return (0);
|
||||
}
|
||||
|
||||
int is_redir(t_node *cpy)
|
||||
{
|
||||
if (cpy->pressision == RED_L
|
||||
|| cpy->pressision == RED_R
|
||||
|| cpy->pressision == HEREDOC
|
||||
|| cpy->pressision == D_RED_R)
|
||||
return (1);
|
||||
return (0);
|
||||
}
|
||||
|
||||
int syntax_error(t_node *head)
|
||||
{
|
||||
t_node *cpy;
|
||||
|
||||
Reference in New Issue
Block a user