diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-06-23 09:09:17 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-06-23 10:31:27 +0200 |
| commit | 11b258841f4a15c514c49af7d378b51cd6a8ab79 (patch) | |
| tree | 0df3f625f49fc1a8ca0e74f81272120f07a35feb /include/minishell.h | |
| parent | 58fc321ec43be4c3f7976769733116232361857a (diff) | |
| download | minishell-11b258841f4a15c514c49af7d378b51cd6a8ab79.tar.gz minishell-11b258841f4a15c514c49af7d378b51cd6a8ab79.tar.bz2 minishell-11b258841f4a15c514c49af7d378b51cd6a8ab79.zip | |
Fixing builtin which needed to not be run in a child process, Added exit builtin
Diffstat (limited to 'include/minishell.h')
| -rw-r--r-- | include/minishell.h | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/minishell.h b/include/minishell.h index 5f4f56a..f2b237f 100644 --- a/include/minishell.h +++ b/include/minishell.h @@ -6,7 +6,7 @@ /* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/02/26 15:33:51 by cacharle #+# #+# */ -/* Updated: 2020/06/18 13:45:27 by charles ### ########.fr */ +/* Updated: 2020/06/23 08:32:46 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -79,13 +79,14 @@ typedef int (*t_builtin_func)(char **argv, t_env env); ** \param func Associated function */ -struct s_builtin_entry +typedef struct { char *name; t_builtin_func func; -}; + bool child_process; +} t_builtin_entry; -t_builtin_func builtin_search_func(char *name); +t_builtin_entry *builtin_search_func(char *name); int builtin_echo(char **argv, t_env env); int builtin_cd(char **argv, t_env env); |
