This commit is contained in:
2024-04-06 19:24:34 +02:00
parent 2a4c52f370
commit 2bfd801ba3
5 changed files with 18 additions and 33 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/05 18:15:27 by marde-vr #+# #+# */
/* Updated: 2024/04/03 12:32:30 by tomoron ### ########.fr */
/* Updated: 2024/04/04 13:48:52 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -58,7 +58,7 @@ void get_in_type(t_msh *msh, t_cmd *tokens)
cur_token = tokens;
while (cur_token && (cur_token->cmd_type == CMD || cur_token->cmd_type == PAREN))
cur_token = cur_token->next;
if (cur_token && is_input_type(cur_token))
if (cur_token && (is_input_type(cur_token) || cur_token->cmd_type == PIPE))
{
msh->in_type = cur_token->cmd_type;
open_input_file(msh, &cur_token);