RPDJF / 42-minishell

Un mini-shell stylé de l'école 42 pour les codeurs intrépides 💻
3 stars 0 forks source link

Attached pipes not creating new lexer nodes #31

Closed RPDJF closed 7 months ago

RPDJF commented 7 months ago

Attached pipes not creating new lexer nodes

in this example :

ilkayyanar:~/travail/repo_github/minishell-42$ ls|cat|cat
noeud[0]--->[ls:0]--->[|:0]--->[cat:0]--->[|:0]--->[cat:0]
token addr: 0x0

expected behavior would be :

ilkayyanar:~/travail/repo_github/minishell-42$ ls|cat|cat
noeud[0]--->[ls:0]
noeud[1]--->[|:0]
noeud[2]--->[cat:0]
noeud[3]--->[|:0]
noeud[4]--->[cat:0]
token addr: 0x0
IlYAN-FISHERMAN commented 7 months ago

Bug fixed in parsing branch.

ilkayyanar:~/travail/repo_github/minishell-42$ ls|cat|ls
noeud[0]--->[ls:0]
noeud[1]--->[|:0]
noeud[2]--->[cat:0]
noeud[3]--->[|:0]
noeud[4]--->[ls:0]
token addr: 0x0