Errata for "Using csh and tcsh"

This file is the errata sheet for the O'Reilly & Associates Nutshell handbook "Using csh & tcsh".

(Some of these errors have been fixed in more recent printings.)


Chapter 2, page 8.

The page says:
(It that doesn't work and you're using tcsh...

The page should say:
(If that doesn't work and you're using tcsh...

(i.e., "It" should be "If".)


Chapter 4, page 48.

The page says:
Commands that apply only to interactive shells, reducing start up time:

The page should say:
Commands that apply only to interactive shells can be skipped, reducing start up time:


Chapter 5, page 54.

The page says:
You can use either ^c or ^C; stty understands them both to mean CTRL-U.

The page should say:
You can use either ^c or ^C; stty understands them both to mean CTRL-C.

(Originally, I wrote an example that used CTRL-U; then I decided to change it to use CTRL-C. Unfortunately, I didn't catch all the places where the U needed to be changed to C...)


Chapter 6, page 70.

The example that says:

    % mv AllocColor.c !#^:s/A/AX
    mv AllocColor.c XAllocColor.c

Should say:

    % mv AllocColor.c !#^:s/A/XA
    mv AllocColor.c XAllocColor.c

Chapter 6, page 71.

The example that says:

    % grep -i expenditure file1    Look for string in file1
    % !:s/e1/e2                    Look for same string in file2
    grep expenditure file2
Should say:
    % grep -i expenditure file1    Look for string in file1
    % !:s/e1/e2                    Look for same string in file2
    grep -i expenditure file2

Chapter 12, page 142.

In some printings, backquotes (`) on this page look like forward quotes ('). Treat quotes that look like forward quotes as backquotes.


Chapter 12, page 142.

The first code display contains this command sequence:

    % grep -i gaboon * > names    Generate arguments
    % cat names                   Check output, notice that it is incorrect
    % ^-i^-li                     Fix grep options and generate arguments again
    grep -li gaboon * > names
    % cat names                   Check again; this time output is correct
    % vi `!!`                     Edit files
    vi `cat names`
The third command is erroneous; the sequence should look like this:
    % grep -i gaboon * > names    Generate arguments
    % cat names                   Check output, notice that it is incorrect
    % !g:s/-i/-li                 Fix grep options and generate arguments again
    grep -li gaboon * > names
    % cat names                   Check again; this time output is correct
    % vi `!!`                     Edit files
    vi `cat names`

Chapter 14, page 165.

The perl fragment for changing the title of an hpterm window is incorrect. It reads:

    #!/usr/local/bin/perl
    printf "\&f0k%dD%s", length ($ARGV[0]), $ARGV[0] unless $#ARGV < 0;
It should read:
    #!/usr/local/bin/perl
    printf "\e&f0k%dD%s", length ($ARGV[0]), $ARGV[0] unless $#ARGV < 0;

Appendix A, page 181.

The appendix says that you can get the tcsh source distribution from tesla.ee.cornell.edu. Unfortunately, that machine apparently bit the dust just about the time the book came out. :-(

You can get the distribution from ftp.astron.com instead:

    ftp://ftp.astron.com/pub/tcsh
Or you can get it from the Kitebird archive:
    http://www.kitebird.com/csh-tcsh-book/


Document written by: Paul DuBois, paul@kitebird.com
Last updated: 2001-01-13