diff options
author | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-21 23:24:14 +0200 |
---|---|---|
committer | JozanLeClerc <bousset.rudy@gmail.com> | 2020-10-21 23:24:14 +0200 |
commit | 7c645ea2acd3adad071692e72e455f589a8a9d91 (patch) | |
tree | bf2bf168d840ab8d012ba377550645ed60d934a1 | |
parent | TODO update (diff) | |
download | 42-minishell-7c645ea2acd3adad071692e72e455f589a8a9d91.tar.gz 42-minishell-7c645ea2acd3adad071692e72e455f589a8a9d91.tar.bz2 42-minishell-7c645ea2acd3adad071692e72e455f589a8a9d91.tar.xz 42-minishell-7c645ea2acd3adad071692e72e455f589a8a9d91.tar.zst 42-minishell-7c645ea2acd3adad071692e72e455f589a8a9d91.zip |
In progress
-rw-r--r-- | src/e_line.c | 8 | ||||
-rw-r--r-- | src/m_loop.c | 1 |
2 files changed, 4 insertions, 5 deletions
diff --git a/src/e_line.c b/src/e_line.c index de1eae2..c0edb60 100644 --- a/src/e_line.c +++ b/src/e_line.c @@ -22,8 +22,7 @@ #include "s_struct.h" #include "u_utils.h" -void - e_line(t_msh *msh) +void e_line(t_msh *msh) { uint8_t bu_id; @@ -31,9 +30,8 @@ void e_pipes(msh); else if (msh->com != NULL) { - if (msh->com->bin != NULL && - (bu_id = u_get_builtin_id(msh->com->bin)) - < B_BUILTINS_COUNT) + if (msh->com->bin != NULL + && (bu_id = u_get_builtin_id(msh->com->bin)) < B_BUILTINS_COUNT) e_builtin(msh->com, bu_id, msh); else if (msh->com->bin != NULL) e_extern(msh->com, msh); diff --git a/src/m_loop.c b/src/m_loop.c index b111577..eea9150 100644 --- a/src/m_loop.c +++ b/src/m_loop.c @@ -43,6 +43,7 @@ static void m_parse_and_run_line(char line[], t_msh *msh) ptr = msh->curr; while (ptr != NULL) { + ft_printf("[%s]\n", ptr->lblock); if ((previf == 0) || (previf == 1 && msh->ret == 0) || (previf == 2 && msh->ret != 0)) { |