Skip to content

Landixbtw/oshell

Repository files navigation

oshell

Todo

Key features

  • Show a prompt indicating user input e.g. > ✅
  • Read a command entered by the user e.g. ping google.com ✅
  • fork() for every user command ✅
  • wait() for the command to finish executing ✅
  • builtin commands like cd exit help, without calling external programms ✅
  • Error handling -- meh kinda most minimal, not extensive
  • redirect output with xx > output.txt ✅

Environment Variables

  • echo $USER should yield the user (ie. ole), with getenv()

MVP

  • read a system command parse it and execute it

Maybe some good stuff in here.
https://pdos.csail.mit.edu/6.828/2018/labguide.html
https://barsky.ca/marina/SR/c2018/lectures/7.pipe/06.01.FileDescriptorsPipes.pdf

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published