Simple implementation of a posix unix shell in C. I plan to support while, for, if, and elif.
Chris Dorman 95bd87a73b Added simple script parsing function | %!s(int64=4) %!d(string=hai) anos | |
---|---|---|
src | %!s(int64=4) %!d(string=hai) anos | |
.gitignore | %!s(int64=4) %!d(string=hai) anos | |
Makefile | %!s(int64=4) %!d(string=hai) anos | |
README.md | %!s(int64=4) %!d(string=hai) anos | |
test.sh | %!s(int64=4) %!d(string=hai) anos |
CDSH is a simple implementation of a shell in C, and Since its purpose is demonstration (not feature completeness or even fitness for casual use), it has many limitations, including:
cd
, help
, exit
.As of forking this open domain source, I wanted to give it more functionality. I do plan to give this the ability to be scripted and further as well has allowing some customization to the prompt, and per user file. I also plan to form processing of for, while, and if statements.
Simple top down script parsing functions
make; make install
cdsh &
Go from there!
CDSH is relicensed under LGPLv2 - Chris Dorman maintained!
This code is in the public domain (see UNLICENSE for more details). This means you can use, modify, and distribute it without any restriction. I appreciate, but don't require, acknowledgement in derivative work.