BSD 4 release
[unix-history] / usr / src / cmd / oldcsh / READ_ME
CommitLineData
b898b9e0
BJ
1Thu Apr 19 12:17:29 PST 1979
2
3This shell needs a printf which prints through putchar like it used to.
4The printf.c in this dir hacks one from the stdio printf without dragging
5in all the stdio stuff. It should work on most systems which only have stdio.
6Some early versions of stdio have a "strout" whose first 2 arguments are
7reversed. Check this before you run the shell.
8
9The getpw*.c stuff here is simply to keep from dragging in all the data space
10from the stdio stuff (an input buffer, output buffer, file structs, etc)
11since the shell does its own i/o anyways because of the way
12it parses in loops. If you don't care about more data space you dont need
13to take these.
14
15For the debugging "alloc" command to work it needs to work its
16way through the alloc list. A modified version of alloc which does this
17is in this directory. If you wish you can simply get rid of the "alloc"
18command and not define "debug" in makefile.
19
20For the shell to coexist with another shell you can define OTHERSH
21in sh.local.h as, e.g. "/bin/sh". If a file which purports to be a shell
22script doesn't start with a `#' this other shell interprets it.
23If necessary a longer string than just `#' could easily be used.
24If OTHERSH is not defined then this hack doesn't occur.
25For full sanity complementary code should be placed in OTHERSH!
26
27Look at sh.local.h for other things which you may need/want to change.