FjjDessoyCaraballo / minishell

This project aims to replicate bash shell
1 stars 3 forks source link

redirection isn't parsed correctly with fds #64

Closed FjjDessoyCaraballo closed 2 months ago

FjjDessoyCaraballo commented 2 months ago

Redirection is being incorporated to the argument. Bash takes the redirection as something separate from the fd in this case.

In simple words:

when argument has a "<", ">", "<<", or ">>" (third image)

image

image

image

Torutu commented 2 months ago

image

do you have the file src/parse/modify_str.c? it should add spaces when it finds | > < >> << to tokenize and parse correctly

FjjDessoyCaraballo commented 2 months ago

Closing issue: fix in merge #63