NataliaMedeiros / minishell

0 stars 0 forks source link

Talk with Duda #27

Closed NataliaMedeiros closed 4 weeks ago

NataliaMedeiros commented 1 month ago

On current code, if we start the cmd line with a redirection, it you fill the command with the cmd as NULL and the name of infile or outfile, for example:

ls cmd is equal null and outfile equal ls. Also it will create a file called outfile.

However it is broken on execution, so I need to talk with Duda to check if it will broke on her current execution (because I have the old one).

And it does not work with we have something else after de file name, for example:

out echo hello, the program is not taking the echo hello command, this is the case on issue #23 We need also talk if we will implement and the ideas to implement.

Possible solution: On parsing I can create a condition that checks if the command line starts with redirection and then make a diferrent fill cmd for this case