tags:

views:

455

answers:

2

This would be great for educational purposes. Also a tutorial on subject would be nice.

+5  A: 

Maybe this is what you want: Writing Your Own Shell

Node
+1  A: 

I started one here, which was later improved an incorporated into HelenOS as 'bdsh' , the 'brain dead shell'.

It does no expansion, no job control, but its a start. Disclaimer, I wrote it in a couple of weeks so that HelenOS could test persistent file systems interactively, at the time FAT support was still brewing and a BSD licensed 'busybox' was needed.

But, its got readline / editline support, modules, builtins, etc .. and lets you navigate around.

Others to check out (much better than mine) would be mksh or Dash.

Tim Post