Closed melobern closed 5 months ago
void count_total_commands(t_minishell *minishell)
{
t_token_list *iterator;
minishell->total_commands = 1;
iterator = minishell->list_tokens;
while (iterator)
{
if (iterator->e_operator == PIPE)
minishell->total_commands++;
iterator = iterator->next;
}
}
Fixed : iterate IF.