| |
Errata and Updates
Here are corrections to the text books for this course:
Unix Textbook: corrections and helpful hints
- Chapter 1 (top of p.64):
There can be no spaces around the equals sign when setting the prompt in the
Korn shell (item #3). (Only the C Shell allows spaces.)
The correct syntax is: PS1='my name'
- Chapter 5 (top of p.326):
To redirect both stderr and stdout to the same file using the
Korn or Bourne shells:
ls -l enlightenment /etc/passwd
>err+out 2>&1
Read this from left-to-right as: First redirect stdout
(unit 1) into file err+out, then redirect stderr (unit 2) to the same
place as stdout (unit 1).
- Chapter 5 (p.330): Curly braces { and } don't work in the ACADAIX version
of the Korn shell; they have no special meaning there. (They do work
in the Linux version of ksh.) Braces do work in the
Bourne-Again shell bash and in the C shell csh (where they
originated). The C and Bash Shells are available on ACADAIX.
- Chapter 5 (p.344): Ignore the entire section "Mixing Shell Variables
with Other Text on the Command Line". Most of it is either wrong
or misleading. If you want to put text up against the right side of a
variable, enclose just the name of the variable in curly braces using this
syntax: ${variable}text
- Chapter 5 (p.360): The ACADAIX Korn shell doesn't understand vi-tabcomplete.
Just plain vi works. (Type "set -o" to get a list.)
- Chapter 5 (p.371):
- Ignore what the text says about "// Turns off and on interpretation of
most special characters". It's nonsense.
- Note that "?" also does not match a leading dot in a file
name.
- The braces { and } don't work as described on ACADAIX.
- Chapter 8 (p.469): Where they wrote "On BSD" they should have
written "using the C shell". Where they wrote "On
System V" they should have written "Using the Korn, Bourne, or
Bash shells".
- Chapter 10: (p.503) "set notify" is for the C Shell only.
To do the equivalent under the Korn shell, use "set -o
notify". To turn it off in the Korn shell, use "set +o
notify".
- Chapter 10: (p.508) The Korn shell on ACADAIX says (SIGTTIN) instead of (tty
input) and (SIGTTOU) instead of (tty output). (SIGTTIN and SIGTTOU are
the programmer names for the "tty input" and "tty
output" signals.)
- Chapter 14: (p.635) The metacharacters \< and \> only
work inside the vi text editor on the ACADAIX computer. (They
aren't understood by any other programs on ACADAIX.)
- Chapter 14: (p.646) On ACADAIX, egrep does recognize the
options -v, -c, -l, and -n.
- Chapter 22: (p.914) Having the current directory in your search path is a
security risk on a multi-user system. Use ./checkuser instead.
- Chapter 22: The chapter is full of shell variables without quotes around
them. Make sure you put double-quotes around all your shell
variables! Read "Quoting Multiple-Word Argumens" on page
950.
- Chapter 22: (p.952) At the bottom of the page, the grep command in
the body of the for loop should be indented to the right one tab stop, not flush with the left
margin.
- Chapter 22: (p.955) At the top of the page, the closing done
keyword should be flush with the left margin; it should not be indented.
|