This is a simple command shell written in c++. So far it takes in user input and attempts to parse it as the appropriate system call. It should be able to handle comments, 'AND' and 'OR' connectors, and multiple simultaneous commands ('#', '&&', '||', and ';').
HEY WHATS UP BOYS GONNA ADD ME SOME REDIRECTION (SOONtm)
- git clone http://github.com/shinray/rshell.git
- cd rshell
- git checkout hw0
- make
- bin/rshell
none yet I think
exit
to quit- anything after
#
should be considered a comment and ignored - multiple commands can be input at once using:
- ls ; echo (will run ls followed by echo)
- ls && echo (will attempt to run ls; echo will run iff ls is successful)
- ls || echo (will attempt to run ls; echo will run iff ls fails)
- i am an incompetent moron
- not finished yet
- SEND HELP
- NEW: added own ls function
- ls function does not yet have support for -R
- ls function currently only works with current directory (aka bin/ls)
&
is considered a connector and is regex'd out.- piping '|' works, but certain combinations of piping and redirection fail to create new files when necessary
- redirecting < and > and >> to an empty file "" causes segfault