Skip to content

andrewfwalters/myShell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

myShell

Terminal Interface for UNIX

Pair Programmed by Andrew Walters and Matthew Thorp

The primary control structure of the shell is an infinite loop that

  • reads input from STDIN
  • checks for specific inputs such as "exit" which will break out of loop
  • parses the input in to tokens, or space separated strings
  • prepares an array of tokens to be passed into a function
  • forks the process, creating a child process that can run in the background or foreground

The shell also handles signals

  • CTRL+C (SIG_IGN) kills the currently executing child process, but not the shell
  • CTRL+Z (SIGTSTP) suspends the currently executing child process but allows the shell to continue execution

Future improvements to this project include

  • A handler for "cd"
  • Movement of code from main into functions for readability and troubleshooting

About

A terminal for unix systems

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages