Skip to content

hungpchu/A-Unix-Shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Writing-a-Unix-Shell

1 Compile, Run, and Test program:

1.1 Compile and Run

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

4 Problems when doing PA1:

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

Designing-a-Virtual-Memory-Manager

About

A shell interface that accepts user commands and then executes each command.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors