Skip to content

Implementation of unix based os shell for self studying purpose

Notifications You must be signed in to change notification settings

daniel4x/fastshell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

fastshell

fastshell is an implementation of unix based os shell. I made this shell for self studying purpose using this excellent tutorial. fastshell is written in c. The code run and tested on OS X.

Compile and run

Compile fastshell with gcc:
gcc fast.c -o fast

Additional information

  • Currently implemented the following internal shell commands: cd, help and exit.
  • External commands can also be executed, that thanks to fast_launch method. As part of learning how shell works i used fork() and exec() methodology in order to execute a different processes and wait them to finish.

fastshell routine

fastshell has a standard shell routine:

  • get user input: fast_read_line();
  • parse user input: fast_parse_line(line);
  • execute the command: fast_execute(args);

Feel free to create a pull request & code review :)

About

Implementation of unix based os shell for self studying purpose

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages