bash Cookbook

Errata for bash Cookbook

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 Note Update

Version Location Description Submitted By Date Submitted
PDF Page 31
2.3 Solution

$ printf '%-10.10s = %4.2f\n' 'GigaHerz' 1.92735 GigaHerz = 1.93 GigaHerz -> Gigahertz GigaHerz -> Gigahertz

Anonymous  Sep 21, 2019 
Printed Page 53
Toward the bottom

"You can also use the xarg command." "xarg" should be "xargs"

Andy Lester  Jan 08, 2020 
PDF Page 90
code in solution

The if test is like this if [ -f "$SCRIPT" -a -x "$SCRIPT" ] But in the main text we have -f and -x.

Murpholinox Peligro  Mar 10, 2020 
Printed Page 112
Top of the page

The name of the variable is $# but is shown in the text as ${}. Later, it's either $# or ${#}.

Andy Lester  Jan 09, 2020 
PDF Page 135
Table 6-1

expected: ' |= Bitwise “or” a|=b a=(a|b)' printed: ' \ = Bitwise “or” a|=b '

Luca Balsanelli  Jan 28, 2020 
PDF Page 303
last paragraph

The name of the variable is $# but is shown in the text as ${}. Notice this is the same error as posted by Andy Lester on Jan 09, 2020.

Luca Balsanelli  Mar 02, 2020