diff options
| author | Christopher Uhlig | 2025-01-14 20:21:31 +0100 |
|---|---|---|
| committer | Christopher Uhlig | 2025-01-14 20:21:31 +0100 |
| commit | ed75abf31c8e1f576df566ccf36bc7cf8b0e7ec5 (patch) | |
| tree | 60b1e8e36a7146400033e0593df63805441cb2a9 /garbage | |
| parent | 430521cc47e9f47fbd1005fade9251c31d9f3f18 (diff) | |
| download | minishell-ed75abf31c8e1f576df566ccf36bc7cf8b0e7ec5.tar.gz minishell-ed75abf31c8e1f576df566ccf36bc7cf8b0e7ec5.zip | |
fixe ? added a export return maybe ussles
Diffstat (limited to 'garbage')
| -rw-r--r-- | garbage | 440 |
1 files changed, 197 insertions, 243 deletions
@@ -499,217 +499,214 @@ und in parse cmd collect args and x format args seems to work later test x -Test 1: ✅ echo hello world -Test 2: ✅ echo "hello world" -Test 3: ✅ echo 'hello world' -Test 4: ✅ echo hello'world' -Test 5: ✅ echo hello""world -Test 6: ✅ echo '' -Test 7: ✅ echo "$PWD" -Test 8: ✅ echo '$PWD' - - - -Test 9: ❌ echo "aspas ->'" string formater checken +Test 1: ✅ echo hello world +Test 2: ✅ echo "hello world" +Test 3: ✅ echo 'hello world' +Test 4: ✅ echo hello'world' +Test 5: ✅ echo hello""world +Test 6: ✅ echo '' +Test 7: ✅ echo "$PWD" +Test 8: ✅ echo '$PWD' + +format_string problem +Test 9: ❌ echo "aspas ->'" mini output = (aspas ->") bash output = (aspas ->') -Test 10: ❌ echo "aspas -> ' " +Test 10: ❌ echo "aspas -> ' " mini output = (aspas -> ") bash output = (aspas -> ' ) -Test 11: ✅ echo 'aspas ->"' -Test 12: ✅ echo 'aspas -> " ' - - -Test 13: ❌ echo "> >> < * ? [ ] | ; [ ] || && ( ) & # $ <<" +Test 11: ✅ echo 'aspas ->"' +Test 12: ✅ echo 'aspas -> " ' +Test 13: ❌ echo "> >> < * ? [ ] | ; [ ] || && ( ) & # $ <<" mini output = (> >> < README.md bash.supp bash_outfiles bonus bonus_bonus builtins extras local.supp loop.out manual_tests mini_outfiles os_specific outfiles pipes redirects syntax test_files tester wildcards ? [ ] | ; [ ] || && ( ) & # ) bash output = (> >> < README.md bash.supp bash_outfiles bonus bonus_bonus builtins extras local.supp loop.out manual_tests mini_outfiles os_specific outfiles pipes redirects syntax test_files tester wildcards ? [ ] | ; [ ] || && ( ) & # $ <<) -Test 14: ✅ echo '> >> < * ? [ ] | ; [ ] || && ( ) & # $ <<' -Test 15: ❌ echo "exit_code ->$? user ->$USER home -> $HOME" -mini output = (exit_code ->/Users/dkaiser) -bash output = (exit_code ->0 user ->dkaiser home -> /Users/dkaiser) -Test 16: ✅ echo 'exit_code ->$? user ->$USER home -> $HOME' - -string formater checken -Test 17: ❌ echo "$" -mini output = (../minishell) +Test 14: ✅ echo '> >> < * ? [ ] | ; [ ] || && ( ) & # $ <<' +Test 15: ❌ echo "exit_code ->$? user ->$USER home -> $HOME" +mini output = (exit_code ->/Users/chuhlig) +bash output = (exit_code ->0 user ->chuhlig home -> /Users/chuhlig) +Test 16: ✅ echo 'exit_code ->$? user ->$USER home -> $HOME' +Test 17: ❌ echo "$" +mini output = (0) bash output = ($) -Test 18: ✅ echo '$' -Test 19: ❌ echo $ -mini output = (../minishell) +Test 18: ✅ echo '$' +Test 19: ❌ echo $ +mini output = (0) bash output = ($) -Test 20: ❌ echo $? -mini output = () -bash output = (0) -Test 21: ❌ echo $?HELLO +Test 20: ✅ echo $? +Test 21: ❌ echo $?HELLO mini output = () bash output = (0HELLO) -Test 22: ✅ pwd -Test 23: ✅ pwd oi -Test 24: ✅ export hello -Test 25: ✅ export HELLO=123 -Test 26: ❌ export A- -mini exit code = 0 -bash exit code = 1 +Test 22: ✅ pwd +Test 23: ✅ pwd oi + +Test 24: ❌ export hello //stupid +mini exit code = 1 +bash exit code = 0 +Test 25: ✅ export HELLO=123 +Test 26: ✅⚠️ export A- mini error = () bash error = ( not a valid identifier) -Test 27: ✅ export HELLO=123 A -Test 28: ✅ export HELLO="123 A-" -Test 29: ✅ export hello world -Test 30: ❌ export HELLO-=123 + fucking extra function for identifier + +Test 27: ❌ export HELLO=123 A +mini exit code = 1 +bash exit code = 0 +auch dum +Test 28: ✅ export HELLO="123 A-" +Test 29: ❌ export hello world +mini exit code = 1 +bash exit code = 0 +Test 30: ❌ export HELLO-=123 mini exit code = 0 bash exit code = 1 mini error = () bash error = ( not a valid identifier) -Test 31: ❌ export = +Test 31: ❌ export = mini exit code = 0 bash exit code = 1 mini error = () bash error = ( not a valid identifier) -Test 32: ❌ export 123 -mini exit code = 0 -bash exit code = 1 +Test 32: ✅⚠️ export 123 mini error = () bash error = ( not a valid identifier) -Test 33: ✅ unset -Test 34: ✅ unset HELLO -Test 35: ✅ unset HELLO1 HELLO2 -Test 36: ✅ unset HOME -Test 37: ✅ unset PATH -Test 38: ✅ unset SHELL -Test 39: ❌ cd $PWD +Test 33: ✅ unset +Test 34: ✅ unset HELLO +Test 35: ✅ unset HELLO1 HELLO2 +Test 36: ✅ unset HOME +Test 37: ✅ unset PATH +Test 38: ✅ unset SHELL + + +Test 39: ❌ cd $PWD mini exit code = 139 bash exit code = 0 -Test 40: ❌ cd $PWD hi +Test 40: ❌ cd $PWD hi mini exit code = 139 bash exit code = 0 -Test 41: ❌ cd 123123 +Test 41: ❌ cd 123123 mini exit code = 139 bash exit code = 1 mini error = () bash error = ( No such file or directory) -Test 42: ❌ exit 123 -mini exit code = 0 -bash exit code = 123 -Test 43: ❌ exit 298 -mini exit code = 0 -bash exit code = 42 -Test 44: ❌ exit +100 -mini exit code = 0 -bash exit code = 100 -Test 45: ❌ exit "+100" -mini exit code = 0 -bash exit code = 100 -Test 46: ❌ exit +"100" -mini exit code = 0 -bash exit code = 100 -Test 47: ❌ exit -100 -mini exit code = 0 -bash exit code = 156 -Test 48: ❌ exit "-100" -mini exit code = 0 -bash exit code = 156 -Test 49: ❌ exit -"100" -mini exit code = 0 -bash exit code = 156 -Test 50: ❌ exit hello + +Test 42: ✅ exit 123 +Test 43: ✅ exit 298 +Test 44: ✅ exit +100 +Test 45: ✅ exit "+100" +Test 46: ✅ exit +"100" +Test 47: ✅ exit -100 +Test 48: ✅ exit "-100" +Test 49: ✅ exit -"100" + +needs a update +Test 50: ❌ exit hello mini exit code = 0 bash exit code = 255 mini error = () bash error = ( numeric argument required) -Test 51: ❌ exit 42 world -mini exit code = 0 + +edge case +Test 51: ❌ exit 42 world +mini exit code = 42 bash exit code = 1 mini error = () bash error = ( too many arguments) -Test 52: ❌ -mini exit code = -bash exit code = 0 +Test 52: ✅ ———————————— pipes -Test 53: ✅ env | sort | grep -v SHLVL | grep -v ^_ -Test 54: ✅ cat ./test_files/infile_big | grep oi -Test 55: ✅ cat minishell.h | grep ");"$ -Test 56: ✅ export GHOST=123 | env | grep GHOST +Test 53: ❌ env | sort | grep -v SHLVL | grep -v ^_ +mini output = (?=0 COLORTERM=truecolor GIT_ASKPASS=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME=/Users/chuhlig LANG=en_US.UTF-8 LOGNAME=chuhlig MallocNanoZone=0 ORIGINAL_XDG_CURRENT_DESKTOP=undefined PATH=/Users/chuhlig/goinfre/.brew/bin:/Users/chuhlig/goinfre/.brew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/Library/Apple/usr/bin:/Users/chuhlig/goinfre/.brew/bin:/Users/chuhlig/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand PWD=/Users/chuhlig/Desktop/minishell/minishell_tester SHELL=/bin/zsh SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8vcs8lnaog/Listeners TERM=xterm-256color TERM_PROGRAM=vscode TERM_PROGRAM_VERSION=1.96.2 TMPDIR=/var/folders/zz/zyxvpxvq6csfxvn_n000ckjr0034mf/T/ USER=chuhlig USER_ZDOTDIR=/Users/chuhlig VSCODE_GIT_ASKPASS_EXTRA_ARGS= VSCODE_GIT_ASKPASS_MAIN=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE=/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) VSCODE_GIT_IPC_HANDLE=/var/folders/zz/zyxvpxvq6csfxvn_n000ckjr0034mf/T/vscode-git-a7f217e79d.sock VSCODE_INJECTION=1 XPC_FLAGS=0x0 XPC_SERVICE_NAME=0 ZDOTDIR=/Users/chuhlig) +bash output = (COLORTERM=truecolor GIT_ASKPASS=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass.sh HOME=/Users/chuhlig LANG=en_US.UTF-8 LOGNAME=chuhlig MallocNanoZone=0 ORIGINAL_XDG_CURRENT_DESKTOP=undefined PATH=/Users/chuhlig/goinfre/.brew/bin:/Users/chuhlig/goinfre/.brew/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/munki:/Library/Apple/usr/bin:/Users/chuhlig/goinfre/.brew/bin:/Users/chuhlig/Library/Application Support/Code/User/globalStorage/github.copilot-chat/debugCommand PWD=/Users/chuhlig/Desktop/minishell/minishell_tester SHELL=/bin/zsh SSH_AUTH_SOCK=/private/tmp/com.apple.launchd.8vcs8lnaog/Listeners TERM=xterm-256color TERM_PROGRAM=vscode TERM_PROGRAM_VERSION=1.96.2 TMPDIR=/var/folders/zz/zyxvpxvq6csfxvn_n000ckjr0034mf/T/ USER=chuhlig USER_ZDOTDIR=/Users/chuhlig VSCODE_GIT_ASKPASS_EXTRA_ARGS= VSCODE_GIT_ASKPASS_MAIN=/Applications/Visual Studio Code.app/Contents/Resources/app/extensions/git/dist/askpass-main.js VSCODE_GIT_ASKPASS_NODE=/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) VSCODE_GIT_IPC_HANDLE=/var/folders/zz/zyxvpxvq6csfxvn_n000ckjr0034mf/T/vscode-git-a7f217e79d.sock VSCODE_INJECTION=1 XPC_FLAGS=0x0 XPC_SERVICE_NAME=0 ZDOTDIR=/Users/chuhlig) +Test 54: ✅ cat ./test_files/infile_big | grep oi +Test 55: ✅ cat minishell.h | grep ");"$ +Test 56: ✅ export GHOST=123 | env | grep GHOST ———————————— redirects -Test 57: ✅ grep hi <./test_files/infile -Test 58: ✅ grep hi "<infile" < ./test_files/infile -Test 59: ✅ echo hi < ./test_files/infile bye bye -Test 60: ✅ grep hi <./test_files/infile_big <./test_files/infile -Test 61: ❌ echo <"./test_files/infile" "bonjour 42" +Test 57: ✅ grep hi <./test_files/infile +Test 58: ✅ grep hi "<infile" < ./test_files/infile +Test 59: ✅ echo hi < ./test_files/infile bye bye +Test 60: ✅ grep hi <./test_files/infile_big <./test_files/infile + + +Test 61: ❌ echo <"./test_files/infile" "bonjour 42" string handling issue mini output = () bash output = (bonjour 42) mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory) bash error = () -Test 62: ❌ cat <"./test_files/file name with spaces" +Test 62: ❌ cat <"./test_files/file name with spaces" mini output = () bash output = (😈 😈 😈 This will break your minishell 😈 😈 😈) mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory) bash error = () -Test 63: ✅ cat <./test_files/infile_big ./test_files/infile -Test 64: ✅ cat <"1""2""3""4""5" -Test 65: ✅ echo <"./test_files/infile" <missing <"./test_files/infile" -Test 66: ✅ echo <missing <"./test_files/infile" <missing -Test 67: ❌ cat <"./test_files/infile" +Test 63: ✅ cat <./test_files/infile_big ./test_files/infile +Test 64: ✅ cat <"1""2""3""4""5" +Test 65: ✅ echo <"./test_files/infile" <missing <"./test_files/infile" +Test 66: ✅ echo <missing <"./test_files/infile" <missing +Test 67: ❌ cat <"./test_files/infile" mini output = () bash output = (hi hello world 42) mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory) bash error = () -Test 68: ❌ echo <"./test_files/infile_big" | cat <"./test_files/infile" +Test 68: ❌ echo <"./test_files/infile_big" | cat <"./test_files/infile" mini output = () bash output = (hi hello world 42) mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory No such file or directory) bash error = () -Test 69: ✅⚠️ echo <"./test_files/infile_big" | cat "./test_files/infile" +Test 69: ✅⚠️ echo <"./test_files/infile_big" | cat "./test_files/infile" mini error = ( No such file or directory) bash error = () -Test 70: ❌ echo <"./test_files/infile_big" | echo <"./test_files/infile" +Test 70: ❌ echo <"./test_files/infile_big" | echo <"./test_files/infile" mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory No such file or directory) bash error = () -Test 71: ❌ echo hi | cat <"./test_files/infile" +Test 71: ❌ echo hi | cat <"./test_files/infile" mini output = () bash output = (hi hello world 42) mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory) bash error = () -Test 72: ✅ echo hi | cat "./test_files/infile" -Test 73: ✅⚠️ cat <"./test_files/infile" | echo hi +Test 72: ✅ echo hi | cat "./test_files/infile" +Test 73: ✅⚠️ cat <"./test_files/infile" | echo hi mini error = ( No such file or directory) bash error = ( Broken pipe) -Test 74: ❌ cat <"./test_files/infile" | grep hello +Test 74: ❌ cat <"./test_files/infile" | grep hello mini output = () bash output = (hello) mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory) bash error = () -Test 75: ✅⚠️ cat <"./test_files/infile_big" | echo hi +Test 75: ✅⚠️ cat <"./test_files/infile_big" | echo hi mini error = ( No such file or directory) bash error = ( Broken pipe) -Test 76: ✅ cat <missing -Test 77: ✅ cat <missing | cat -Test 78: ✅ cat <missing | echo oi -Test 79: ❌ cat <missing | cat <"./test_files/infile" +Test 76: ✅ cat <missing +Test 77: ✅ cat <missing | cat +Test 78: ✅ cat <missing | echo oi +Test 79: ❌ cat <missing | cat <"./test_files/infile" tokenizer check again + mini output = () bash output = (hi hello world 42) mini exit code = 1 bash exit code = 0 -mini error = ( No such file or directory No such file or directory) +mini error = ( No such file or directory No such file or directory) should be esier to find bash error = ( No such file or directory) -Test 80: ✅ echo <123 <456 hi | echo 42 -Test 81: ✅ ls >./outfiles/outfile01 -Test 82: ✅ ls > ./outfiles/outfile01 -Test 83: ✅ echo hi > ./outfiles/outfile01 bye -Test 84: ❌ ls >./outfiles/outfile01 >./outfiles/outfile02 +Test 80: ✅ echo <123 <456 hi | echo 42 +Test 81: ✅ ls >./outfiles/outfile01 +Test 82: ✅ ls > ./outfiles/outfile01 +Test 83: ✅ echo hi > ./outfiles/outfile01 bye + + +check this extra + +Test 84: ❌ ls >./outfiles/outfile01 >./outfiles/outfile02 Only in ./bash_outfiles: outfile01 mini outfiles: README.md @@ -751,12 +748,12 @@ syntax test_files tester wildcards -Test 85: ❌ ls >./outfiles/outfile01 >./test_files/invalid_permission +Test 85: ❌ ls >./outfiles/outfile01 >./test_files/invalid_permission Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory bash outfiles: -Test 86: ❌ ls >"./outfiles/outfile with spaces" +Test 86: ❌ ls >"./outfiles/outfile with spaces" Only in ./bash_outfiles: outfile with spaces mini outfiles: cat: ./mini_outfiles/*: No such file or directory @@ -784,7 +781,7 @@ mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory) bash error = () -Test 87: ❌ ls >"./outfiles/outfile""1""2""3""4""5" +Test 87: ❌ ls >"./outfiles/outfile""1""2""3""4""5" Only in ./bash_outfiles: outfile12345 mini outfiles: cat: ./mini_outfiles/*: No such file or directory @@ -812,15 +809,15 @@ mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory) bash error = () -Test 88: ❌ ls >"./outfiles/outfile01" >./test_files/invalid_permission >"./outfiles/outfile02" +Test 88: ❌ ls >"./outfiles/outfile01" >./test_files/invalid_permission >"./outfiles/outfile02" Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory bash outfiles: mini error = ( No such file or directory) bash error = ( Permission denied) -Test 89: ✅ ls >./test_files/invalid_permission >"./outfiles/outfile01" >./test_files/invalid_permission -Test 90: ❌ cat <"./test_files/infile" >"./outfiles/outfile01" +Test 89: ✅ ls >./test_files/invalid_permission >"./outfiles/outfile01" >./test_files/invalid_permission +Test 90: ❌ cat <"./test_files/infile" >"./outfiles/outfile01" Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory @@ -833,28 +830,28 @@ mini exit code = 1 bash exit code = 0 mini error = ( No such file or directory) bash error = () -Test 91: ✅ echo hi >./outfiles/outfile01 | echo bye -Test 92: ❌ echo hi >./outfiles/outfile01 >./outfiles/outfile02 | echo bye +Test 91: ✅ echo hi >./outfiles/outfile01 | echo bye +Test 92: ❌ echo hi >./outfiles/outfile01 >./outfiles/outfile02 | echo bye Only in ./bash_outfiles: outfile01 mini outfiles: hi bash outfiles: hi -Test 93: ✅ echo hi | echo >./outfiles/outfile01 bye -Test 94: ❌ echo hi | echo bye >./outfiles/outfile01 >./outfiles/outfile02 +Test 93: ✅ echo hi | echo >./outfiles/outfile01 bye +Test 94: ❌ echo hi | echo bye >./outfiles/outfile01 >./outfiles/outfile02 Only in ./bash_outfiles: outfile01 mini outfiles: bye bash outfiles: bye -Test 95: ✅ echo hi >./outfiles/outfile01 | echo bye >./outfiles/outfile02 -Test 96: ❌ echo hi >./outfiles/outfile01 >./test_files/invalid_permission | echo bye +Test 95: ✅ echo hi >./outfiles/outfile01 | echo bye >./outfiles/outfile02 +Test 96: ❌ echo hi >./outfiles/outfile01 >./test_files/invalid_permission | echo bye Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory bash outfiles: -Test 97: ✅ echo hi >./test_files/invalid_permission | echo bye -Test 98: ❌ echo hi >./test_files/invalid_permission >./outfiles/outfile01 | echo bye +Test 97: ✅ echo hi >./test_files/invalid_permission | echo bye +Test 98: ❌ echo hi >./test_files/invalid_permission >./outfiles/outfile01 | echo bye Only in ./mini_outfiles: outfile01 mini outfiles: hi @@ -862,8 +859,8 @@ bash outfiles: cat: ./bash_outfiles/*: No such file or directory mini error = () bash error = ( Permission denied) -Test 99: ✅ echo hi | echo bye >./test_files/invalid_permission -Test 100: ❌ echo hi | >./outfiles/outfile01 echo bye >./test_files/invalid_permission +Test 99: ✅ echo hi | echo bye >./test_files/invalid_permission +Test 100: ❌ echo hi | >./outfiles/outfile01 echo bye >./test_files/invalid_permission Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory @@ -872,7 +869,10 @@ mini exit code = 139 bash exit code = 1 mini error = () bash error = ( Permission denied) -Test 101: ❌ echo hi | echo bye >./test_files/invalid_permission >./outfiles/outfile01 + +update for this. + +Test 101: ❌ echo hi | echo bye >./test_files/invalid_permission >./outfiles/outfile01 Only in ./mini_outfiles: outfile01 mini outfiles: bye @@ -882,32 +882,32 @@ mini exit code = 0 bash exit code = 1 mini error = () bash error = ( Permission denied) -Test 102: ✅⚠️ cat <"./test_files/infile" >./test_files/invalid_permission +Test 102: ✅⚠️ cat <"./test_files/infile" >./test_files/invalid_permission mini error = ( No such file or directory) bash error = ( Permission denied) -Test 103: ✅⚠️ cat >./test_files/invalid_permission <"./test_files/infile" +Test 103: ✅⚠️ cat >./test_files/invalid_permission <"./test_files/infile" mini error = ( No such file or directory) bash error = ( Permission denied) -Test 104: ✅ cat <missing >./outfiles/outfile01 -Test 105: ❌ cat >./outfiles/outfile01 <missing +Test 104: ✅ cat <missing >./outfiles/outfile01 +Test 105: ❌ cat >./outfiles/outfile01 <missing Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory bash outfiles: -Test 106: ✅ cat <missing >./test_files/invalid_permission -Test 107: ✅⚠️ cat >./test_files/invalid_permission <missing +Test 106: ✅ cat <missing >./test_files/invalid_permission +Test 107: ✅⚠️ cat >./test_files/invalid_permission <missing mini error = ( No such file or directory) bash error = ( Permission denied) -Test 108: ❌ cat >./outfiles/outfile01 <missing >./test_files/invalid_permission +Test 108: ❌ cat >./outfiles/outfile01 <missing >./test_files/invalid_permission Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory bash outfiles: -Test 109: ✅ ls >>./outfiles/outfile01 -Test 110: ✅ ls >> ./outfiles/outfile01 -Test 111: ✅ ls >>./outfiles/outfile01 >./outfiles/outfile01 -Test 112: ✅ ls >./outfiles/outfile01 >>./outfiles/outfile01 -Test 113: ❌ ls >./outfiles/outfile01 >>./outfiles/outfile01 >./outfiles/outfile02 +Test 109: ✅ ls >>./outfiles/outfile01 +Test 110: ✅ ls >> ./outfiles/outfile01 +Test 111: ✅ ls >>./outfiles/outfile01 >./outfiles/outfile01 +Test 112: ✅ ls >./outfiles/outfile01 >>./outfiles/outfile01 +Test 113: ❌ ls >./outfiles/outfile01 >>./outfiles/outfile01 >./outfiles/outfile02 Only in ./bash_outfiles: outfile01 mini outfiles: README.md @@ -949,7 +949,7 @@ syntax test_files tester wildcards -Test 114: ❌ ls >>./outfiles/outfile01 >>./outfiles/outfile02 +Test 114: ❌ ls >>./outfiles/outfile01 >>./outfiles/outfile02 Only in ./bash_outfiles: outfile01 mini outfiles: README.md @@ -991,8 +991,8 @@ syntax test_files tester wildcards -Test 115: ✅ ls >>./test_files/invalid_permission -Test 116: ❌ ls >>./test_files/invalid_permission >>./outfiles/outfile01 +Test 115: ✅ ls >>./test_files/invalid_permission +Test 116: ❌ ls >>./test_files/invalid_permission >>./outfiles/outfile01 Only in ./mini_outfiles: outfile01 mini outfiles: README.md @@ -1020,12 +1020,12 @@ mini exit code = 0 bash exit code = 1 mini error = () bash error = ( Permission denied) -Test 117: ❌ ls >>./outfiles/outfile01 >>./test_files/invalid_permission +Test 117: ❌ ls >>./outfiles/outfile01 >>./test_files/invalid_permission Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory bash outfiles: -Test 118: ❌ ls >./outfiles/outfile01 >>./test_files/invalid_permission >>./outfiles/outfile02 +Test 118: ❌ ls >./outfiles/outfile01 >>./test_files/invalid_permission >>./outfiles/outfile02 Only in ./bash_outfiles: outfile01 Only in ./mini_outfiles: outfile02 mini outfiles: @@ -1053,27 +1053,27 @@ mini exit code = 0 bash exit code = 1 mini error = () bash error = ( Permission denied) -Test 119: ✅ ls <missing >>./test_files/invalid_permission >>./outfiles/outfile02 -Test 120: ✅⚠️ ls >>./test_files/invalid_permission >>./outfiles/outfile02 <missing +Test 119: ✅ ls <missing >>./test_files/invalid_permission >>./outfiles/outfile02 +Test 120: ✅⚠️ ls >>./test_files/invalid_permission >>./outfiles/outfile02 <missing mini error = ( No such file or directory) bash error = ( Permission denied) -Test 121: ✅ echo hi >>./outfiles/outfile01 | echo bye -Test 122: ❌ echo hi >>./outfiles/outfile01 >>./outfiles/outfile02 | echo bye +Test 121: ✅ echo hi >>./outfiles/outfile01 | echo bye +Test 122: ❌ echo hi >>./outfiles/outfile01 >>./outfiles/outfile02 | echo bye Only in ./bash_outfiles: outfile01 mini outfiles: hi bash outfiles: hi -Test 123: ✅ echo hi | echo >>./outfiles/outfile01 bye -Test 124: ❌ echo hi | echo bye >>./outfiles/outfile01 >>./outfiles/outfile02 +Test 123: ✅ echo hi | echo >>./outfiles/outfile01 bye +Test 124: ❌ echo hi | echo bye >>./outfiles/outfile01 >>./outfiles/outfile02 Only in ./bash_outfiles: outfile01 mini outfiles: bye bash outfiles: bye -Test 125: ✅ echo hi >>./outfiles/outfile01 | echo bye >>./outfiles/outfile02 -Test 126: ✅ echo hi >>./test_files/invalid_permission | echo bye -Test 127: ❌ echo hi >>./test_files/invalid_permission >./outfiles/outfile01 | echo bye +Test 125: ✅ echo hi >>./outfiles/outfile01 | echo bye >>./outfiles/outfile02 +Test 126: ✅ echo hi >>./test_files/invalid_permission | echo bye +Test 127: ❌ echo hi >>./test_files/invalid_permission >./outfiles/outfile01 | echo bye Only in ./mini_outfiles: outfile01 mini outfiles: hi @@ -1081,149 +1081,103 @@ bash outfiles: cat: ./bash_outfiles/*: No such file or directory mini error = () bash error = ( Permission denied) -Test 128: ✅ echo hi | echo bye >>./test_files/invalid_permission -Test 129: ❌ echo hi | echo >>./outfiles/outfile01 bye >./test_files/invalid_permission +Test 128: ✅ echo hi | echo bye >>./test_files/invalid_permission +Test 129: ❌ echo hi | echo >>./outfiles/outfile01 bye >./test_files/invalid_permission Only in ./bash_outfiles: outfile01 mini outfiles: cat: ./mini_outfiles/*: No such file or directory bash outfiles: -Test 130: ✅ cat <minishell.h>./outfiles/outfile -Test 131: ✅ cat <minishell.h|ls +Test 130: ✅ cat <minishell.h>./outfiles/outfile +Test 131: ✅ cat <minishell.h|ls ———————————— extras -Test 132: ❌ -mini exit code = -bash exit code = 0 +Test 132: ✅ - -Test 133: ❌ $PWD +udpate this +Test 133: ❌ $PWD mini exit code = 1 bash exit code = 126 mini error = ( Permission denied) bash error = ( is a directory) - - -Test 134: ❌ $EMPTY +Test 134: ❌ $EMPTY mini exit code = 1 bash exit code = 0 mini error = ( Permission denied) bash error = () - -Test 135: ❌ $EMPTY echo hi +Test 135: ❌ $EMPTY echo hi mini output = () bash output = (hi) mini exit code = 1 bash exit code = 0 mini error = ( Permission denied) bash error = () -Test 136: ❌ ./test_files/invalid_permission -mini output = (./test_files/invalid_permission: command not found) +Test 136: ❌ ./test_files/invalid_permission +mini output = (command not found) bash output = () mini exit code = 1 bash exit code = 126 mini error = () bash error = ( Permission denied) -Test 137: ❌ ./missing.out -mini output = (./missing.out: command not found) +Test 137: ❌ ./missing.out +mini output = (command not found) bash output = () mini exit code = 1 bash exit code = 127 mini error = () bash error = ( No such file or directory) - - -Test 138: ❌ missing.out -mini output = (missing.out: command not found) +Test 138: ❌ missing.out +mini output = (command not found) bash output = () mini exit code = 1 bash exit code = 127 mini error = () bash error = ( command not found) - - -Test 139: ❌ "aaa" -mini output = (aaa: command not found) +Test 139: ❌ "aaa" +mini output = (command not found) bash output = () mini exit code = 1 bash exit code = 127 mini error = () bash error = ( command not found) - - -Test 140: ❌ test_files -mini output = (test_files: command not found) +Test 140: ❌ test_files +mini output = (command not found) bash output = () mini exit code = 1 bash exit code = 127 mini error = () bash error = ( command not found) -Test 141: ❌ ./test_files +Test 141: ❌ ./test_files mini exit code = 1 bash exit code = 126 mini error = ( Permission denied) bash error = ( is a directory) - - -Test 142: ❌ /test_files +Test 142: ❌ /test_files mini exit code = 1 bash exit code = 127 - -Test 143: ❌ minishell.h -mini output = (minishell.h: command not found) +Test 143: ❌ minishell.h +mini output = (command not found) bash output = () mini exit code = 1 bash exit code = 127 mini error = () bash error = ( command not found) -Test 144: ❌ $ +Test 144: ❌ $ +mini output = (command not found) +bash output = () mini exit code = 1 bash exit code = 127 mini error = () bash error = ( command not found) -Test 145: ❌ $? +Test 145: ❌ $? +mini output = (command not found) +bash output = () mini exit code = 1 bash exit code = 127 -mini error = ( Permission denied) +mini error = () bash error = ( command not found) -Test 146: ❌ README.md -mini output = (README.md: command not found) +Test 146: ❌ README.md +mini output = (command not found) bash output = () mini exit code = 1 bash exit code = 127 mini error = () -bash error = ( command not found) -74/146 -😭 😭 😭 -Collapse - - - - -1 - - - - - - - - - - - - -Message dkaiser - - - - - - - - - -Shift + Return to add a new line - - - - -Slack needs your permission to enable notifications. Enable notifications
\ No newline at end of file +bash error = ( command not found)
\ No newline at end of file |
