https://github.com/skryvvara/rsh
RSH is a simple shell written in c following Stephen Brennan's LSH tutorial "Write a Shell in C". This is not a feature rich shell and is in no way a replacement for mature shells like bash or zsh.
https://github.com/skryvvara/rsh
clang shell
Last synced: 10 months ago
JSON representation
RSH is a simple shell written in c following Stephen Brennan's LSH tutorial "Write a Shell in C". This is not a feature rich shell and is in no way a replacement for mature shells like bash or zsh.
- Host: GitHub
- URL: https://github.com/skryvvara/rsh
- Owner: Skryvvara
- License: mit
- Created: 2024-07-20T14:22:34.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-08-01T10:11:11.000Z (almost 2 years ago)
- Last Synced: 2024-08-01T11:40:05.561Z (almost 2 years ago)
- Topics: clang, shell
- Language: C
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RSH (Raccoon Shell) - A simple shell written in c
## Description
RSH is a simple shell written in c following [Stephen Brennan's](https://brennan.io) LSH tutorial ["Write a Shell in C"](https://brennan.io/2015/01/16/write-a-shell-in-c/). This is not a feature rich shell and is in no way a replacement for mature shells like bash or zsh.
## Build
You can build rsh using cmake, first verify that cmake and a c compiler is installed.
```sh
cmake --version
#cmake version 3.30.0
#
#CMake suite maintained and supported by Kitware (kitware.com/cmake).
clang --version
#Apple clang version 15.0.0 (clang-1500.3.9.4)
#Target: arm64-apple-darwin23.5.0
#Thread model: posix
#InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
```
now run the steps below to compile and run the code
```sh
mkdir build
cd build
cmake ..
make
./rsh
```
## License
Gossht is licensed under the [MIT License](https://opensource.org/license/mit).