Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5a62c80790 |
@@ -33,7 +33,7 @@
|
|||||||
# include "exec/exec.h"
|
# include "exec/exec.h"
|
||||||
# include "exec/expander.h"
|
# include "exec/expander.h"
|
||||||
|
|
||||||
# define DEBUG 1
|
# define DEBUG 0
|
||||||
|
|
||||||
# ifndef DIO_PATH
|
# ifndef DIO_PATH
|
||||||
# define DIO_PATH "ast.xml"
|
# define DIO_PATH "ast.xml"
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ int ft_isnumeric(char *str)
|
|||||||
return (1);
|
return (1);
|
||||||
while (str[i])
|
while (str[i])
|
||||||
{
|
{
|
||||||
if (ft_isdigit(str[i]) || str[i] == '+' || str[i] == '-')
|
if (ft_isdigit(str[i]))
|
||||||
i++;
|
i++;
|
||||||
else
|
else
|
||||||
return (0);
|
return (0);
|
||||||
|
|||||||
@@ -44,10 +44,6 @@ static int redir_error(t_node *cpy)
|
|||||||
if (is_redir(cpy) && cpy->next && cpy->next->next
|
if (is_redir(cpy) && cpy->next && cpy->next->next
|
||||||
&& !ft_strncmp(cpy->next->next->val, "(", 1))
|
&& !ft_strncmp(cpy->next->next->val, "(", 1))
|
||||||
return (syntax_err_mess(cpy->next->next->val, 0));
|
return (syntax_err_mess(cpy->next->next->val, 0));
|
||||||
if (is_redir(cpy) && cpy->pressision == D_RED_R && ft_strlen(cpy->val) > 2)
|
|
||||||
return (syntax_err_mess(cpy->val, 0));
|
|
||||||
if (is_redir(cpy) && cpy->pressision == HEREDOC && ft_strlen(cpy->val) > 2)
|
|
||||||
return (syntax_err_mess(cpy->val, 0));
|
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user