williamroocha / minishell

0 stars 0 forks source link

cmd1 | cmd2 > file2 - Parse/AST build #20

Closed JOAOVIEG closed 8 months ago

JOAOVIEG commented 8 months ago

To build AST accordingly:

image

To bare in mind the examples

file2 cmd2 should work as cmd2 > file2.

cmd2 > file2 -option (or cmd2 argument) also should work.

example

ls > out inlcudes

does ls to includes and redirects to out.

Tree structure does not change but this is related to the arguments parsed to the arg variable of cmd node