I have stored all test case in the folder testScripts. By typing ./osh -t < testScripts/eachtestcase.txt, you can test each of them
a/ To test each command:
make ./osh
b/ To run with test scripts and seeing the comand prompt osh>:
make ./osh < testScripts
c/ To run with test scripts but not seeing the comand prompt osh>:
make ./osh -t < testScripts
There are not so many problem when i am doing this programming assignments with the implemented folder osh-parser/ since the only problem for me is to read and understand each function like pipe(), fork() or dup2() carefully to utilize them correctly. However, before using osh-parser/, i have struggled a lot when using the folder PA1/ since this only help me to parser command. Everything else like creating an infinite loop, identify malfromed commands or doing MAkefile, i will have to do it on my own.
611ce87b10b522e544fe3e76047063cb215ba559