C-Shell
A simple shell written in C.
|
A shell written in C. For educational purposes. View Source.
Here's what happens when you write something and press enter after the prompt:
;
into two jobs (also known as pipelines or process groups).&
at the end of a job will run the pipeline in the background.sleep 5
in the background.echo "Hello, World!" | wc -c
.|
into a series of commands.echo "Hello, World!"
.wc -c
.cd
, cls
, exit
and jobs
are executed in the top-level shell process due to their nature. cd ..
will change the directory of the shell process.exit
will exit the shell process.>
, >>
and <
must be space separated from the command and the file name. echo "Hello, World!" > file.txt
is valid.echo "Hello, World!">file.txt
is invalid.This project has a .editorconfig file to enforce project level coding standards.
CLion has built-in support, VSCode requires a plugin.
This project requires CMake to build. Your IDE (VSCode or CLion) should automatically detect the CMakeLists.txt file and build the project. Install extensions for CMake support if prompted.
If you are using the command line, you can run the following commands:
This project uses Doxygen to generate documentation.
If Doxygen is available on your system,
You can generate the documentation by running the following command:
This repository also has an automated workflow to generate documentatation via Github Actions.
The generated documentation can be viewed at /docs.
A good starting point to explore the codebase is the file listing page. (files.html if you are viewing this in a browser)