Errata

bash Pocket Reference

Errata for bash Pocket Reference

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
Printed Page 9
Text immediately following first brace expansion form

The sentence, "Expands to preXpost, preYpost, and so on" is syntactically correct, but it isn't technically correct. The sentence is depicting what the expansion would look like; therefore, the "," between preXpost and preYpost is incorrect.

Suggest removal of the comma or possibly the following to match the form,
Expands to preXpost preYpost ...

Kevin Day  Aug 20, 2012 
PDF Page 9
Top of page

The book insists that the {a..b} construct is valid only for integers, but it seems that "{a..z}" generates the series "a b c d ... z". Does this construct officially support letters as well? I can even use "{a..z..2}". Is this *supposed* to be valid, or is this just a weird accident one should not count on?

Robert P. J. Day  May 05, 2014 
Printed Page 12
United States

Omissions: Page 12's Command Forms lacks the "simple command" which I believe is
cmd [arg]...
I was seeking its definition, because there is an additional command form I think is also missing:

EnvVar=value... simple_command

which sets that the environment variable to that value for the execution of that command only. (The variable is neither set no exported for subsequent commands. And if the variable is already set, its former value is unchanged after this simple command.)

I included the ... meta-syntax to suggest that multiple assignments are allowed, such as
A=a AA=aa printenv | grep '^A'

W. Dean Stanton  Nov 21, 2014 
PDF Page 17
"Examples"

Comment mentions "part3k", should be simply "part3".

Robert P. J. Day  May 04, 2014 
Printed Page 40
Table of Event designators

The 'Command' for the 'Description' "Current command line up to this point" should be,
!#
instead of,
#

(Also suggest the removal of the author's editorial on the command's usefulness.)

Kevin Day  Aug 20, 2012 
Printed Page 40
Event Designator Table

I should have provided an example of the !# usage...

mv somefile ./someplace/!#^

or

mv somefile ./someplace/!#:1

Kevin Day  Nov 29, 2012