mirror of
https://github.com/KeyZox71/ft_minipowershell.git
synced 2025-05-10 22:58:45 +02:00
「✨」 feat: Parsing of command kinda working
This commit is contained in:
@ -6,7 +6,7 @@
|
||||
/* By: adjoly <adjoly@student.42angouleme.fr> +#+ +:+ +#+ */
|
||||
/* +#+#+#+#+#+ +#+ */
|
||||
/* Created: 2024/05/18 20:13:50 by adjoly #+# #+# */
|
||||
/* Updated: 2024/05/28 14:25:18 by adjoly ### ########.fr */
|
||||
/* Updated: 2024/05/28 16:41:49 by adjoly ### ########.fr */
|
||||
/* */
|
||||
/* ************************************************************************** */
|
||||
|
||||
@ -17,13 +17,13 @@ t_list *tokenizer(char *readline)
|
||||
t_list *token;
|
||||
t_list *piped;
|
||||
t_list *tmp;
|
||||
|
||||
|
||||
piped = __split_pipe(readline);
|
||||
token = NULL;
|
||||
tmp = piped;
|
||||
while (tmp)
|
||||
{
|
||||
ft_lstadd_back(&token, ft_lstnew((void*)__to_token(tmp->content)));
|
||||
ft_lstadd_back(&token, ft_lstnew((void *)__to_token(tmp->content)));
|
||||
tmp = tmp->next;
|
||||
}
|
||||
ft_lstclear(&piped, free);
|
||||
|
Reference in New Issue
Block a user