Skip to content

erees1/shell

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shell

A simple shell implemented in cpp.

I've only implemented a limited subset of functionality:

  • cd to change directory
  • | to pipe output of one command to another
  • > to redirect output of one command to a file
  • < to redirect input of one command to a file
  • >> to append output of one command to a file
  • & to run a command in the background. (fg to bring it back to the foreground not yet implemented)
  • ~ expands to $HOME
  • ctrl-c sends SIGINT to the child processes
  • use " to escape spaces in arguments
  • Quit with ^D.

Notable omissions:

  • ; to run multiple commands in sequence
  • && and || to run commands conditionally
  • globbing
  • * and ? expansion

To compile

make compile

To run

build/shell

About

A basic shell in cpp

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published