tselmeg8070 / minishell

42 school project
2 stars 0 forks source link

Redirections #36

Closed tselmeg8070 closed 1 year ago

tselmeg8070 commented 1 year ago
Test 125: ❌ echo hi >>./test_files/invalid_permission >./outfiles/outfile01 | echo bye 
Only in ./mini_outfiles: outfile01
mini outfiles:
bash outfiles:
cat: './bash_outfiles/*': No such file or directory

Test 116: ❌ ls >./outfiles/outfile01 >>./test_files/invalid_permission >>./outfiles/outfile02 
Only in ./mini_outfiles: outfile02
mini outfiles:
bash outfiles:

Test 118: ❌ ls >>./test_files/invalid_permission >>./outfiles/outfile02 <missing 
Only in ./mini_outfiles: outfile02
mini outfiles:
bash outfiles:
cat: './bash_outfiles/*': No such file or directory
mini error = ( No such file or directory)
bash error = ( Permission denied)

Test  99: ❌ echo hi | echo bye >./test_files/invalid_permission >./outfiles/outfile01 
Only in ./mini_outfiles: outfile01
mini outfiles:
bash outfiles:
cat: './bash_outfiles/*': No such file or directory

Test  96: ❌ echo hi >./test_files/invalid_permission >./outfiles/outfile01 | echo bye 
Only in ./mini_outfiles: outfile01
mini outfiles:
bash outfiles:
cat: './bash_outfiles/*': No such file or directory

Test  86: ❌ ls >"./outfiles/outfile01" >./test_files/invalid_permission >"./outfiles/outfile02" 
Only in ./mini_outfiles: outfile02
mini outfiles:
bash outfiles:

Test  87: ❌ ls >./test_files/invalid_permission >"./outfiles/outfile01" >./test_files/invalid_permission 
Only in ./mini_outfiles: outfile01
mini outfiles:
bash outfiles:
cat: './bash_outfiles/*': No such file or directory
tselmeg8070 commented 1 year ago

It seems bash shouldn't be able to create directory

tselmeg8070 commented 1 year ago

bash-5.1$ cat <missing | cat bash: missing: No such file or directory bash-5.1$