Link to home
Start Free TrialLog in
Avatar of kaf
kaf

asked on

Lightweight noninteractive shell

Hi. I have next problem. I must execute a lot of shell
scripts on low memory computer (4Mb). bash is very big for
this task and have unnecessery possibilities (readline, job
control etc). At this time i find only one simple shell
for scripts evaluating - ash. It have 50Kb text body.
I try find source code for bourne shell (not bourne again shell), but failed.
ASKER CERTIFIED SOLUTION
Avatar of ggeens
ggeens

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ggeens
ggeens

You could try kiss (keep it simple shell). I believe it's in the same directory I mentioned before. It has a lot of builtin functions (this can save you from running some other binaries).
You can compile it without any command line editing, yielding a rather small binary. (I don't recall the exact size.)
Avatar of kaf

ASKER

kiss is good simple shell for resque disks, but it cannot
execute control construction;
for, while, if, etc...

I guess that leaves only ash.