diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-23 13:39:12 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-04-23 13:39:12 +0200 |
commit | 8a76ac02fb0f550244272eab5ed0d0aabcad4523 (patch) | |
tree | e0a2cce3630f805cbc987393b2e2bd1eaf63701e /src | |
parent | rm qwe (diff) | |
download | 42-minishell-8a76ac02fb0f550244272eab5ed0d0aabcad4523.tar.gz 42-minishell-8a76ac02fb0f550244272eab5ed0d0aabcad4523.tar.bz2 42-minishell-8a76ac02fb0f550244272eab5ed0d0aabcad4523.tar.xz 42-minishell-8a76ac02fb0f550244272eab5ed0d0aabcad4523.tar.zst 42-minishell-8a76ac02fb0f550244272eab5ed0d0aabcad4523.zip |
Qwe
Diffstat (limited to 'src')
-rw-r--r-- | src/ft_e_lcom.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/ft_e_lcom.c b/src/ft_e_lcom.c index 677a2a1..3468954 100644 --- a/src/ft_e_lcom.c +++ b/src/ft_e_lcom.c @@ -55,7 +55,8 @@ uint8_t ft_printf("[%hhd] [%s]\n", ptr->redir, ptr->rdrpath); if (ptr->redir == 1) { - if ((fd = open(ptr->rdrpath, O_CREAT | O_TRUNC | O_WRONLY, 0644))) + if ((fd = open(ptr->rdrpath, + O_CREAT | O_TRUNC | O_WRONLY, 0644))) { /* TODO: handle err with errno */ } @@ -64,7 +65,8 @@ uint8_t } else if (ptr->redir == 2) { - if ((fd = open(ptr->rdrpath, O_CREAT | O_APPEND | O_WRONLY, 0644))) + if ((fd = open(ptr->rdrpath, + O_CREAT | O_APPEND | O_WRONLY, 0644))) { /* TODO: handle err with errno */ } @@ -89,7 +91,7 @@ uint8_t } else { - /* TODO: exec $PATH stuff */ + /* TODO: exec $PATH stuff | initiate all builtins first, even uncomplete */ } ptr = ptr->next; } |