diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-28 14:46:35 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-08-28 14:46:35 +0200 |
commit | 6f4b096ba1cff30c1c33dd887aa70740be7990c7 (patch) | |
tree | 893c469057e07bd64482af7d3055797dbea1703d /src/m_loop.c | |
parent | Quick tabs fix (diff) | |
download | 42-minishell-6f4b096ba1cff30c1c33dd887aa70740be7990c7.tar.gz 42-minishell-6f4b096ba1cff30c1c33dd887aa70740be7990c7.tar.bz2 42-minishell-6f4b096ba1cff30c1c33dd887aa70740be7990c7.tar.xz 42-minishell-6f4b096ba1cff30c1c33dd887aa70740be7990c7.tar.zst 42-minishell-6f4b096ba1cff30c1c33dd887aa70740be7990c7.zip |
Multiline added for &&
Diffstat (limited to 'src/m_loop.c')
-rw-r--r-- | src/m_loop.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/m_loop.c b/src/m_loop.c index a5e2723..1faa2cf 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -86,17 +86,14 @@ uint8_t { line = m_check_multi_backslash(fd, line, msh); line = m_check_multi_pipe(fd, line, msh); + line = m_check_multi_and(fd, line, msh); if (fd == STDIN_FILENO) m_handle_hist(line, msh); m_parse_and_run_line(line, msh); /* TODO: (null): Bad address on "msh ~> echo a > asd; cat < asd" but not on "msh ~> echo a > asd; cat asd" */ - /* TODO: "msh ~> some command \": re GNL into ft_nrealloc */ - /* TODO: a histfile would be nice */ } else - { ft_memdel((void*)&line); - } } if (fd == STDIN_FILENO) m_dump_hist(msh); |