Skip to content

A shell built for CPRE 308 at ISU that will hopefully not crash

Notifications You must be signed in to change notification settings

ntuckertriplet/crash

Repository files navigation

crash, the shell that hopefully doesn't crash

compilation instructions

  1. simply type make
  2. run with ./crash

todo

  • assign prompt if passed in
  • leave default if not
  • print error if flag is used, but with no prompt
  • accept user input
  • parse commands and flags
  • program commands (using execvp())
  • notify user if command is not found
  • print pid of command when spawned, including name of command
  • wait for child to exit by default
  • when a child process exits, print out the pid and exit status // possible segfault
  • backgrounding tasks
  • exit
  • pid
  • ppid
  • cd
  • cd <dir>
  • pwd

extra credit

  • jobs command

things i added (or want to add) not in the spec

  • get env vars
  • set env vars
  • file redirects
  • pipes

About

A shell built for CPRE 308 at ISU that will hopefully not crash

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published