RShell is meant to be a basic implementation of the Bash shell written in C++. Utilizing the execvp function RShell can execute commands found in /bin.
git clone https://github.com/aorti017/rshell.gitcd rshellmakebin/rshell
- Multiple commands can be stirnged together on a single line by using the
&&,||, or;connectors. - Connecting multiple commands by
&&will cause commands to execute only if the command prior was successful. - Connecting multiple commands by
||will cause commands to execute only if the command prior was not successful. - Connecting multiple commands by
;will cause command to execute regardless of if the prior command was successful. - Using more than one type of connector per line will result in a
Multiple connector types forbiddenerror message. - Excess connectors inserted in the front of a command line, in between commands, or at the end of a command line will be ignored.
- Comments can be inserted using
#, anything after#will be interpreted as a comment. - The
exitcommand will exit RShell upon execution.
- Does not support the functionality of quotation marks with commands like
echo. - Does not support input redirection.
- Using connectors as part of or the parameter for a command may cause the command to not execute properly, if at all.
- When using
&&connectors if any extra (more than 1) of these connectors are inserted in between any two commands, or in the front of the command line, and any of the said extra connectors are seperated by a space any command after the excess connectors will not execute. &and|are interpreted as&&and||, respectively.