diff options
| author | Christopher Uhlig | 2025-01-20 17:34:02 +0100 |
|---|---|---|
| committer | Christopher Uhlig | 2025-01-20 17:34:02 +0100 |
| commit | 634a3b84b31cbcc5c0c665338e1ef1eb49f25e5d (patch) | |
| tree | a30f4d0c47a636c822e97efc2678b61d3e2c3dad /src/execute_cmd.c | |
| parent | 8f5abcdb257393a2e576fe382835e8e060662834 (diff) | |
| download | minishell-634a3b84b31cbcc5c0c665338e1ef1eb49f25e5d.tar.gz minishell-634a3b84b31cbcc5c0c665338e1ef1eb49f25e5d.zip | |
fixed a bunch of stuff
Diffstat (limited to 'src/execute_cmd.c')
| -rw-r--r-- | src/execute_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/execute_cmd.c b/src/execute_cmd.c index e2b9d66..4b84e12 100644 --- a/src/execute_cmd.c +++ b/src/execute_cmd.c @@ -6,7 +6,7 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/12/17 19:21:35 by chuhlig #+# #+# */ -/* Updated: 2025/01/19 19:15:46 by chuhlig ### ########.fr */ +/* Updated: 2025/01/20 15:43:41 by chuhlig ### ########.fr */ /* */ /* ************************************************************************** */ @@ -28,7 +28,7 @@ int is_builtin(char *cmd) int execute_builtin(char **args, t_env **env) { if (ft_strcmp(args[0], "export") == 0) - return (export(args, env)); + return (export(args, env, ft_atoi("0"))); else if (ft_strcmp(args[0], "unset") == 0) return (unset(args, env)); else if (ft_strcmp(args[0], "cd") == 0) |
