NataliaMedeiros / minishell

0 stars 0 forks source link

More tests #26

Open NataliaMedeiros opened 1 month ago

NataliaMedeiros commented 1 month ago

ls | > bla echo hello | > bla2 Both examples should create an empty file, one called bla an other called bla 2. echo "hello > out.txt | cat" . . , , tap space + tap echo '"'$USER'"'

'<< out1 cat << out3' -> we should close first out1 and them out3, and just what was typed after closing out1 and before closing out3 will be taking as argument to cat '< main.c cat < Makefile' -> should just cat the Makefile 'echo hello >> out >> out1 >> out2 >> out3' -> should create out, out1 and out2 with nothing inside and out3 with hello inside 'echo hello > out > out1 > out2 > out3'

'> out echo hello | >> out echo hi | >> out echo nat | >> out echo duda -> should create a file called out with hello on first line, hi on second line, nat on third line and duda on last line echo hello | < main.c cat echo hello |< main.c cat echo hello | <main.c cat echo hello| < main.c cat <main.c cat