in et out type reparé( peut-être)

This commit is contained in:
2024-04-17 19:03:34 +02:00
parent 9da2f11ea0
commit 6fb0af3d17
5 changed files with 25 additions and 18 deletions

View File

@ -6,7 +6,7 @@
/* By: marde-vr <marde-vr@42angouleme.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/03/28 13:50:14 by tomoron #+# #+# */
/* Updated: 2024/04/15 16:54:53 by marde-vr ### ########.fr */
/* Updated: 2024/04/17 18:29:30 by tomoron ### ########.fr */
/* */
/* ************************************************************************** */
@ -14,6 +14,8 @@
void get_redirections(t_msh *msh, t_cmd *cmds)
{
msh->in_type = 0;
msh->out_type = 0;
if (first_is_in_type(cmds))
{
get_in_type(msh, cmds);
@ -52,7 +54,6 @@ void exec_command_bonus(t_msh *msh, char *cmd_str)
cmds = cmds->next;
msh->tokens = parse_command(cmds->value, msh->env);
msh->cmds = cmds;
get_redirections(msh, cmds);
//print_msh_struct(msh); // debug
//print_parsed_token(msh->tokens); // debug
exec_commands(msh);