bash Cookbook, First Edition by Carl Albing, JP Vossen, Cameron Newham The unconfirmed error reports are from readers. They have not yet been approved or disproved by the author or editor and represent solely the opinion of the reader. Here's a key to the markup: [page-number]: serious technical mistake {page-number}: minor technical mistake : important language/formatting problem (page-number): language change or minor formatting problem ?page-number?: reader question or request for clarification This page was updated May 14, 2008. UNCONFIRMED errors and comments from readers: {53} Middle, See also section; the web address is incorrect. http://www.comptechdoc.org/os/linux/usersguide/linux_ugfilesup.html should be http://www.comptechdoc.org/os/linux/usersguide/linux_ugfilesp.html _ugfilesup.html should not have the 2nd u just before p.html. {60} in the "Solution" section; There should be no space between the "-" and the "p" read - p "answer me this " ANSWER read -p "answer me this " ANSWER {93} Last paragraph; In the line beginning "When we quoted..." the reference is referred to as "{$1}". It should be "${1}" {98} 5.12.2 Solution; The script if test clause is doing the opposit the author meant it to do, which is to have a verbose output when -v is an argument Instead of: if (( VERBOSE == 0 )) The script should read: if (( VERBOSE == 1 )) (185) 7 paragraph from top, 2nd paragraph from bottom; 2nd sentence "The remainder of the lineup to the \; is the command to be executed." should be "The remainder of the line, up to the \;, is the command to be executed." (231) last paragraph; "... and a -c option followed by a number ..." should likely be "... and a -c option followed by a character ..." (243) Scripting lines 14, 23, 35 and 40 of 12.4 Burning a CD; line 14: RCDIR=$1 should read SRCDIR=$1 line 23: $ISOPTS has never been set before line 35: since you exit the script unconditionally the iso image will never get burned. line 40: $ISOImage should read $ISOIMAGE (246) lines 54, 55, 69, and 73 of the oodiff script. May 2007 printing (first edition); The variables $PRIV1 on line 54, $PRIV2 on line 55, $HERE on line 69, and $PRIV1 $PRIV2 on line 73 all should be enclosed in double quotes. This would avoid difficulty when filenames contain spaces. {249} Solution section of getopts_example; minus sign '-' should be used instead of figure dash '‒' within the code itself, in getopts_example sample code from website encounters an error too.