pipe sur redirection ne marche toujours pas
This commit is contained in:
@@ -32,6 +32,8 @@ int handle_fd(char **input, int i, int fdin, t_cmd *cmd)
|
||||
cmd->fd_in = fdin;
|
||||
cmd->fd_out = 1;
|
||||
cmd->fd_redirect = 1;
|
||||
cmd->pipe_in = 0;
|
||||
cmd->pipe_out = 1;
|
||||
next_in = 0;
|
||||
if (input[i + 1])
|
||||
{
|
||||
@@ -39,6 +41,8 @@ int handle_fd(char **input, int i, int fdin, t_cmd *cmd)
|
||||
pipe(pipes_fd);
|
||||
cmd->fd_out = pipes_fd[1];
|
||||
next_in = pipes_fd[0];
|
||||
cmd->pipe_in = pipes_fd[0];
|
||||
cmd->pipe_out = pipes_fd[1];
|
||||
}
|
||||
tmp = ft_strchr(input[i], '>');
|
||||
if (tmp)
|
||||
|
||||
Reference in New Issue
Block a user