diff options
| author | Charles <sircharlesaze@gmail.com> | 2020-04-02 15:50:13 +0200 |
|---|---|---|
| committer | Charles <sircharlesaze@gmail.com> | 2020-04-03 08:57:45 +0200 |
| commit | e5393671a265e1c301c6c303f21f938c4cf9ca75 (patch) | |
| tree | 0190ff9ba762cf820b1846b01adc339092370e2c /src/builtin/export.c | |
| parent | f66cb8f28a2779159baeef6ea91a7684d59cc295 (diff) | |
| download | minishell-e5393671a265e1c301c6c303f21f938c4cf9ca75.tar.gz minishell-e5393671a265e1c301c6c303f21f938c4cf9ca75.tar.bz2 minishell-e5393671a265e1c301c6c303f21f938c4cf9ca75.zip | |
Evaluation pipe frame (not tested)
Diffstat (limited to 'src/builtin/export.c')
| -rw-r--r-- | src/builtin/export.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/builtin/export.c b/src/builtin/export.c index 650a421..3636407 100644 --- a/src/builtin/export.c +++ b/src/builtin/export.c @@ -6,7 +6,7 @@ /* By: charles <charles.cabergs@gmail.com> +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2020/04/01 17:11:34 by charles #+# #+# */ -/* Updated: 2020/04/01 22:37:47 by charles ### ########.fr */ +/* Updated: 2020/04/02 10:46:27 by charles ### ########.fr */ /* */ /* ************************************************************************** */ @@ -25,7 +25,7 @@ int builtin_export(char **argv, t_env env) return (1); if ((tmp = ft_strdup(argv[1])) == NULL) return (2); - if (ft_vecpush(env, tmp) == NULL) + if (ft_vecinsert(env, env->size - 1, tmp) == NULL) return (2); // internal error code return (0); } |
