https://github.com/kdkasad/kshell
A toy shell written in C
https://github.com/kdkasad/kshell
c shell unix-shell
Last synced: about 2 months ago
JSON representation
A toy shell written in C
- Host: GitHub
- URL: https://github.com/kdkasad/kshell
- Owner: kdkasad
- Created: 2024-06-04T20:50:42.000Z (about 2 years ago)
- Default Branch: master
- Last Pushed: 2024-06-04T21:46:52.000Z (about 2 years ago)
- Last Synced: 2025-12-26T17:47:39.821Z (6 months ago)
- Topics: c, shell, unix-shell
- Language: C
- Homepage: https://git.kasad.com/kshell/about/
- Size: 36.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# $ kshell
A toy shell written in C.
## Getting kshell
1. Clone the repository.
2. Run `make` to build the shell.
3. `./kshell`
Optionally, run `make install` to install `kshell`.
## Features
- Executing commands
- Environment variable expansion (e.g. `$FOO` and `${FOO}`)
- Setting environment variables (e.g. `FOO=bar`)
- Caveat: quotes are expanded literally, so `FOO=bar` != `FOO="bar"`
- Custom prompt using `$PS1` variable (only literal values, though)