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_two.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_two.c')
| -rw-r--r-- | src/builtins_part_two.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/builtins_part_two.c b/src/builtins_part_two.c index 5af6c68..05d6943 100644 --- a/src/builtins_part_two.c +++ b/src/builtins_part_two.c @@ -6,7 +6,7 @@ /* By: chuhlig <chuhlig@student.42.fr> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/10/25 20:52:16 by chuhlig #+# #+# */ -/* Updated: 2025/01/14 14:26:39 by chuhlig ### ########.fr */ +/* Updated: 2025/01/14 19:31:17 by chuhlig ### ########.fr */ /* */ /* ************************************************************************** */ @@ -101,6 +101,11 @@ int ft_env(t_env *env) { while (env != NULL) { + if (strchr(env->name, '?')) + { + env = env->next; + continue ; + } printf("%s", env->name); printf("=%s\n", env->value); env = env->next; |
