diff options
| author | Dominik Kaiser | 2025-01-15 14:43:35 +0100 |
|---|---|---|
| committer | Dominik Kaiser | 2025-01-15 14:43:35 +0100 |
| commit | 2d2df595dcf01315d080aa1b4fcf810d28f2a3a4 (patch) | |
| tree | ad8114546873f8514f1ee453a966c71bf20064fc /include | |
| parent | 7777515cfd76a1b39e8365749953350afc221b51 (diff) | |
| download | minishell-2d2df595dcf01315d080aa1b4fcf810d28f2a3a4.tar.gz minishell-2d2df595dcf01315d080aa1b4fcf810d28f2a3a4.zip | |
Add some fixes to execute_cmd
Diffstat (limited to 'include')
| -rw-r--r-- | include/minishell.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/minishell.h b/include/minishell.h index c905ca5..505b21b 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/22 17:14:49 by dkaiser #+# #+# */ -/* Updated: 2025/01/14 15:29:46 by chuhlig ### ########.fr */ +/* Updated: 2025/01/15 14:04:19 by dkaiser ### ########.fr */ /* */ /* ************************************************************************** */ @@ -39,7 +39,7 @@ t_redirection *collect_redirs(t_token **tokens); void print_ast(t_node *ast); int eval(t_node *node, t_env **env); -char *get_cmd_path(char *cmd, t_env *env); +char *get_cmd_path(char *cmd, t_env *env, int *return_code); int execute_cmd(t_cmd *cmd, t_env **env); char *format_string(char *str, t_env *env); int set_return_code(int return_code, t_env **env); |
