summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/p_redirs.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/p_redirs.c b/src/p_redirs.c
index a47812c..6297255 100644
--- a/src/p_redirs.c
+++ b/src/p_redirs.c
@@ -119,6 +119,7 @@ static void p_get_redir(char word[], char *ptr, t_com *com, t_msh *msh)
fd_rdr[FD] = STDOUT_FILENO;
fd_rdr[RDR] = (*ptr == '>') ? (1) : (-1);
fd_rdr[RDR] = (fd_rdr[RDR] == 1 && *(ptr + 1) == '>') ? (2) : (fd_rdr[1]);
+ fd_rdr[RDR] = (fd_rdr[RDR] == 1 && *(ptr + 1) == '&') ? (3) : (fd_rdr[1]);
fd_rdr[RDR] = (fd_rdr[RDR] == -1 && *(ptr + 1) == '<') ? (-2) : (fd_rdr[1]);
fd_rdr[RDR] = (fd_rdr[RDR] == -2 && *(ptr + 2) == '-') ? (-3) : (fd_rdr[1]);
pos[0] = (fd_rdr[FD] == STDOUT_FILENO) ?