change.log
来自「BASH Shell 编程 经典教程 《高级SHELL脚本编程》中文版」· LOG 代码 · 共 1,823 行 · 第 1/5 页
LOG
1,823 行
Version 3.5Boxberry release, 06/05/051) In "Indirect References to Variables" section of "Variables Revisited" chapter: Added "ugly kludge" sidebar.2) In "Variable Assignment" section of "Introduction to Variables and Parameters" chapter: After "ex16.sh" example, noted that $(...) construct is a form of command substitution.3) In "Special Variable Types" section of "Introduction to Variables and Parameters" chapter: In note about remedies for missing command-line parameters, added discussion about using parameter substitution, rather than adding extra characters to variable names. (Thank you, Fabian Kreutz.)4) In "Command Substitution" chapter: At note at end of chapter, added mention that nesting is possible with $(...) construct, and added "agram2.sh" example script.5) In "Internal Commands and Builtins" chapter: At "exec" entry, added footnote and streamlined text.6) In "File and Archiving Commands" section of "External Commands" Chapter: At "more/less" entry, added "testing command sequence" usage example. At "mktemp" entry, added usage example and elaborated existing example.7) In "Communications Commands" section of "External Commands" chapter: At "dig" entry, added "spam-lookup.sh" example.8) In "Text Processing" section of "External Commands" Chapter: At "tail" entry, added usage example of combining "head" and "tail" to extract a specific line or lines from a text file.9) In "System and Administrative Commands" chapter: At "umask" entry, added "rot13a.sh" example script.10) In "Complex Functions and Function Complexities" section of "Functions"chapter: Added in-line example ("days in month") of capturing function "echo" as "return value."11) In the "Shell Wrappers" section of "Miscellany" chapter: Added "pr-asc.sh" example script.12) Changed "Files" chapter into an appendix.13) In the "Sed and Awk Micro-primer" appendix: More examples of the awk "print" command.14) In "Contributed Scripts" appendix: Added "whx.sh" script. (Thank you, Walter Dnes.)15) Miscellaneous fixups and stylistic changes in the text and various scripts. Fixed up three misspellings of "permissible"! Updated morethan.org site address.Version 3.4Teaberry release, 05/08/051) In "Special Characters" chapter: Some minor additions and cleanups.2) In "Basic Commands" section of "External Commands" Chapter: At "ls" entry, minor fixups on "ex40.sh" example. At "rm" entry, added "rm -- -badname" method of deleting hyphen-prefixed filenames.3) In "Time/Date Commands" section of "External Commands" chapter: At "date" entry: Added mention of "TZ=XXX" option. (Thanks, Frank Kannemann and Pete Sj鯾erg.) Also added discussion of additional options.4) In "Communications Commands" section of "External Commands" chapter: At "lynx" entry, added paragraph on "-traversal" option. At "wget" entry, added comments to "quote-fetch.sh" example script.5) In "Miscellaneous Commands" section of "External Commands" Chapter: At "sox" entry, added links for examples of script use. At "getopt" entry, fixed typo.6) In "Math Commands" section of "External Commands" chapter: At "dc" entry, added echoing obfuscated text entry.7) In "Internal Commands and Builtins" chapter: At "echo" entry, added comments to in-line examples of embedding linefeed in a string. (Per suggestion of Michal Jaegermann.) At "hash" entry, added footnote explaining what a hash is. Modified "col-totaler3.sh" example script to make it more interesting. At "forking" sidebar, added paragraph about parent-child process problem.8) In "File test Operators" section of "Tests" chapter: Added deprecated "-a" option.9) In "System and Administrative Commands" chapter: Added "nc" entry, and Added "iscan.sh" example script. (Thank you, Hobbit.) Added Dr. Andrew Tridgell's famous one-line script. (Thank you for permission to quote it, Tridge.) At "logrotate" entry, added URL for Stefano Falsetto's "rottlog" project. At "ps" entry, added graphical "tree" options. Added "quota" entry. Separated "Analyzing a System Script" into a section of its own.10) In "Bash, version 3" section of "Bash, versions 2 and 3" chapter At "=~" entry, added Social Security number example. Added end of chapter note that version 3 update breaks a few old scripts.11) In "Testing and Branching" section of "Loops and Branches" chapter: Added code snippet from Stefano Falsetto's "rottlog" package. (Thank you, Stefano.)12) In "Debugging" chapter: Added Stefano Falsetto's "debecho ()" debugging echo. (Thank you, Stefano.)13) In "$RANDOM" section of "Variables Revisited" chapter: Added footnote discussing "seeds."14) In "Parameter Substitution" section of "Variables Revisited" chapter: Changed "rfe.sh" example to use "case" construct to test for command-line parameters.15) In "Manipulating Strings" section of "Variables Revisited" chapter: Added "getopt-simple.sh" example. (Thank you, Chris Morgan.)16) In "Gotchas" chapter: Added comments about 'exporting' inner shell variables to "subshell-pitfalls.sh" example. Added note that, as of Bash 3, periods are no longer permitted within variable or function names.17) In "Here Documents" chapter: Added Huxley epigraph. Reshuffled order of first several examples. Added in-line example of an "ex script" (Smith/Jones replacement).18) In "Regular Expressions" chapter: In "Globbing" Section: Stylistic fixups. Added footnote.19) In "Assorted Tips" section of "Miscellany" chapter: Corrected "dialog.sh" example. Added entry on setting a variable to the contents of a sed or awk script, with cross-references to a couple of example scripts.20) In "Contributed Scripts" appendix: Added Mariusz Gniazdowski's "Hash.lib" hashing library for scripting, and an example script using the library ("hash-example.sh"). (Thank you, Mariusz.) Minor revision of "mail-format.sh" example (converted sed script to a variable)21) In "Writing Scripts" section of "Exercises" appendix: Added "Removing Inactive Accounts" exercise to "Intermediate" section. Added "Checking for Broken Links" exercise to "Intermediate" section.22) In "Bibliography" section: Added Henry Spencer epigraph. Added "Wicked Cool Shell Scripts" entry. Added "seder's grabbag." Added Linuxreviews.23) Miscellaneous stylistic changes in various scripts.24) Many minor stylistic changes in the body of the text.Version 3.3Raspberry release, 03/20/051) In the "Starting Off With a Sha-Bang" chapter: Amended footnote [3] to mention a cat / here document. (Thank you, Fabian Kreutz.) Fixed typo in "ex1a.sh" example. (Thank you, Preetam.) Added Larry Wall epigraph. Changed "Important" block to "Tip," and added "generalizing scripts" paragraph.2) In "Special Characters" chapter: At "#" entry, noted that if comment follows a command on a line, then whitespace preceding the "#" is necessary. (Thanks, Le Wen.)3) In "Basic Commands" section of "External Commands" Chapter: Greatly expanded discussion of "chattr" entry.4) In "File and Archiving Commands" section of "External Commands" Chapter: Added "rpm -qf" tip at "rpm" entry.5) In "Text Processing" section of "External Commands" Chapter: Added "enscript" entry. At "egrep" and "fgrep" entries. added symbolic link note added "dict-lookup.sh" example script. Updated "wc" entry.6) In "Communications Commands" section of "External Commands" chapter: Added "netconfig" entry.7) In "Math Commands" section of "External Commands" chapter: Fixup of "hexconvert.sh" example script (had left out initialization of E_NOARGS variable) (Thanks, Stefano Palmeri.)8) In "Internal Commands and Builtins" chapter: At "forking/spawning" sidebar: Added "spawn.sh" example9) In "Job Control Commands" section of "Internal Commands and Builtins" chapter: Corrected note discussing zombie processes. (Thank you, Alan Sundell.)10) In "Here Documents" chapter: Removed reference to 'telnet' -- since it's generally not a good idea.11) In "Of Zeroes and Nulls" chapter Added/revised discussion of /dev/zero.12) In the "Shell Wrappers" section of "Miscellany" chapter: Added footnote giving examples of system utilities that are really shell wrappers. Added "logging-wrapper.sh" example.13) In "Indirect References to Variables" section of "Variables Revisited" chapter: Expanded Nils Radtke's example of building dynamic variable names.14) In "Parameter Substitution" section of "Variables Revisited" chapter: Fixed up "ex6.sh" example to make it less ambiguous, per suggestion of "Der Schwadde" . . . ).15) In "Miscellaneous Commands" section of "External Commands" Chapter: At "dd" entry," added lowercase conversion in-line example. At "jot/seq" entry, added "letter-count.sh" example script. (Thanks, Stefano Palmeri.)16) In "System and Administrative Commands" chapter: At "lockfile" entry, fixed typo in inline example. (Thanks, Andreas Abraham.) At "fuser" entry, added more material.17) In "Gotchas" chapter: At "Mixing up '=' and '-eq' entry, fixed typo. (Thanks, Andreas Abraham.)18) In "Colorizing Scripts" section of "Miscellany" chapter: Added "horserace.sh" example. (Thanks, Stefano Palmeri.)19) In "Redirecting Code Blocks" section of "I/O Redirection" chapter: Added code snippet and commentary to redir2.sh example. (Thank you, Bruno de Oliveira Schneider.)20) In "Copyright" chapter: Added second URL for French translation.21) In the "Sed and Awk Micro-primer" appendix: Fixed "letter-count.sh" example to work with gawk, ver. 3.1.3. (Thanks to Stefano Palmeri for pointing out the need for a fixup.) Renamed filename to "letter-count2.sh" to accommodate alternate version of script which will appear prior to this one in the text.22) In "Contributed Scripts" appendix: Fixups to "wgetter2.bash" script. Added "bashpodder.sh" script. (Thank you, Linc Fessenden.)23) In "Writing Scripts" section of "Exercises" appendix: In "Intermediate sub-section": Added "Enforcing Disk Quotas" exercise.24) Various miscellaneous fixups and enhancements: In example scripts. In citations of book titles (inserted <citetitle> tag).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.
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?