Skip to content

Commit

Permalink
added somthing
Browse files Browse the repository at this point in the history
  • Loading branch information
Abdelouahed Rabiai committed Jun 12, 2023
1 parent 879479e commit c04c96f
Show file tree
Hide file tree
Showing 38 changed files with 5 additions and 3 deletions.
Binary file added .DS_Store
Binary file not shown.
Binary file added minishell
Binary file not shown.
Binary file added src/.DS_Store
Binary file not shown.
Binary file added src/a_lexer/fill_check_1st_list.o
Binary file not shown.
Binary file added src/a_lexer/get_words.o
Binary file not shown.
Binary file added src/a_lexer/syntax_checker.o
Binary file not shown.
Binary file added src/a_lexer/syntax_checker2.o
Binary file not shown.
Binary file added src/a_lexer/syntax_checker3.o
Binary file not shown.
Binary file added src/a_parser/expansions.o
Binary file not shown.
Binary file added src/a_parser/files_opener.o
Binary file not shown.
Binary file added src/a_parser/files_opener2.o
Binary file not shown.
Binary file added src/a_parser/final_list.o
Binary file not shown.
Binary file added src/a_parser/split_cmds.o
Binary file not shown.
Binary file added src/ebuiltin_functions/basic_builtins.o
Binary file not shown.
Binary file added src/ebuiltin_functions/cd.o
Binary file not shown.
Binary file added src/ebuiltin_functions/cd_helpers1.o
Binary file not shown.
Binary file added src/ebuiltin_functions/echo.o
Binary file not shown.
Binary file added src/ebuiltin_functions/env.o
Binary file not shown.
Binary file added src/ebuiltin_functions/env_helpers.o
Binary file not shown.
Binary file added src/ebuiltin_functions/export.o
Binary file not shown.
Binary file added src/ebuiltin_functions/export_helpers.o
Binary file not shown.
Binary file added src/ebuiltin_functions/export_helpers1.o
Binary file not shown.
Binary file added src/ebuiltin_functions/unset.o
Binary file not shown.
2 changes: 1 addition & 1 deletion src/execution/child_processes_helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: arabiai <arabiai@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/23 00:11:49 by arabiai #+# #+# */
/* Updated: 2023/05/24 17:12:50 by arabiai ### ########.fr */
/* Updated: 2023/06/09 21:13:54 by arabiai ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down
Binary file added src/execution/child_processes_helpers.o
Binary file not shown.
Binary file added src/execution/execute.o
Binary file not shown.
Binary file added src/execution/execute_helpers.o
Binary file not shown.
Binary file added src/execution/execute_helpers1.o
Binary file not shown.
Binary file added src/execution/handle_signals.o
Binary file not shown.
Binary file added src/execution/heredoc.o
Binary file not shown.
Binary file added src/execution/heredoc_helpers.o
Binary file not shown.
Binary file added src/execution/initialize_data.o
Binary file not shown.
6 changes: 4 additions & 2 deletions src/execution/multiple_cmds.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
/* By: arabiai <arabiai@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2023/03/18 17:15:35 by arabiai #+# #+# */
/* Updated: 2023/06/09 20:55:58 by arabiai ### ########.fr */
/* Updated: 2023/06/09 21:20:28 by arabiai ### ########.fr */
/* */
/* ************************************************************************** */

Expand Down Expand Up @@ -142,7 +142,9 @@ void execute_multiple_cmds(t_list *final_list, char **envp, t_infos *infos)
}
if (tmp->delims != NULL && tmp->next)
wait(NULL);
redirect_process(infos->help.pipe_ends, tmp);
close(infos->help.pipe_ends[1]);
dup2(infos->help.pipe_ends[0], STDIN_FILENO);
close(infos->help.pipe_ends[0]);
tmp = tmp->next;
infos->help.i++;
}
Expand Down
Binary file added src/execution/multiple_cmds.o
Binary file not shown.
Binary file added src/execution/multiple_cmds_helpers.o
Binary file not shown.
Binary file added src/ft_printf/ft_printf.o
Binary file not shown.
Binary file added src/ft_printf/ft_printf_utils.o
Binary file not shown.
Binary file added src/ft_printf/libftprintf.a
Binary file not shown.

0 comments on commit c04c96f

Please sign in to comment.