diff options
Diffstat (limited to 'src/ft_e_lcom.c')
-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; } |