Errata

Classic Shell Scripting

Errata for Classic Shell Scripting

Submit your own errata for this product.

The errata list is a list of errors and their corrections that were found after the product was released. If the error was corrected in a later version or reprint the date of the correction will be displayed in the column titled "Date Corrected".

The following errata were submitted by our customers and approved as valid errors by the author or editor.

Color key: Serious technical mistake Minor technical mistake Language or formatting error Typo Question Note Update

Version Location Description Submitted By Date submitted Date corrected
Printed
Page xv
6th paragraph, 2nd line

"... completesthe description ..." NOW READS "... completes the description ..."

Anonymous    Apr 01, 2006
Printed
Page 44
Paragraph 4 Line 2 in the regular expression

((read|white)[[:space:]]*)+

NOW READS:
((read|write)[[:space:]]*)+

Anonymous    Apr 01, 2006
Printed
Page 52
1st paragraph

HMTL NOW READS HTML

Anonymous    Apr 01, 2006
Printed
Page 52
second and third to the last lines of sed example

s/<[Hh][Tt][Mm][LL]>/<html>/g
s/<[Hh][Tt][Mm][Ll]>/<html>/g
^
NOW READS:

s:</[Hh][Tt][Mm][LL]>:</html>:g
s:</[Hh][Tt][Mm][Ll]>:</html>:g
^

Anonymous    Apr 01, 2006
Printed
Page 73

awk -v RS="" { gsub("
", "^Z"); print }'

NOW READS:
awk -v RS="" '{ gsub("
", "^Z"); print }'

Anonymous    Apr 01, 2006
Printed
Page 91
Paragraph beginning with "By default,"

... from the second line.

NOW READS:
... from the second file.

Anonymous    Apr 01, 2006
Printed
Page 102
Ninth line of first paragraph

imprecise, so Hanson rephased it this way:

NOW READS::
imprecise, so Hanson rephrased it this way:

Anonymous    Apr 01, 2006
Printed
Page 113
3rd paragraph, again in 5th paragraph

"sleep 120 Wait two hours"

NOW READS:
"sleep 120 Wait two minutes"

Anonymous    Apr 01, 2006
Printed
Page 128
Example 6-1

if [ $# != 1 ]

NOW READS:
if [ $# -ne 1 ]

Anonymous    Apr 01, 2006
Printed
Page 152
Tip box at bottom of page

(Also in the current Safari Books Online version)

Just an aberrant apostrophe: "many commercial Unix Bourne shell's don't support it" should be "many commercial Unix Bourne shells don't support it".

Anonymous    Dec 01, 2008
Printed
Page 156
Third line of third paragraph from top

"most simplest uses become complicated quickly."

NOW READS:
"simplest uses become complicated quickly.
"

Anonymous    Apr 01, 2006
Printed
Page 156
Numbered list

- In 1,
Its output (the word inner2) in placed ...

NOW READS:
Its output (the word inner2) is placed ...

- In 2,
(the words inner1 inner2 inner3)

NOW READS:
(the words inner1 inner2 inner1)

Anonymous    Apr 01, 2006
Printed
Page 168-169
Table 7-9

Table 7-9 has several problems:
1. All the items marked with a lower case 'a' should instead have a dagger on them.

2. The entry for ". (dot)" should also have a dagger on it.

3. In the right hand column for the entry for ". (dot)" the end of the line should have the 'a' table footnote marker.

Anonymous    Aug 01, 2007
Printed
Page 170
2nd paragraph from the bottom

Anonymous    Apr 01, 2006
Printed, PDF
Page 188
Bottom of Page; Program Output

The return code of `pathfind --version` is not displayed after `echo $?`.

This is the original:
----------------------------
$ pathfind --version
pathfind version 1.0
$ echo $?

----------------------------

Should be:
----------------------------
$ pathfind --version
pathfind version 1.0
$ echo $?
0
----------------------------

Note from the Author or Editor:
Thanks for the bug report; I've marked my master book copy appropriately.

Mike M  Oct 13, 2014 
Printed
Page 196
Middle of page

"... and another to replace newlines by spaces"

NOW READS:
"... and another to replace newlines with spaces"

Anonymous    Apr 01, 2006
Printed
Page 267
2nd paragraph from bottom of page

"-" HAS BEEN DELETED from the end of the paragraph.

Anonymous    Apr 01, 2006
Printed
Page 268
First entry in the option list in the ls sidebar

The entry's head NOW READS "-1" not "1".

Anonymous    Apr 01, 2006
Printed
Page 281
Description on '-name' option

Single quotes ARE NOW USED instead of back quotes.

Anonymous    Apr 01, 2006
Printed
Page 287
Code snippet after "cat $HOME/html2xhtml.sed", lines 7-8

s/<[Hh][Tt][Mm][LL]>/<html>/g
s/<[Hh][Tt][Mm][Ll]>/<html>/g
^
NOW READS:

s:</[Hh][Tt][Mm][LL]>:</html>:g
s:</[Hh][Tt][Mm][Ll]>:</html>:g

Anonymous    Apr 01, 2006
Printed
Page 314
Example 11-4, after the first 'for' cycle in the BEGIN rule

The statement "close(idlist)" HAS BEEN DELETED.


Anonymous    Apr 01, 2006
Printed
Page 372
Second para. up from bottom,

A missing space in "the first tenrecords in the list." HAS BEEN CORRECTED so that it NOW READS:

"the first ten records in the list."

Anonymous    Apr 01, 2006
Printed
Page 394
1st bullet list, 2nd and 4th items

"null string dave"

NOW READS:
"null string, dave"

Anonymous    Apr 01, 2006
Printed
Page 395
2nd paragraph in Section 14.3.5, 2nd paragraph, last sentence

"Figure 14-1"

NOW READS:
"Figure 14-1.a"

Anonymous    Apr 01, 2006
Printed
Page 400
Last code snippet

"echo $myvar1 $mvar2 | tr ... | ..."

NOW READS:
"echo $myvar1 $myvar2 | tr ... | ..."
^

Anonymous    Apr 01, 2006
Printed
Page 482
The reference to "Learning the bash Shell" HAS BEREN UPDATED to refer to the third edition of the book, not the second edition.

Anonymous    Apr 01, 2006