summaryrefslogtreecommitdiffstats
path: root/src/e_builtins.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:46:03 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-30 18:46:03 +0200
commit5eb753276ff9052d3ef93fd2b931a9bfb482590c (patch)
treee0dcc220be90eff1224b9ee1ee706253cb63ef2f /src/e_builtins.c
parentNames update (diff)
download42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.gz
42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.bz2
42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.xz
42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.tar.zst
42-minishell-5eb753276ff9052d3ef93fd2b931a9bfb482590c.zip
Renamed quite some stuff
Diffstat (limited to 'src/e_builtins.c')
-rw-r--r--src/e_builtins.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/e_builtins.c b/src/e_builtins.c
index 90f3775..2f6d33f 100644
--- a/src/e_builtins.c
+++ b/src/e_builtins.c
@@ -52,7 +52,7 @@ static void
e_export_env_fork(ptr, msh);
e_dup_redirs(ptr, msh);
ret = 0;
- if (bu_id == FT_ID_H && msh->fd == STDIN_FILENO)
+ if (bu_id == B_ID_H && msh->fd == STDIN_FILENO)
ret = msh->bu_ptr[bu_id](ptr->argv + 1, msh);
else
ret = msh->bu_ptr[bu_id](ptr->argv + 1, msh);
@@ -76,15 +76,15 @@ static void
;
ret = WEXITSTATUS(status);
msh->ret = ret;
- if (bu_id == FT_ID_CD && ret == 0)
+ if (bu_id == B_ID_CD && ret == 0)
msh->bu_ptr[bu_id](ptr->argv + 1, msh);
- else if (bu_id == FT_ID_EXPORT)
+ else if (bu_id == B_ID_EXPORT)
b_export_mute(ptr->argv + 1, msh);
- else if (bu_id == FT_ID_UNSET)
+ else if (bu_id == B_ID_UNSET)
msh->bu_ptr[bu_id](ptr->argv + 1, msh);
- else if (bu_id == FT_ID_ALIAS)
+ else if (bu_id == B_ID_ALIAS)
b_alias_mute(ptr->argv + 1, msh);
- else if (bu_id == FT_ID_EXIT)
+ else if (bu_id == B_ID_EXIT)
{
if (msh->fd == STDIN_FILENO)
m_dump_hist(msh);