Browse Source

[fix] double redirection: forget to precise output fd.

Moul 3 years ago
parent
commit
460e21af59
1 changed files with 1 additions and 0 deletions
  1. 1 0
      src/pipe_redir_parsing.c

+ 1 - 0
src/pipe_redir_parsing.c

@@ -62,6 +62,7 @@ int		parse_double_redir(t_e *e, char *str, t_pipe *p, t_pipe_redir **t)
 		t[p->i]->itxt = NULL;
 		t[p->i]->operator = ft_strsub(&str[snd_chev], 0, nchev);
 		t[p->i]->otxt = ft_strtrim(&str[snd_chev + nchev]);
+		t[p->i]->ofd = -100;
 		p->i++;
 		p->pnbr++;
 	}