📄 change.log
字号:
Version 3.2Blueberry release, 02/06/051) In the "Starting Off With a Sha-Bang" chapter: Fixed small typo (if [ $# -ne $Number_of_expected args ]). Thanks, Robbie Morrison. Added epigraph to "Why Shell Programming?" section. 2) In "Special Characters" chapter: At "&" entry, added comment about Nasimuddin Ansari's suggested change to "background-loop.sh" example.3) In "Colorizing Scripts" section of "Miscellany" chapter: Added link to Henry/teikedvl's utility for creating colorized scripts.4) In "Complex Functions and Function Complexities" section of "Functions"chapter: Added "func-cmdlinearg.sh" example script to clear up confusion about command-line args passed to a script.5) In "Local Variables" section of "Functions" chapter: Fixed typo in example in footnote. (Thank you, jaka kranjc.)6) In "File and Archiving Commands" section of "External Commands" Chapter: At "files" entry, added example of finding specific file types in a given directory.7) In "Communications Commands" section of "External Commands" chapter: At "ssh" entry, added caution about ssh using up loop's stdin. (Thanks, Jason Bechtel.)8) In "Special Variable Types" section of "Introduction to Variables" chapter Some fixups for "ex18.sh" example. Added Chris Monson's example of finding last command line parameter.9) In "Parameter Substitution" section of "Variables Revisited" chapter: Added material to "param-sub.sh" example.10) In "Double Parentheses Construct" section of "Variables Revisited" chapter: In "c-vars.sh" example, added instances of differing side-effects of pre- and post-increment operators. (Thanks, Jeroen Domburg.)11) In "Indirect References to Variables" section of "Variables Revisited" chapter: Added Nils Radtke's example of building dynamic variable names.12) In "Text Processing" section of "External Commands" Chapter: Added extra explanatory lines at "grep" listing. Moved "manview.sh" script example from Contributed Script appendix to "groff, tbl, eqn" entry.13) In the "Shell Wrappers" section of "Miscellany" chapter: Added redirection comment to "ex3.sh" example. (Thanks, jaka kranjc.)14) In "Regular Expressions" chapter: Added listing of components of REs. Streamlined the discussion following.15) In "$RANDOM" section of "Variables Revisited" chapter: Added footnote about randomness and pseudorandomness. Added a couple of cross-links in the text.16) In "System and Administrative Commands" chapter: Added usage example at "last" entry.17) In "/dev" section of "/dev and /proc" chapter: Changed reference URL from slashdot.org to net.cn (a known spam ISP). Added to footnote about mounting a USB flash drive.18) In "Gotchas" chapter: Added note about not hyphenating function names.19) In "Bibliography" section: Added William Parks' Dec. '04 "Linux Gazette" article to his listing. Added entry for "Unix Oneliners." Added "http://www.zazzybob.com" entry.20) In "Writing Scripts" section of "Exercises" appendix: In "Intermediate" section, added "Integer or String" exercise . In "Intermediate" section, added "Logged in User Information" exercise .21) In "Contributed Scripts" appendix: Added "cdll" expanded 'cd' command. (Thanks, Phil Braham.) Added "wgetter2.bash" example script. (Thanks, Little Monster <monster@monstruum.co.uk>.)22) In "Localization" appendix: Again, fixed quoting problem in "localized.sh" in-line example (per Bruno Haible).23) In "Important System Directories" appendix: Corrected "/sys" entry. Added "/mnt," "/dev," "/proc," and "/media" entries.24) In "Analyzing Scripts" section of "Exercises" appendix: Added short example script.25) Added comment block to sample .bashrc file (Appendix G). (Thanks, Ane-Pieter Wieringa.)26) Deleted unwanted space in ": <<XXX" here document comments in various scripts and text body.27) Various miscellaneous fixups in example scripts. (Thanks, Kalin Kozhuharov and others.)Version 3.1Bayberry release, 11/14/041) In "Subshells" chapter: Removed superfluous close-parenthesis from in-line example comments. Removed doubled line in "lock file" in-line example. (Thanks, bojster.) Added example of the $BASH_SUBSHELL variable (new to Bash 3).2) In "Complex Functions and Function Complexities" chapter: Fixed typos in "realname.sh" example script. (Thanks, bojster.)3) In "Unofficial Shell Scripting Stylesheet" section of Scripting With Style" chapter: Fixed a couple of typos involving extra space and quote. (Thanks, bojster.) Added Ender's suggestion to use exit codes in /usr/include/sysexits.h. Added Ender's list of suggested script invocation flags.4) In "Colorizing Scripts" section of "Miscellany" chapter: Added example of using bold foreground text, with note to that effect. Updated link for Moshe Jacobson's project. (Thanks, bojster.)5) In "Assorted Tips" section of "Miscellany" chapter: At "whatis" entry, added safer alternative to using that. (Thanks, bojster.) Added discussion of the use of the "rcs" package in script revisions.6) In "System and Administrative Commands" chapter: At "fuser" entry, added usage example.7) Assorted other typos pointed out by bojster fixed.8) In "$RANDOM" section of "Variables Revisited" chapter: Removed an unnecessary variable from "ex21.sh" example. (Thanks, jaka kranjc.)9) In "Internal Variables" section of "Variables Revisited" chapter: Fixed prefatory comment in "timed-input.sh" example. Added $BASH_SUBSHELL variable (Bash 3 or later).10) In "File and Archiving Commands" section of "External Commands" Chapter: At "split" entry, added "csplit."11) In "Gotchas" chapter: Added "echo $BASH_SUBSHELL" command to Richardson/Berendsen example.12) In "Debugging" chapter: Added Kernighan quote at beginning. Added list of debugging variables new to version 3 of Bash.13) In "Bibliography" section: Updated William Parks' bio and added his Nov. '04 "Linux Gazette" article.14) In "To Do List" appendix. Added Michael Zick's "test-cgi.sh" script as a starter example.15) In "Writing Scripts" section of "Exercises" appendix: In "Difficult" section, added "Creating man pages" exercise .16) In "Contributed Scripts" appendix: Applied Daniel Albers' patch to "life.sh" to enable use of non-square grids. Added two additional reader exercises to "life.sh" script.17) In "Localization" appendix: Fixed quoting bug in "localized.sh" in-line example. Numerous other changes and bugfixes. (Thanks, Alfredo Pironti.)18) In "History Commands" appendix: Added $HISTTIMEFORMAT variable (new to Bash, ver. 3.0 or later). Added link to "Advancing in the Bash Shell" site.19) Added "Mirror Site" appendix.20) Minor cleanups on various example scripts.Version 3.0Loganberry release, 10/03/041) In "Numerical Constants" section of "Operations and Related Topics" chapter: Fixed error in comment in "numbers.sh" script. (Thanks, Frank Wang.)2) In "Operators" subsection of "Operations and Related Topics" chapter: Added four increment operations to "arith-ops.sh" example. (Thanks, Frank Wang.)3) In "Testing and Branching" section of "Loops and Branches" chapter: Fixed "ex29.sh" example to account for sorting problem in some locales. (Thanks, Frank Wang.)4) In "Internal Variables" section of "Variables Revisited" chapter: At "$!" entry, added "hanging job" example. (Thanks, Sylvain Fourmanoit.) At "$PIPESTATUS" entry, added discussion of fixes in Bash, ver. 3, with examples. Added discussion of "volatility" of this variable.5) In the "Using Exec" section of "I/O Redirection" chapter: Added "avoid-subshell.sh" example script. (Thanks, Matthew Walker.)6) In "Communications Commands" section of "External Commands" chapter: At "ssh" entry, added "remote.bash" example script. (Thank you, Michael Zick.) At "dig" entry: Added discussion of some interesting options. Added "is-spammer.sh" example script. (Thank you, Michael Zick.) 7) In "/proc" section of "/dev and /proc" chapter: Added short example of parsing /proc/bus/usb/devices to determine whether USB 1.1 port detected.8) In "Complex Commands" section of "External Commands" Chapter: Added comments and fixup to "ex41.sh" example (xargs can't handle unmatched quotes). Simplified "ex45.sh" example by eliminating a misleading section. (Thanks, Frank Wang, for both of the above.)9) In "Arrays" chapter: Fixed up some comments in "array-assign.bash" example. (Thanks, Frank Wang.) Corrected comment in "stack.sh" example.10) In "Here Documents" chapter: Added section for "here strings" (<<<). Added "prepend.sh" example. (Thanks, Kenny Stauffer.)11) In "Special Characters" chapter: Added entry for "<<<" (here strings).12) In "Parameter Substitution" section of "Variables Revisited" chapter: Fixed typo in comments of "var-match.sh" example script. (Thanks, bojster.)13) In "Process Substitution" chapter: Added more commentary to in-line SuSE code fragment. (Thanks, Filip Moritz.)14) In "Assorted Tips" section of "Miscellany" chapter: Fixed typo in "multiplication.sh" example. (Thanks, Frank Wang.)15) In "Recursion" section of "Miscellany" chapter: Added note about execute permissions to "recurse.sh" example script.16) In the "Portability Issues" section of the "Miscellany" chapter: Fixed typo ("funtionality). (Thanks, Andreas Abraham.)17) In "System and Administrative Commands" chapter: Fixed mistake in a comment in "killall, from /etc/rc.d/init.d" in-line example. (Thanks, Andrzej Stefanski.) At "lockfile" entry, fixed typo. (Thanks, bojster.)18) In "Time/Date Commands" section of "External Commands" chapter: At "date" entry, dded discussion of more options.19) In "Miscellaneous Commands" section of "External Commands" Chapter: Added comment to "blot-out.sh" example script noting that it may not work well under a journaled filesystem. (Thanks, bojster.)20) In "Colorizing Scripts" section of "Miscellany" chapter: Added note about "echo -ne \E[0m" being a better alternative to "tput sgr0." Added "Draw-box.sh" example. (Thanks, Stefano Palmeri.)21) In "Bibliography" section: Added entry for Ken Burtch's "Linux Shell Scripting with Bash."22) In "Reference Cards" appendix: Miscellaneous minor cleanups in tables.23) "Bash, version 2" chapter title changed to "Bash, versions 2 and 3" Split chapter in sections for "Bash, version 2" and "Bash, version 3." List of new features in Bash, version 3 in latter section. * {a..z} brace expansion operator * ${!array[@]} operator * =~ Regular Expression matching operator within [[ double brackets ]]24) In "Author's Note" section of "Endnotes" chapter: Added Latin epigraph.25) In "Copyright" appendix: Added note exempting Public Domain scripts from the overall license and copyright restrictions of the document.26) In "Contributed Scripts" appendix: Added Michael Zick's elegant "is_spammer.bash" script.27) Updated "ex40.sh" and "copy-cd.sh" examples for newer versions of "cdrecord."28) Changed almost all occurrences of "Unix" to "UNIX" for consistency.Version 2.8Elderberry release, 07/11/041) In the introduction: Added link to pdf version of the book.2) In "Arithmetic Expansion" chapter: Fixed typo -- missing parenthesis -- in inline example. (Thank you, Thorsten Bonow.)3) In "Special Characters" chapter: Added material at "Ctl-D" entry. Added material at "Ctl-K" entry. Added material at "Ctl-U" entry. (Thank you, Jeremy Impson.) Added "Ctl-V" entry. (Thank you, Jeremy Impson.) Added "Ctl-W" entry. (Thank you, Jeremy Impson.) At "-" (redirection from/to stdin or stdout) entry: Fixed comment in Alan Cox's example. (Thank you, Ken Fuchs.)4) In "Gotchas" chapter: Added another alternative to Anthony Richardson's piping-loop example. (Thank you, Wilbert Berendsen.)5) In "Internal Commands and Builtins" chapter: At "echo" entry, showed how to embed a linefeed within echoed text. (Thanks, Steve Parker.) At "read" entry, added note that "read -n" command sequence will not detect the ENTER (newline) key. (Thank you, Tony Morgan.) At "source" entry, rewrote introductory paragraph for additional clarity. Added "bind" entry, with a brief footnote about the readline library. Slight modification of discussio
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -