diff options
Diffstat (limited to 'src/lexer/utils.c')
| -rw-r--r-- | src/lexer/utils.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/lexer/utils.c b/src/lexer/utils.c index 0d8080c..b16a69a 100644 --- a/src/lexer/utils.c +++ b/src/lexer/utils.c @@ -6,7 +6,7 @@ /* By: nahaddac <nahaddac@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/07/16 08:18:15 by nahaddac #+# #+# */ -/* Updated: 2020/10/10 08:38:46 by cacharle ### ########.fr */ +/* Updated: 2020/10/15 10:32:00 by cacharle ### ########.fr */ /* */ /* ************************************************************************** */ @@ -22,12 +22,12 @@ enum e_tok tok_assign_tag(char *content) return (TAG_OR); if (content[0] == '|') return (TAG_PIPE); + if (ft_strncmp(content, ">>", 2) == 0) + return (TAG_REDIR_APPEND); if (content[0] == '>') return (TAG_REDIR_OUT); if (content[0] == '<') return (TAG_REDIR_IN); - if (ft_strncmp(content, ">>", 2) == 0) - return (TAG_REDIR_APPEND); if (content[0] == '(') return (TAG_PARENT_OPEN); if (content[0] == ')') |
