diff options
| author | Dominik Kaiser | 2025-01-14 16:40:30 +0100 |
|---|---|---|
| committer | GitHub | 2025-01-14 16:40:30 +0100 |
| commit | 398b0d39cbbe2cdabbfae00f799181a37754d5c1 (patch) | |
| tree | 397ae613dd39a35a6c91e7e30426f86ade4e24bb /include/minishell.h | |
| parent | 00ad7429f223c85e99da6ffa8f7dade0c73c97b5 (diff) | |
| parent | 553204e584dd08987902c7693e47744192e6bd85 (diff) | |
| download | minishell-398b0d39cbbe2cdabbfae00f799181a37754d5c1.tar.gz minishell-398b0d39cbbe2cdabbfae00f799181a37754d5c1.zip | |
Merge branch 'main' into echo-builtint
Diffstat (limited to 'include/minishell.h')
| -rw-r--r-- | include/minishell.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/include/minishell.h b/include/minishell.h index 6997b15..b2a3845 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* minishell.h :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: dkaiser <dkaiser@student.42heilbronn.de +#+ +:+ +#+ */ +/* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/06/22 17:14:49 by dkaiser #+# #+# */ -/* Updated: 2024/08/11 12:22:07 by dkaiser ### ########.fr */ +/* Updated: 2024/10/25 16:10:21 by chuhlig ### ########.fr */ /* */ /* ************************************************************************** */ @@ -29,11 +29,15 @@ int init(void); int init_signal_handling(void); -void repl(const char *prompt); +void repl(const char *prompt, t_env **env); t_list *parse(t_token *tokens); t_node *parse_cmd(t_token *tokens); 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); +int execute_cmd(t_cmd *cmd, t_env *env); #endif |
