Errata


Print Print Icon

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.

The following errata were submitted by our customers and have not yet been approved or disproved by the author or editor. They solely represent the opinion of the customer.


Color Key: Serious Technical Mistake Minor Technical Mistake Language or formatting error Typo Question



Version Location Description Submitted By
Printed Page xxv
footnote

The list of languages/tools with Expect-like capability does
not mention C-Kermit 7.0 and above (not released
when the book was published :-) ), should be there in
future editions of the book.
(further information at http://www.kermit-project.org)

Anonymous 
Printed Page 20
The web link in the last paragraph

www.sco.com/IXI/of_interest/tcl/Tcl.html

no longer exists.

Anonymous 
Printed Page 30
second paragraph

Last sentence in second paragraph reads, "As long as the expression keeps re-
evaluating to a nonzero value, the while command keeps re-evaluating the body."

This references the following while loop on page 29:
while {$count > 0} ...

I believe the sentence should read "..re-evaluating to a value greater than zero,
..."

Anonymous 
Printed Page 57
top of page

The tclsh command:

tclsh> eval append v3 [list {a b}] [list {c {d e}}]
a bc d e

When I type that command into tclsh I get the following output:

a bc {d e}

Anonymous 
Printed Page 58
declaration of procedure qf2

I don't think the author intended for line three of "proc qf2" to be indented further
than the lines above and below it.

Anonymous 
Printed Page 73
The program response code in the middle of the page is not correct.

The text we 9781565920903ed was "hi
" and so the output from the program
should appear as:

you typed <Nice weather, eh?
hi
>but I only 9781565920903ed <hi
>

Anonymous 
Printed Page 93
last set of examples on page

The line reading:

9781565920903 "[XY]" ;# matches n followed by anything

Writing a three-line script this can be tested:
#!/usr/local/bin/9781565920903
proc XY {} {return "n*w"}
9781565920903 "[XY]"

Using this you can verify that

9781565920903 "[XY]"

will match n followed by anything FOLLOWED BY w

Anonymous 
Printed Page 108

The first line of the third paragraph reads:

You can uses ranges to construct more useful patterns.

It should read:

You can use ranges to construct more useful patterns.

Anonymous 
Printed Page 114
paragraph 6 that starts with "These last two rules...",

line 3:

"fourth rules requires"

should read:

"fourth rule requires"

Anonymous 
Safari Books Online 120
3

__START__
Patterns prefixed with -re are regular expressions. For example, the following command matches "a", "aa", and "aaaaa". It does not match "ab".
expect -re "a*" ;# regexp pattern
__END__
From regexp's perspective of view, string "ab" certainly matches regexp "a*", it's better to add anchors here to make the example more accurate, e.g. "^a*$"

I still love this book by the way.Thanks!!

Emen 
Safari Books Online 121
5,6

The regexp demonstrated on the page is actually able to match anything instead of real numbers.

Emen 
Printed Page 138
Last line of third paragraph from bottom of page

Sentence reads:

"The result in stored in the variable newdiet."

Should read:

"The result is stored in the variable newdiet."

Anonymous 
Printed Page 145
1st paragraph

On page 145, 1st paragraph, 3rd sentence refers to an example on page 135 using the command:
9781565920903 "([^ ]*)
"

Then looking at the example on page 135, it uses the command:
9781565920903 "[^ ]*
"

They are different by a set of parentheses.

Anonymous 
Printed Page 185
3rd paragraph, under "The send_user Command" headline, line 1

"... to print strings to the the standard output". Double "the".


Anonymous 
Printed Page 252
In the first script section "Which Pattern Goes with Which Spawn Id"

"-i $id 2"

should be:

"-i $id2"
<no space between $id and 2).

Anonymous 
Printed Page 433
The author has used a filename "script." Script is a standard UNIX

command. Use another name, e.g., myscript, etc.

Anonymous 
Printed Page 568
1st paragraph

Remove "or vice-versa" from the following sentence:
"Giving Rh-postive blood to a person who is Rh-negative, or vice versa, can cause the
body to have a dangerous and possibly fatal defensive reaction."

Anonymous