Errata / Updates
Home Up Errata / Updates Why Shell? Using Telnet Telnet Logging Chapters 1&2 Chapters 3&7&13 Chapters 4&5 Chapters 6&8 Chapter 22 Chapter 23 Chapters 10&12 Chapter 14 Chapter 15
Updated:
2000-11-17 23:51

Errata and Updates

Here are corrections to the text books for this course:

Unix Textbook: corrections and helpful hints

  1. 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'
  2. 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).
  3. 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.
  4. 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
  5. Chapter 5 (p.360): The ACADAIX Korn shell doesn't understand vi-tabcomplete.  Just plain vi works.  (Type "set -o" to get a list.)
  6. Chapter 5 (p.371):
    1. Ignore what the text says about "// Turns off and on interpretation of most special characters".  It's nonsense.
    2. Note that "?" also does not match a leading dot in a file name.
    3. The braces { and } don't work as described on ACADAIX.
  7. 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".
  8. 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".
  9. 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.)
  10. 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.)
  11. Chapter 14: (p.646) On ACADAIX, egrep does recognize the options -v, -c, -l, and -n.
  12. Chapter 22: (p.914) Having the current directory in your search path is a security risk on a multi-user system.  Use ./checkuser instead.
  13. 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.
  14. 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.
  15. 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.

 

Web Author: Ian! D. Allen idallen@ncf.ca
Updated: 2000-11-17 23:51