mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-03-15 11:26:51 +01:00
「🏗️」 wip: testing things, might broke.
This commit is contained in:
@ -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);
|
||||||
|
Reference in New Issue
Block a user