Feat(WIP): Added possibility to cmd_env to execute commands with

altered env.

Added dummy function for cd, echo, setenv & unsetenv
Started work on env copy feature
This commit is contained in:
Tanguy MAZE
2019-09-20 15:49:38 +02:00
parent cf62dae53b
commit 05d8424f75
9 changed files with 220 additions and 30 deletions

20
srcs/cmd_setenv.c Normal file
View File

@@ -0,0 +1,20 @@
/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* cmd_setenv.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/09/20 14:41:08 by tmaze #+# #+# */
/* Updated: 2019/09/20 14:43:47 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
#include "minishell.h"
int cmd_setenv(char** argv, t_list** env)
{
(void)argv;
(void)env;
return (0);
}