sh: correct end and use sbrk() rather than v7 linkages
authorAlan Cox <alan@linux.intel.com>
Sat, 16 May 2015 20:39:04 +0000 (21:39 +0100)
committerAlan Cox <alan@linux.intel.com>
Sat, 16 May 2015 20:39:04 +0000 (21:39 +0100)
commita8f425877d6773a9d14099599b22f3f799fa19b4
tree29d8fe1187db6159ba0fa1e265ad29aad4ea3afc
parenta8bb80622894077537ef88b1dab0e80c62cc3984
sh: correct end and use sbrk() rather than v7 linkages

With this change the v7 Bourne shell now runs, even on 32K userspace boxes.

Later she added quite a few things (see
http://heirloom.cvs.sourceforge.net/heirloom/heirloom-sh/) however most of
those are memory expensive.

Probably we should add the use of '#' as a comment character as this is
nowdays considered normal.

Of the other features - an external test suits our memory size better,
while the later builtins aren't that useful and again have size issues. Only
unset cannot be external and might be useful.

Of the late features it might be nice to get 8bit clean

-
Applications/V7/cmd/sh/blok.c
Applications/V7/cmd/sh/defs.h
Applications/V7/cmd/sh/glob.c
Applications/V7/cmd/sh/main.c