🏗️」 wip(exec/exec_cmd): fixing redirections with builtins

This commit is contained in:
y-syo
2024-07-18 14:28:19 +02:00
parent fb7f5bdbef
commit a401068e3c
5 changed files with 31 additions and 16 deletions

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */
/* Updated: 2024/07/09 14:40:00 by mmoussou ### ########.fr */
/* Updated: 2024/07/18 14:23:00 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -104,7 +104,7 @@ t_env *ft_envnew(char *name, char *content);
unsigned int ft_envsize(t_env *lst);
/**
* @brief DEBUG FUNC : print the actual state of the env struct
* @brief print the actual state of the env struct
*
* @param env the env struct that will be printed
*

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/29 13:20:22 by mmoussou #+# #+# */
/* Updated: 2024/07/15 21:04:19 by mmoussou ### ########.fr */
/* Updated: 2024/07/18 14:25:25 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -28,6 +28,8 @@ typedef struct s_exec
int format_quotes(t_list *list_cmd);
int exec_single_cmd_execution(t_cmd *cmd, char **env,
t_env *env_t, t_exec exec);
char *get_path(char *path, char *cmd);
int exec_split_cmd(t_list *list_cmd, t_env *env);
int switch_cmd_path(t_cmd *cmd, t_env *env);