https://github.com/winterrdog/jsh
A simple implementation of a Unix shell like Bash or Fish or ZSH
https://github.com/winterrdog/jsh
Last synced: 6 months ago
JSON representation
A simple implementation of a Unix shell like Bash or Fish or ZSH
- Host: GitHub
- URL: https://github.com/winterrdog/jsh
- Owner: winterrdog
- License: mit
- Created: 2022-11-21T10:37:26.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2022-11-21T10:50:26.000Z (about 3 years ago)
- Last Synced: 2025-03-21T13:54:15.602Z (10 months ago)
- Language: C
- Size: 5.86 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# jSH
A simple implementation of a Unix shell, like Bash or Fish or ZSH, in C.
It demonstrates the basics of how a shell works.
That is: read, parse, fork, exec, and wait. Since its purpose is demonstration, it has a lot
limitations, including:
* Commands must be on a single line :(.
* Arguments must be separated by whitespace.
* No quoting arguments or escaping whitespace.
* No piping or redirection.
* Only builtins are: `cd`, `help`, `exit`.
# Running
Use `make` to compile, and then `./jsh` to run.
# Contributing
Any pull requests that are related to bug fixes or feature implementations (and I'm sure there are still bugs in the
code!) are welcome with open arms :).
However, in the meantime, you can play with the code, make changes,
and explore new features! That's the whole point of this project! It's just
that other people are doing the same thing, and this project is might be a
starting point for your own exploration.
# License
This code is under MIT license.