This project contains the rudimentary foundation for a shell. While limited, it can execute a number of bash commands with proper arguments, syntax, and connector operations.
- Can execute a plethora of bash commands: echo, ls, pwd, touch, etc.
- Supports arguments for commands. EG: ls -a
- Supports operations to connect expressions, such as ||, &&, and ;
- These operations are evaluated from left to right and work just like bash operations.
Download and install the g++ compiler online. Afterwards, go to your terminal in Linux (alt ctrl t for ubuntu), and enter the following (without the numbers):
1) git clone http://github.com/jmoon018/rshell.git
2) cd rshell
3) git checkout hw0
4) make
5) bin/rshell
- There can't be more than one space at a time. For example: "echo [insert whitespace] x" is the same as "echo x"
- The $ prompt won't display properly if the enter button is spammed, but this was reproduced in the bash terminal, too.
Please contact me at [email protected] if you have any questions or if you find any unlisted bugs in the code. Thanks.