📄 change.log
字号:
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. 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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -