A bash-inspired shell created in part through CodeCrafters build-your-own-shell challenge.
You need the readline headers installed on your system (e.g. libreadline-dev on Ubuntu, readline on Arch)
git clone https://github.com/Haerbernd/jsh.git jsh
cd jsh
cmake -S . -B build
cmake --build buildIf you also want to run the test:
ctest --test-dir build --output-on-failure- move all
.hfiles insrc/includetosrc - run
g++ src/main.cpp src/builtins.cpp src/completion.cpp src/os.cpp -lreadline
For now jsh is in a pre-release state. While it works, I want to implement the following functionalities before I make a first release (version 1.0.0.0):
- Appending STDOUT/STDERR to a file (1>>/2>>)
- Pipelines
- Some missing parts of command history
I plan to add them all before the end of January. When all of the above are implemented jsh will pass all stages of the CodeCrafters build-your-own-shell challenge that inspired/started this project.
When this is achieved I will start adding more tests (mostly unit tests) and documentation. I will then start to think about more features and about the possibility of Windows support.