summaryrefslogtreecommitdiffstats
path: root/src/e_redirs.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 18:49:41 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-10-22 18:49:41 +0200
commitca88bc609950ebe3f84b4a5cadeb069fc3aded14 (patch)
tree38a9791a5acd7554bcceaaae86e0b9403b119d7d /src/e_redirs.c
parentIn progress (diff)
download42-minishell-ca88bc609950ebe3f84b4a5cadeb069fc3aded14.tar.gz
42-minishell-ca88bc609950ebe3f84b4a5cadeb069fc3aded14.tar.bz2
42-minishell-ca88bc609950ebe3f84b4a5cadeb069fc3aded14.tar.xz
42-minishell-ca88bc609950ebe3f84b4a5cadeb069fc3aded14.tar.zst
42-minishell-ca88bc609950ebe3f84b4a5cadeb069fc3aded14.zip
Unfinished
Diffstat (limited to 'src/e_redirs.c')
-rw-r--r--src/e_redirs.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/e_redirs.c b/src/e_redirs.c
index 246f2c7..1d66226 100644
--- a/src/e_redirs.c
+++ b/src/e_redirs.c
@@ -83,21 +83,15 @@ void e_dup_redirs(const t_com *com, t_msh *msh)
while (ptr != NULL)
{
if (ptr->redir == -2 || ptr->redir == -3)
- {
e_redir_minus_two(ptr);
- }
else if (ptr->redir == -1)
- {
e_redir_minus_one(ptr, msh);
- }
else if (ptr->redir == 1)
- {
e_redir_plus_one(ptr, msh);
- }
else if (ptr->redir == 2)
- {
e_redir_plus_two(ptr, msh);
- }
+ /* else if (ptr->redir == 3) */
+ /* e_redir_plus_three(ptr, msh); */
ptr = ptr->next;
}
}