change.log

来自「BASH Shell 编程 经典教程 《高级SHELL脚本编程》中文版」· LOG 代码 · 共 1,823 行 · 第 1/5 页

LOG
1,823
字号
                                   CHANGE LOG                                       &                                Release History                       This file is available on-line at             http://personal.riverusers.com/~thegrendel/Change.log------------------------------------------------------------------------Intermediate release.Working toward version 4.0, Winterberry release.1) "System and Administrative Commands" chapter:   In "Job Control" subsection, added "killall" entry.2) In "Arrays" chapter:   Noted an exception to 'array2=( "${array1[@]}" )' array copying method.   (Thank you, Jochen, DeSmet.)3) In "Contributed Scripts" appendix:   Added "ha.sh" hashing script.   (Thank you, Oliver Beckstein.)Version 3.9Spiceberry release, 05/15/061) In the "Starting Off With a Sha-Bang" chapter:   Added footnote that when launching a script from Bash,   the #! isn't strictly necessary.   (Thank you, Diane Holt, for bringing this to my attention.)2) In "I/O Redirection" chapter:   At introduction to chapter,   Added explanatory examples in introductory in-line code block.   At "Using Exec" section,   Added brief explanation of different effects of "exec N > filename" and "N > filename."   (Thank you, Ahmed Darwish, for both of the above.)3) In "Special Characters" chapter:   At "$" entry, added an additional usage example.   At "$$" entry, added footnote explaining of what a PID is.   At redirection operators entry, added "<>" description.   At "-" entry, fixup on "bunzip2" example.   (Thanks, Roman.)4) In "Miscellaneous Commands" section of "External Commands" chapter:   At "yes" entry,   added parsing of variables.5) In "File and Archiving Commands" section of "External Commands" Chapter:   At "gzip" entry, added note about "-c" option.6) In "Manipulating Strings" section of "Variables Revisited" chapter:   At "${string%%substring}" entry,   added "ra2ogg.sh" example script.7) In "Bash, version 3" section of "Bash, versions 2 and 3" chapter   Added "Bash, version 3.1" subsection.     Entry for "+=" operator.8) In "Subshells" chapter:   Modified final note about command list within curly brackets,   per suggestion of Andreas K黨ne.9) In "Gotchas" chapter:   Converted separate entries to bulleted-item list.   Added entry for error in leaving out termination semicolon in command   block within curly braces.    (Thank you, Andreas K黨ne.)10) In "Writing Scripts" section of "Exercises" appendix:      Added "Checking whether a process is still running" exercise      ("Easy" section).11) "System and Administrative Commands" chapter:     Minor revision of "strace" entry.     Added "ltrace" entry.     Added "lspci" entry.12) In "Contributed Scripts" appendix:    Minor modification to "life.sh" script, to check for missing startfile.13) In "Reference Cards" appendix:    Fixed up error in "Miscellaneous Constructs" table (terminating    semicolon in command list within curly brackets).    (Thank you, Andreas K黨ne.)14) In "Revision History" appendix:    Fixed embarrassing typos.15) Various minor fixups on example scripts.Version 3.8Blaeberry release, 02/26/061) In "Special Characters" chapter:   Minor additions to leadin to "control characters" entries,   and to "Ctl-K" and "Ctl-L" entries.2) In "Introduction to Variables and Parameters" chapter:     Rewrote lead-in.   In "Variable Substitution" section:   Added inline example of difference between variable name and value.   Added escaped whitespace example to "ex9.sh" script.3) In "Basic Commands" section of "External Commands" Chapter:      At "cp" entry, added example of using -u option.4) At beginning "Regular Expressions" chapter,   added Stowe Boyd epigraph.5) "System and Administrative Commands" chapter:   In "Job Control" subsection,     Added "pgrep/pkill" entry.     At "ps" entry, mentioned "aux" options.   In "Filesystem" subsection,     At "lockfile" entry, more material, including usage example and     footnote.     Added "flock" entry.6) In "File and Archiving Commands" section of "External Commands" Chapter:   At "sha1sum" entry, added paragraph about security consultants'   misgivings.   More info at "cpio" entry.7) In "Parameter Substitution" section of "Variables Revisited" chapter:   Fixed minor typo at "${parameter:+alt_value}" example.   (Thank you, Jemshad O K)8) Partitioned  "Security Section" of the "Miscellany" chapter   into two subsections.   Added subsection about "shc" utility for compiling script source.9) In "Loops" section of "Loops and Branches" chapter:   Applied fixup to "bin-grep.sh" example.   (Thank you, Anton Filippov.)10) In "Redirecting Code Blocks" section of "I/O Redirection" chapter:    Corrected annotation in final section of "redir2.sh" example.    (Thank you, Brian Onn.)11) In "Internal Commands and Builtins" chapter:    Added "revposparams.sh" example.    (Thank you, Dan Jacobson.)    More info at "nmap" entry.12) In "Text Processing" section of "External Commands" Chapter:      At "egrep" / "fgrep" entry, added note about boolean "|" operator.13) In "Here Strings" section of "Here Documents" chapter:    Added short inline usage example.    Added "mailbox_grep.sh" example.    (Thank you, Francisco Lobo, for both of the above.)14) Added "Bash Command-Line Options"  section to (retitled) "Command   Line Options" appendix.15) In "Copyright" chapter:    Added anti-DRM provisions.16) Various minor fixups on example scripts.Version 3.7Whortleberry release, 10/23/051) In "Special Characters" chapter:   At "whitespace" entry, added footnote about newline/linefeed.2) In "Basic Commands" section of "External Commands" Chapter:      At "ln" entry, noted that only symbolic links can refer to a directory.3) In "Text Processing Commands" section of "External Commands" Chapter:      Modified comments in "wf.sh" example.   At "grep" entry, fixed 2 typos      "Now, let's search this file . . . "      "printf 'a b\nc  d\n\n\n\n\n\000\n\000e\000\000\nf' | grep -cz ."   At "diff" entry, fixed typo ("spiff" --> "sdiff").   (Thank you, Frank Wang.)   At "colrm" entry, changed "warning" to "caution" -- toned it down a bit.   At "cut" entry,     Added note about using linefeed as delimiter.      (Thank you, Jaka Kranjc.)     Got rid of unnecessary "cat" in inline example.   At "iconv" entry, added snippet of code from "booklistgen.sh" script.   (Thank you, Peter Knowles, for permission to use it.)4) In "Complex Commands" section of "External Commands" Chapter:      At "expr" entry, added usage example of escaped parentheses.   (Thank you, Peter Knowles, for permission to use it.)5) In "File and Archiving Commands" section of "External Commands" Chapter:   Added "sha1sum" command at Frank Wang's suggestion.6) In "Communications Commands" section of "External Commands" chapter:   In "Remote Host Access" subsection, added "scp" entry.   Added material at "uucp" entry.   Added "uux" entry.   At "wget" listing, added comments.   At "rsync" entry, fixed up usage example.   Added "fc4upd.sh" example.   (Thank you, Frank Wang.)7) In "Complex Commands" section of "External Commands" Chapter:      At "xargs" entry, added footnote about speeding up execution.8) In "Math Commands" section of "External Commands" chapter:   Added Frank Wang's comments to "monthlypmt.sh" example.9) In "Miscellaneous Commands" section of "External Commands" chapter:   At "tee" entry, redesigned diagram for greater clarity.10) In "Testing and Branching" section of "Loops and Branches" chapter:    Rewrote explanation of filename "globbing" in the [list] of a for-loop    and added comments to "list-glob.sh" example.11) In "Quoting" chapter:    Added sidebar near beginning of chapter.    Removed intro paragraph (superfluous) at beginning of "Quoting Variables"    section.12) In "$RANDOM" section of "Variables Revisited" chapter:    Added comment to "ex21.sh" example.13) In "Command Substitution" chapter:    Added footnote about nesting command substitution with backticks    by using escaping.    (Thanks, John Default.)14) In "System and Administrative Commands" chapter:    Moved "dmesg" entry to "Information and Statistics" subsection.    In "Process Control and Booting" subsection, added "service" entry.    At "uptime" entry, added note about load average.    Fixups at "terminals and modes" sidebar, second example.    (Thank you, Mark Norman.)15) In "Bibliography" section:    Added reference and URL for Col Needham's original IBDB scripts.16) Numerous typos corrected, per a list sent in by Mark Norman (thanks!).17) Various changes and fixups in example scripts.Version 3.6Pokeberry release, 08/28/051) In "Special Characters" chapter:   At "-" (redirection from/to stdin or stdout [dash]) entry,   corrected comments.   (Thank you, Frank Wang.)   Replaced flawed first example at "brace expansion" entry.   Added quoting comment at "whitespace" entry.   2) In "Operators" subsection of "Operations and Related Topics" chapter:   Removed unnecessary "echo" from modulo operator usage example.   (Thank you, Pasha Zubkov.)3) In "/proc" section of "/dev and /proc" chapter:   Added comment to "pid-identifier.sh" example, per Teemu Huovila.   (Thanks!)4) In "Testing and Branching" section of "Loops and Branches" chapter:   Changed description of "case" construct from "equivalent of"   to "analog to" "switch" in C/C++.   (Thank you, Teemu Huovila.)5) In "Communications Commands" section of "External Commands" chapter:   Added "rsync" entry.6) In "Miscellaneous Commands" section of "External Commands" chapter:   Added additional usage example at "jot/seq" entry.7) In "Internal Commands and Builtins" chapter:   Added "testing 'false'" to "false" entry example.   (Thank you, Joe Friedrichsen for the suggestion.)   At "getopts" entry, made corrections in description of behavior of   $GETOPTS.   (Thank you, Pharis Monalo.)   At "source" entry, added notes about passing arguments to "sourced"   file and using a "return" to pass control back to the calling script.   Added "caller" entry.8) In "Contributed Scripts" appendix:   Made changes to "whx.sh" script.9) In "Test Constructs" section of "Tests" chapter:   Fixed up "ex.11.sh" example for difference in Bash 3.x behavior.   (Thank you, Frank Wang.)10) In "Internal Variables" section of "Variables Revisited" chapter:    Fixed up comments in "t-out.sh" example to reflect changes    in Bash 3.x.    (Thank you, Frank Wang.)    Fixed up explanation of "anomalous" output given by ${PIPESTATUS[@]}    in certain situations.    (Thank you, Frank Wang, for providing Chet Ramey's explanation.)11) In "Typing Variables" section of "Variables Revisited" chapter:    Added caution + example of how "typeset" restricts the scope of a    variable.    (Thank you, Michael Iatrou.)12) In "File and Archiving Commands" section of "External Commands" Chapter:    At "file" entry, fixed typo (/usrlocal/bin => /usr/local/bin).    Fixed error in "strip-comments.sh" example script.    (Thank you, Jesse Gough.)13) In "Complex Commands" section of "External Commands" Chapter:       At "xargs" entry, added extra usage example.    At "expr" entry, added example of illegal arithmetic operation.14) In "$RANDOM" section of "Variables Revisited" chapter:    Added Frank Wang's alternative to jipe's example.15) In "Quoting" chapter:    Split the chapter into introduction and "Quoting Variables" and   "Escaping" sections.    Corrected note about unquoted "grep" . . .    Added discussion about quoting correcting echo's appetite for newlines.    Clarified explanation of referencing quoted variables    and added footnote.    Amended tip about double quotes being necessary only to prevent word    splitting.    (Thank you, Harald Koenig.)16) In "Local Variables" section of "Functions" chapter:    In footnoted example of a segfaulting recursive function,    added an "echo" to properly exercise the function.    (Thank you, Dr. Roland Sonnenschein.)17) In "Debugging" chapter:    At listing of "Tools for debugging non-working scripts,"    added list item for "$LINENO" variable and "caller" builtin.    At "trap" entry, replaced buggy "multiple-processes.sh" example.    (Thank you, Tedman Eng.)18) In "Copyright" chapter:    Updated licensing terms to give the LDP the right to reassign custodianship    of the book in the event the author cannot be contacted.19) In "Bibliography" section:    Added entry for Peter Knowles' booklistgen.sh --    Sony Librie booklist generator -- making possible    Linux access to this neat e-book reader.20) Corrected spelling of the name of contributor St閜hane Chazelas    in multiple places.    (Thank you, Bertrand Mollinier Toublet, for pointing out these    embarrassing typos.)21) Various changes and fixups in example scripts.

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?