csh and tcsh work

Sources of csh/READ_ME

csh と tcsh のソース

Bill Joy

First published: October, 1978.

Copyright © 1979 Regents of the University of California.

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

To the top of this page