heredoc with io_number OK

This commit is contained in:
Jack Halford 2017-03-13 16:27:07 +01:00
parent 3ae1cf2100
commit f5c35a73d8
2 changed files with 2 additions and 2 deletions

View file

@ -22,7 +22,7 @@ int redirect_dless(t_redir *redir)
DG("redir @ %p", redir);
write(fds[PIPE_WRITE], str, ft_strlen(str));
close(fds[PIPE_WRITE]);
dup2(fds[PIPE_READ], 0);
dup2(fds[PIPE_READ], redir->n);
close(fds[PIPE_READ]);
return (0);
}

View file

@ -6,7 +6,7 @@
/* By: ariard <ariard@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2017/02/17 16:39:05 by ariard #+# #+# */
/* Updated: 2017/03/13 16:23:35 by jhalford ### ########.fr */
/* Updated: 2017/03/13 16:24:44 by jhalford ### ########.fr */
/* */
/* ************************************************************************** */