diff options
| author | Christopher Uhlig | 2025-01-14 20:21:31 +0100 |
|---|---|---|
| committer | Christopher Uhlig | 2025-01-14 20:21:31 +0100 |
| commit | ed75abf31c8e1f576df566ccf36bc7cf8b0e7ec5 (patch) | |
| tree | 60b1e8e36a7146400033e0593df63805441cb2a9 /src/builtins_part_one.c | |
| parent | 430521cc47e9f47fbd1005fade9251c31d9f3f18 (diff) | |
| download | minishell-ed75abf31c8e1f576df566ccf36bc7cf8b0e7ec5.tar.gz minishell-ed75abf31c8e1f576df566ccf36bc7cf8b0e7ec5.zip | |
fixe ? added a export return maybe ussles
Diffstat (limited to 'src/builtins_part_one.c')
| -rw-r--r-- | src/builtins_part_one.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/builtins_part_one.c b/src/builtins_part_one.c index 9f50157..f3bcfc0 100644 --- a/src/builtins_part_one.c +++ b/src/builtins_part_one.c @@ -6,7 +6,7 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/08/09 17:01:16 by chuhlig #+# #+# */ -/* Updated: 2025/01/14 16:51:05 by chuhlig ### ########.fr */ +/* Updated: 2025/01/14 19:51:59 by chuhlig ### ########.fr */ /* */ /* ************************************************************************** */ @@ -129,13 +129,15 @@ int export(char **av, t_env **env) } current->value = ft_strdup(tmp + 1); } + else + return (1); } return (0); } void set_return_code(int return_code, t_env **env) { - t_env *cur; + t_env *cur; cur = check_existing(*env, "?"); if (cur) |
