fix argument count on tokens
This commit is contained in:
parent
faeaed6e6d
commit
3ed0e2ae9e
@ -25,6 +25,8 @@ int parser_count_arguments(t_list *list)
|
||||
while (current)
|
||||
{
|
||||
token = ((t_token *)current->content);
|
||||
if (redirect_is_delimiter(token))
|
||||
break ;
|
||||
if (token->type < 3 && (!prev || ((t_token *)prev->content)->type < 3))
|
||||
cmds++;
|
||||
prev = current;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user