Wednesday, February 11, 2009

Some tweaks on vanilla V6 UNIX

  1. The man command and tmac.an nroff macros are missing

    # cat /usr/bin/man
    nroff -man /usr/doc/man/man$1/$2.$1
    # cat /usr/lib/tmac.an
    .pl 80
    .nr in 5
    .de i0
    .in \n(in
    ..
    .de lp
    .i0
    .ta \\$2+1
    .in \\$1
    .ti -\\$2
    ..
    .de s1
    .sp 1
    .ne 4
    ..
    .de s2
    .sp 1
    ..
    .de s3
    .sp 1
    ..
    .de fo
    'sp 2
    'tl ''- % -''
    'bp
    ..
    .de th
    .de x1
    'sp 2
    'tl '\\$1(\\$2)'\\$3'\\$1(\\$2)'
    'sp 2
    \\..
    .wh -5 fo
    .wh 0 x1
    .in \n(in
    ..
    .de sh
    .s1
    .ne 5
    .ti 0
    \\$1
    .br
    ..
    .de bd
    \\$1
    ..
    .de bn
    \\$1\\t
    ..
    .de it
    .li
    \\$1
    ..
    .de dt
    .ta 8 16 24 32 40 48 56 64
    ..
    .ds b B
    .ds G G
    .ds a '
    .ds - -
    .ds _ _
    .ds v |
    .ds p J
    .ds r
    .ds g `
    .ds X X
    .ds u u
    .ds > ->
    .ds |

  2. You have to use chdir instead of the familiar and shorter form cd

    ed /usr/source/s2/sh.c
    # ed sh.c
    11594
    561
    if(equal(cp1, "chdir")) {
    c
    if(equal(cp1, "chdir") || equal(cp1, "cd")) {
    .
    w
    11614
    q

    and consult /usr/source/s2/run on how to install the sh.
  3. The script /usr/sys/run won't build the kernel with the latest files in /usr/sys/ken and /usr/sys/dmr

No comments:

Post a Comment