alias parsing

This commit is contained in:
2024-02-17 04:37:01 +01:00
parent e6fff0aec3
commit 7b5b5338a4
11 changed files with 129 additions and 29 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/02/07 16:04:11 by tomoron #+# #+# */
/* Updated: 2024/02/16 13:07:01 by marde-vr ### ########.fr */
/* Updated: 2024/02/17 04:11:51 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -19,7 +19,7 @@ void print_numeric_arg_err(char *arg)
ft_putstr_fd(": numeric argument required\n", 2);
}
void exit_bt(t_cmd *args, t_env *env)
void exit_bt(t_cmd *args, t_env *env, t_alias *aliases)
{
t_cmd *start;
int exit_code;
@ -41,6 +41,7 @@ void exit_bt(t_cmd *args, t_env *env)
else
exit_code = g_return_code;
free_cmd(start);
free_alias(aliases);
free_env(env);
exit(exit_code);
}