Name: Muhammad Huzaifa Elahi
Ubuntu
gcc -c shell.c interpreter.c shellmemory.c
gcc -o mysh shell.o interpreter.o shellmemory.o
./mysh
| Command (case sensitive) | Description |
|---|---|
| help | Displays all the commands |
| quit | Exits / terminates the shell with "Bye!" |
| set VAR STRING | Assigns a value to shell memory |
| print VAR | Displays the STRING assigned to VAR |
| run SCRIPT.TXT | Executes the file SCRIPT.TXT |
- File recursion beyond a limit will cause an error to prevent memory overload
- Running quit inside a script will exit the script, not the shell