Skip to content

a basic program that reads, parses and executes single line commands

Notifications You must be signed in to change notification settings

sercantor/basic_shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Project Description

  • A very simple program that follows the principle of a simple shell, it reads stdin, parses the command, and executes with execvp.
  • Before it executes, it forks the process.
  • You can install it by cloning this project and simply typing make to console.

TODO

  • Adding cd as a built-in command
  • Interpreter sign doesn't work, fix that
  • In the main file, the function usage is wonky, find a better way around that
  • Need to find a better way to implement built-in commands
  • ctrl+d (EOF) doesn't work, because we dont use while(getline >0), I have to find a better implementation
  • If I can find a way, I want to add pipes
  • Provide more comments to easily explain the program
  • Adding redirection, although it's way easier than pipes

About

a basic program that reads, parses and executes single line commands

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published