1
0
mirror of https://github.com/KeyZox71/ft_minipowershell.git synced 2025-05-13 16:08:45 +02:00

🏗️」 wip(buildtins:export): testing things, might broke.

This commit is contained in:
y-syo
2024-06-28 10:12:19 +02:00
parent 15f87d9a37
commit 5e68b7342d
4 changed files with 55 additions and 8 deletions

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
/* Updated: 2024/06/26 12:48:14 by adjoly ### ########.fr */
/* Updated: 2024/06/27 15:37:43 by mmoussou ### ########.fr */
/* */
/* ************************************************************************** */
@ -115,13 +115,18 @@ int main(int ac, char **av, char **env)
ft_pwd();
continue ;
}
else if (is_str(test, "export"))
{
ft_export(NULL, &env_l);
continue ;
}
else if (is_str(test, "cd"))
{
ft_cd(&env_l, lll[1]);
continue ;
}
else if (is_str(test, "exit"))
;
check_quote(test);
piped = tokenizer(test);
//check_redir(((t_token *)(piped->content))->redirection, av);