https://github.com/noobjsperson/gccsh
use C in the shell
https://github.com/noobjsperson/gccsh
Last synced: 5 months ago
JSON representation
use C in the shell
- Host: GitHub
- URL: https://github.com/noobjsperson/gccsh
- Owner: NoobJsPerson
- Created: 2023-12-08T18:51:57.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-12-17T16:55:56.000Z (over 2 years ago)
- Last Synced: 2023-12-17T17:49:45.018Z (over 2 years ago)
- Language: C
- Size: 2.93 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# gccsh
use C in the shell (WIP)
### features
- execute C code in a shell-like environment
- familiar builtins like `chdir` and `exit`
- `gccsh_profile` file gets ran whenever you run a command and it gets placed in the main function. you can add functions in it to be always defined when you run any command.
- `cmd` builtin allows you to run a command in the default shell and returns the output.
- the `GCCSH_VERSION` environment variable while the program is running
### known issues
- can only use `chdir` and `exit` properly once and it will always run before the rest of the code
### credits
- This program is inspired and based off [Stephen Brennan's LSH](https://github.com/brenns10/lsh). You can checkout his tutorial [here](https://brennan.io/2015/01/16/write-a-shell-in-c/)