change.log

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

LOG
1,823
字号
   Added footnote defining a socket.   Added use of /dev/sda1 in mounting a USB flash drive.   Added examples of getting the time from a remote network   and downloading a URL -- using /dev/tcp.   (Thank you, Mark.)5) In "/proc" section of "/dev and /proc" chapter:   Added "cat /proc/apm" to list of 'proc' examples.   Redid first parsing example.6) In the "Portability Issues" section of the "Miscellany" chapter:       Added discussion of using !#/bin/sh to run scripts.   (Thank you, Ian D. Allen.)7) In "Assorted Tips" section of "Miscellany" chapter:   Added redirecting stderr to stdout in "if-grep" test.   (Thank you, Chris Martin.)   Added tip about setting PATH and umask at beginning of script.   (Thank you, Ian D. Allen.)8) In "System and Administrative Commands" chapter:   At "ifconfig" entry, added "ifconfig -a" output example.   At "hostname" entry, added note about "domainname" and similar   commands.   At "netstat" entry, added screen output example.9) In "Text Processing" section of "External Commands" Chapter:      Added comment (suggested modification) to "wf.sh" example.   (Thanks, Arun Giridhar.)   At "grep" entry, added method of searching for two different patterns,   with usage example.10) In "Internal Commands and Builtins" chapter:    Expanded "ex43.sh" example.11) In "Comparison Operators" section of "Tests" chapter:    Changed section title.    Added brief intro paragraph.    At "==" entry, added note and embedded pre-existing example within it.12) In "Regular Expressions" chapter:    In "Brief Introduction to Regular Expression" Section:      Added sidebar with example of testing an RE.    In "Globbing" Section:      Fixed typo in footnote 1.      (Thanks (Asheesh Soni.)13) In "Copyright" chapter:    Added URL for French translation.14) In "Contributed Scripts" appendix:    Replaced "tree.sh" script with a simplified version,    revised by Rick Boivie.15) Added "To Do List" appendix.16) Changed all "process id" references to "process ID" to avoid    confusion.17) Minor cleanups and fixups to various scripts.Version 2.6'SALAL' release, 03/15/041) In "Exit and Exit Status" chapter,   Added comment to inline example discussing negation of a 'true' command.   (Thanks, Kristopher Newsome.)2) Added "Standard Command-Line Options" appendix.3) In "Basic Commands" section of "External Commands" Chapter:      At 'cat' entry, added discussion of redirecting stdin as an   alternate to 'cat.'   Fixed a typo in "ex40.sh" example script.   (Thanks, Thiers Botelho.)   Updated URL in comment in "ex40.sh" example script.4) In "Miscellaneous Commands" section of "External Commands" Chapter:      Added "sox" entry.   At 'dd' entry, did some minor fixups on "blot-out.sh" example.   At 'dd' entry, added "self-copy.sh" example.   At 'dd' entry, converted "exercising dd" in-line example to   an external shell script example, with some modifications.5) In the "Starting Off With a Sha-Bang" chapter:   Added listing of Open Group site to POSIX footnote.6) In "System and Administrative Commands" chapter:   At "passwd" entry: Simplified "setnew-passwd.sh" example.   Added "setterm" entry in Terminal Commands section.7) In "Internal Variables" section of "Variables Revisited" chapter:   Added material at "$PIPESTATUS" entry.   Minor changes in discussion of 'eval' entry.   Modified "rot14.sh" example.   Minor changes in comments in "ex44.sh" example.   At "piping to a while-read" note, added "gendiff" code fragment.8) In "$RANDOM" section of "Variables Revisited" chapter:   Removed an unnecessary line from "random-test.sh" example.9) In "Complex Commands" section of "External Commands" Chapter:      At "find" entry, added short in-line example of removing core dump files.   At "xargs" entry, added paragraph about curly brackets.   Made minor stylistic changes to "wf2.sh" example.   Additional explanatory comments in "ex42.sh" example.   Additional comment in "idelete.sh" example.10) In "Time/Date Commands" section of "External Commands" chapter:    Added a couple of words at "zdump" listing.    Reformatted short in-line examples at "sleep" and "usleep" listings.11) In "Communications Commands" section of "External Commands" chapter:    At "wget" entry, added "quote-fetch" example.12) In "Internal Commands and Builtins" chapter:    At "eval" entry, revisions to discussion and addition    of an in-line usage example.    Drastically revised "ex44.sh" example.13) In "Bash, Version 2" chapter:    Added an exercise to "resistor-inventory.sh" exercise.14) In "Loops and Branches" chapter:    At "while loops" discussion, added paragraph to final *note*    about piping into a loop.    Added comments to "ex25.sh" example.15) In "Process Substitution" chapter:    Added example of comparing the output of a command with different    options.    Added example of comparing contents of different directories.16) In "Debugging" chapter:    At "trap" entry, added "multiple-processes.sh" example.    (Thank you, Vernia Damiano.)    Added comments to "ex76.sh" example.17) In "Writing Scripts" section of "Exercises" appendix:    In "Difficult" section, added "Word Ladders" exercise .18) Minor cleanups and fixups to various scripts.19) In "Bibliography" section:    Added entries for comp.os.unix.sh and comp.os.unix FAQs.Version 2.5'STARFRUIT' release, 02/15/041) In "I/O Redirection Chapter":   At discussion of redirection of multiple output streams,   Added information about order of operations being important.   (Thanks, Paulo Marcel Coelho Aragao.)2) In "Redirecting Code Blocks" section of "I/O Redirection" chapter:   Fixed error in comment in example "redir4.sh."     Old = # More concise is     line_count=$(wc < "$Filename")     New = # More concise is     line_count=$(wc -l < "$Filename")   Simplified example "redir2a.sh."   (Thanks, Paulo Marcel Coelho Aragao, for all of the above.)3) In "Here Documents" chapter:   Minor rewrite of beginning paragraphs.   Clarified comment in "generate-script.sh" example.   Amended warning near end of chapter to include trailing whitespace   on a "limit string" line, as well as leading whitespace. Added   explanatory paragraph.   Noted that the "-" option marking a limit string suppresses only leading   tabs. Modified comments in "ex71a.sh" example to reflect this.   (Thanks, Paulo Marcel Coelho Aragao, for all of the above.)   Fixed two minor errors in "self-document.sh" example script.   (Thanks, Markus Wolf.)4) In "Command Substitution" chapter:   Added footnote at beginning of chapter giving technically correct   explanation of what happens.   Added link in first footnote.   Noted that `...` and $(...) treat a "\\" differently..   (Thanks, Paulo Marcel Coelho Aragao, for pointing this out.)5) In "System and Administrative Commands" chapter:   At "passwd" entry:     Fixed typo (omitted word "command").     Added mention of "-l," "-u," and "-d" options.     Broke out "setnew-passwd.sh" as an external example.   Moved "MAKEDEV" entry to just below "mknod."   Added "usermod," "groupmod," "iwconfig,"  "lsusb / usbmodules," "modinfo," and "setquota" entries.6) In "Basic Commands" section of "External Commands" Chapter:      At "rm" entry, added note about removing filenames beginning with   a dash.7) In "Communications Commands" section of "External Commands" chapter:   Added "chfn" entry.8) In "Complex Commands" section of "External Commands" Chapter:      At "xargs" entry, added "kill-byname.sh" example script.9) In "Complex Functions and Function Complexities" chapter:   section of "Functions" chapter:     In discussion of capturing output of a function, corrected reference     of "parameter substitution" to "command substitution."     In "max2.sh" example, corrected typo and misleading comment.     In "count_lines_in_etc_passwd" in-line example, added comment.     In "ref-params.sh" example, added comment (almost) clarifying     a particularly difficult construct. (Paulo Marcel Coelho Aragao)     Modified note about being unable to dereference passed parameter to     a function. Removed "note" and made it into an ordinary paragraph.     Added "ind-func.sh" example of passing an indirect reference to a     function. Added Bruce W. Clare's "dereference.sh" example of     dereferencing a parameter passed to a function.10) In "Assorted Tips" section of "Miscellany" chapter:    At discussion of using stdout to capture function "return value(s),"    added parenthetical clarification.11) In "Regular Expressions" chapter:    Removed specific reference tying UNIX to use of REs.    Noted that GNU tools allow extended REs if escaped.    Removed brackets from RE character sets where unnecessary and    misleading.    In "Globbing" Section:    Corrected note about 'echo' performing wildcard expansion.    (Thanks, Paulo Marcel Coelho Aragao, for all of the above.)    Broke 'echo' filename expansion examples out of main "screen" block.12) In "Arithmetic Expansion" chapter:    At in-line example code,      Fixed comment about quotes enclosing "special characters."      Noted that within double parens, parameter dereferencing is optional.    (Thanks, Paulo Marcel Coelho Aragao.)13) In "Gotchas" chapter:    Fixed "bad-op.sh" example (misuse of string comparison    operators). Added much additional explanatory material to it.    Broke it out as an external example.    (Thanks, Paulo Marcel Coelho Aragao, for the hint.)14) In "Subshells" chapter:    Additional comment at code snippet for testing whether a    variable is defined.    Modification of code snippet testing for a lock file.    (Thanks, Paulo Marcel Coelho Aragao, for both of the above.)15) In "/dev and /proc" chapter:    Added Troy Engel's "dev-tcp" example script.16) In "Bibliography" section:    Added "Mastering Regular Expressions (Friedl)" reference.    (Thanks, Paulo Marcel Coelho Aragao, for the suggestion.)    Added reference to William Park's Bash enhancement project.17) In "Contributed Scripts" appendix:    Did some very minor polishing on "days-between.sh" script.    Added Troy Engel's "archiveweblogs.sh" example.18) In "Writing Scripts" section of "Exercises" appendix:    Added "Logging Logins" problem to "Intermediate" section.    Added optional section to "Word-Find" problem.    Fixed typo in "Playfair Cipher" problem.19) Added "Important System Directories" appendix.20) At various points in the text, corrected maximum return value    of a function to 255 (was 256).Version 2.4'MUSKMELON' release, 01/25/041) In "Loops and Branches" chapter:   Fixed comment in "continue-nlevel.sh" example.   Minor fine-tuning of "bin-grep.sh" example.   Added comment to "symlinks.sh" example.   (Thanks, Paulo Marcel Coelho Aragao, for all of the above.)2) In "Operations and Related Topics" chapter:   Added counting method in "arith-ops.sh" example.   (Thanks, David Lombard.)   Minor comment addition to "and-or.sh" example.3) In "Internal Commands and Builtins" chapter:   Fixed error in comment in "ex44.sh" example.   Corrected discussion at "getopts" entry.   (Thanks, Paulo Marcel Coelho Aragao.)   Fixed comment misnaming $IFS.   (Thanks, Mike Latimer.)4) In "$RANDOM" section of "Variables Revisited" chapter:   Simplified dice throw section of "ex21.sh" example.   Alternate formula in "random-between.sh" example.   (Thanks, Paulo Marcel Coelho Aragao, for both of the above.)5) In "Arithmetic Expansion" chapter:   Added use of (( stand-alone expression )) to in-line   usage example.6) In "Basic Commands" section of "External Commands" Chapter:      At "ln" entry, added "hello.sh" example   (link at "$0" entry in "Special Variable Types" section   of "Introduction to Variables and Parameters" chapter.)7) In "File and Archiving Commands" section of "External Commands" Chapter:   Fixed error in command-line args check in "strip-comments.sh" example.   Removed unnecessary 'eval' from "strip-comments.sh" example.   (Thanks, Paulo Marcel Coelho Aragao, for both of the above.)   Fixed a subtle logic error in "file-integrity.sh" example.   (Thanks, Paulo Marcel Coelho Aragao, for bringing the error   to my attention.)8) In "Communications Commands" section of "External Commands" chapter:   Clarified explanation of "ipcalc" entry.   Corrected "ping" entry.   (Thanks, Paulo Marcel Coelho Aragao, for directing my attention   to these.)9) In "Complex Commands" section of "External Commands" Chapter:      Added comment to "ex57.sh".   (Thanks, Paulo Marcel Coelho Aragao.)10) In "Internal Variables" section of "Variables Revisited" chapter:    Changed description of "$IFS" entry to correctly read "internal    field separator.    (Thanks, Mike Latimer.)    Added short introductory paragraph to "$IFS" entry.11) In "System and Administrative Commands" chapter:    Renamed "crond" entry to the more traditional "cron,"    and noted that "crond" is Matthew Dillon's version.    Added explanatory notes to "id" and "logname" entries.    (Thanks, Paulo Marcel Coelho Aragao, for all of the above.)12) In "Math Commands" section of "External Commands" chapter:    Added Paulo Mercel coelho Aragao's comment to "base.sh" example.13) In "Time/Date Commands" section of "External Commands" chapter:    Simplified "ex51.sh" example by eliminating an unnecessary 'eval.'   (Thanks, Paulo Marcel Coelho Aragao.)14) In "Miscellaneous Commands" section of "External Commands" Chapter:       Cleaned up in-line example at "mcookie" entry.    Corrected description of "objdump" entry.    Corrected "getopt" entry.   (Thanks, Paulo Marcel Coelho Aragao.)15) In "Text Processing Commands" of "External Commands and Filters"    chapter:    Added comment to in-line example at "grep" entry.16) In "Functions" chapter:    Added material to "ex59.sh" example.17) In "Tests" chapter:    Added "if grep" example at "if" entry.    (Thanks, Michel Briand.)

⌨️ 快捷键说明

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