🏗️」 wip: testing things, might broke.

This commit is contained in:
2024-05-28 14:21:41 +02:00
parent c6d1149642
commit c87d45e584

View File

@ -6,7 +6,7 @@
/* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */ /* By: mmoussou <mmoussou@student.42angouleme.fr +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */ /* +#+#+#+#+#+ +#+ */
/* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */ /* Created: 2024/04/24 11:18:04 by adjoly #+# #+# */
/* Updated: 2024/05/24 15:01:05 by adjoly ### ########.fr */ /* Updated: 2024/05/27 18:58:13 by adjoly ### ########.fr */
/* */ /* */
/* ************************************************************************** */ /* ************************************************************************** */
@ -50,14 +50,19 @@ int main(int ac, char **av, char **env)
char *prompt; char *prompt;
char **lll; char **lll;
t_list *piped; t_list *piped;
t_env env_l;
//t_token *token; //t_token *token;
(void)ac; (void)ac;
(void)av; (void)av;
(void)env; (void)env;
if (!env_init(env, &env_l))
{
}
while (1) while (1)
{ {
prompt = get_prompt(); prompt = get_prompt(env_l);
test = readline(prompt); test = readline(prompt);
free(prompt); free(prompt);
add_history(test); add_history(test);