Standard UNIX Shell
A simplified version of the UNIX shell.
sudo apt get install gcc-9 g++-9
It is recommended you use VSCode as your code editor and install the CMake and the CMake tools externsion. The following steps detail how to build the project in CMake.
Ctrl+Shift+P
, type CMake: Set Built Target
and set this to ‘all’Ctrl+Shift+P
, type CMake: Configure
and press enter.Ctrl+Shift+P
, type CMake: Build
and press enter.After building, the executable wish
should appear in your project root directory. You can run this executable in two modes:
./wish
in the project root directory, to start the shell in interactive mode. The shell will process commands one by one based on your input in this mode../wish path/to/batch/file
in the project root directory.The shell provides three commands for managing the shell:
Usage: cd "path/to/dest/directory"
Like the original UNIX command cd
, you can use this to change the current active directory of the shell.Usage: exit
To stop the shell’s execution, simply type exit
without any arguments into the shell.Usage: path [path1 | path2 | path3 | ...]
Similar to the original UNIX path
. Use this to edit the default command path for the shell to look for executables in. If left empty, path
is set to NULL
and you won’t be able to execute any commands except the shell’s inbuilt commands.Press Ctrl+Shift+P
, type CMake: Run Tests
and press enter.