📄 changes
字号:
to `cd' to a directory name that is supplied as the first word of a simple command.e. There is a new `checkjobs' option that causes the shell to check for and report any running or stopped jobs at exit.f. The programmable completion code exports a new COMP_TYPE variable, set to a character describing the type of completion being attempted.g. The programmable completion code exports a new COMP_KEY variable, set to the character that caused the completion to be invoked (e.g., TAB).h. If creation of a child process fails due to insufficient resources, bash will try again several times before reporting failure.i. The programmable completion code now uses the same set of characters as readline when breaking the command line into a list of words.j. The block multiplier for the ulimit -c and -f options is now 512 when in Posix mode, as Posix specifies.k. Changed the behavior of the read builtin to save any partial input received in the specified variable when the read builtin times out. This also results in variables specified as arguments to read to be set to the empty string when there is no input available. When the read builtin times out, it returns an exit status greater than 128.l. The shell now has the notion of a `compatibility level', controlled by new variables settable by `shopt'. Setting this variable currently restores the bash-3.1 behavior when processing quoted strings on the rhs of the `=~' operator to the `[[' command.m. The `ulimit' builtin now has new -b (socket buffer size) and -T (number of threads) options.n. The -p option to `declare' now displays all variable values and attributes (or function values and attributes if used with -f).o. There is a new `compopt' builtin that allows completion functions to modify completion options for existing completions or the completion currently being executed.p. The `read' builtin has a new -i option which inserts text into the reply buffer when using readline.q. A new `-E' option to the complete builtin allows control of the default behavior for completion on an empty line.r. There is now limited support for completing command name words containing globbing characters.s. Changed format of internal help documentation for all builtins to roughly follow man page format.t. The `help' builtin now has a new -d option, to display a short description, and a -m option, to print help information in a man page-like format.u. There is a new `mapfile' builtin to populate an array with lines from a given file.v. If a command is not found, the shell attempts to execute a shell function named `command_not_found_handle', supplying the command words as the function arguments.w. There is a new shell option: `globstar'. When enabled, the globbing code treats `**' specially -- it matches all directories (and files within them, when appropriate) recursively.x. There is a new shell option: `dirspell'. When enabled, the filename completion code performs spelling correction on directory names during completion.y. The `-t' option to the `read' builtin now supports fractional timeout values.z. Brace expansion now allows zero-padding of expanded numeric values and will add the proper number of zeroes to make sure all values contain the same number of digits.aa. There is a new bash-specific bindable readline function: `dabbrev-expand'. It uses menu completion on a set of words taken from the history list.bb. The command assigned to a key sequence with `bind -x' now sets two new variables in the environment of the executed command: READLINE_LINE_BUFFER and READLINE_POINT. The command can change the current readline line and cursor position by modifying READLINE_LINE_BUFFER and READLINE_POINT, respectively.cc. There is a new &>> redirection operator, which appends the standard output and standard error to the named file.dd. The parser now understands `|&' as a synonym for `2>&1 |', which redirects the standard error for a command through a pipe.ee. The new `;&' case statement action list terminator causes execution to continue with the action associated with the next pattern in the statement rather than terminating the command.ff. The new `;;&' case statement action list terminator causes the shell to test the next set of patterns after completing execution of the current action, rather than terminating the command.gg. The shell understands a new variable: PROMPT_DIRTRIM. When set to an integer value greater than zero, prompt expansion of \w and \W will retain only that number of trailing pathname components and replace the intervening characters with `...'.hh. There are new case-modifying word expansions: uppercase (^[^]) and lowercase (,[,]). They can work on either the first character or array element, or globally. They accept an optional shell pattern that determines which characters to modify. There is an optionally- configured feature to include capitalization operators.ii. The shell provides associative array variables, with the appropriate support to create, delete, assign values to, and expand them.jj. The `declare' builtin now has new -l (convert value to lowercase upon assignment) and -u (convert value to uppercase upon assignment) options. There is an optionally-configurable -c option to capitalize a value at assignment.kk. There is a new `coproc' reserved word that specifies a coprocess: an asynchronous command run with two pipes connected to the creating shell. Coprocs can be named. The input and output file descriptors and the PID of the coprocess are available to the calling shell in variables with coproc-specific names.4. New Features in Readlinea. A new variable, rl_sort_completion_matches; allows applications to inhibit match list sorting (but beware: some things don't work right if applications do this).b. A new variable, rl_completion_invoking_key; allows applications to discover the key that invoked rl_complete or rl_menu_complete.c. The functions rl_block_sigint and rl_release_sigint are now public and available to calling applications who want to protect critical sections (like redisplay).d. The functions rl_save_state and rl_restore_state are now public and available to calling applications; documented rest of readline's state flag values.e. A new user-settable variable, `history-size', allows setting the maximum number of entries in the history list.f. There is a new implementation of menu completion, with several improvements over the old; the most notable improvement is a better `completions browsing' mode.g. The menu completion code now uses the rl_menu_completion_entry_function variable, allowing applications to provide their own menu completion generators.h. There is support for replacing a prefix of a pathname with a `...' when displaying possible completions. This is controllable by setting the `completion-prefix-display-length' variable. Matches with a common prefix longer than this value have the common prefix replaced with `...'.i. There is a new `revert-all-at-newline' variable. If enabled, readline will undo all outstanding changes to all history lines when `accept-line' is executed.------------------------------------------------------------------------------This document details the changes between this version, bash-3.2-release,and the previous version, bash-3.2-beta.1. Changes to Basha. Fixed a bug that caused the temporary environment passed to a command to affect the shell's environment under certain circumstances.b. Fixed a bug in the printf builtin that caused the %q format specifier to ignore empty string arguments.c. Improved multibyte character environment detection at configuration time.d. Fixed a bug in the read builtin that left spurious escape characters in the input after processing backslashes when assigning to an array variable.2. Changes to Readlinea. Fixed a redisplay bug that occurred in multibyte-capable locales when the prompt was one character longer than the screen width.------------------------------------------------------------------------------This document details the changes between this version, bash-3.2-beta,and the previous version, bash-3.2-alpha.1. Changes to Basha. Changed the lexical analyzer to treat locale-specific blank characters as white space.b. Fixed a bug in command printing to avoid confusion between redirections and process substitution.c. Fixed problems with cross-compiling originating from inherited environment variables.d. Added write error reporting to printf builtin.e. Fixed a bug in the variable expansion code that could cause a core dump in a multi-byte locale.f. Fixed a bug that caused substring expansion of a null string to return incorrect results.g. BASH_COMMAND now retains its previous value while executing commands as the result of a trap, as the documentation states.2. Changes to Readlinea. Fixed a bug with prompt redisplay in a multi-byte locale to avoid redrawing the prompt and input line multiple times.b. Fixed history expansion to not be confused by here-string redirection.c. Readline no longer treats read errors by converting them to newlines, as it does with EOF. This caused partial lines to be returned from readline().------------------------------------------------------------------------------This document details the changes between this version, bash-3.2-alpha,and the previous version, bash-3.1-release.1. Changes to Basha. Fixed a source bug that caused the minimal configuration to not compile.b. Fixed memory leaks in error handling for the `read' builtin.c. Changed the [[ and (( compound commands to set PIPESTATUS with their exit status.d. Fixed some parsing problems with compound array assignments.e. Added additional configuration changes for: NetBSD (incomplete multibyte character support)f. Fixed two bugs with local array variable creation when shadowing a variable of the same name from a previous context.g. Fixed the `read' builtin to restore the correct set of completion functions if a timeout occurs.h. Added code to defer the initialization of HISTSIZE (and its stifling of the history list) until the history file is loaded, allowing a startup file to override the default value.i. Tightened up the arithmetic expression parsing to produce better error messages when presented with invalid operators.j. Fixed the cross-compilation support to build the signal list at shell invocation rather than compile time if cross-compiling.k. Fixed multibyte support for non-gcc compilers (or compilers that do not allow automatic array variable sizing based on a non-constant value).l. Several fixes to the code that manages the list of terminated jobs and their exit statuses, and the list of active and recently-terminated jobs to avoid pid aliasing/wraparound and allocation errors.m. Fixed a problem that allowed scripts to die due to SIGINT while waiting for children, even when started in the background or otherwise ignoring SIGINT.n. Fixed a bug that caused shells invoked as -/bin/bash from not being recognized as login shells.o. Fixed a problem that caused shells in the background to give the terminal to a process group other than the foreground shell process group.p. Fixed a problem with extracting the `varname' in ${#varname}.q. Fixed the code that handles SIGQUIT to not exit immediately -- thereby calling functions that may not be called in a signal handler context -- but set a flag and exit afterward (like SIGINT).r. Changed the brace expansion code to skip over braces that don't begin a valid matched brace expansion construct.s. Fixed `typeset' and `declare' to not require that their shell function operands to be valid shell identifiers.t. Changed `test' to use access(2) with a temporary uid/euid swap when testing file attributes and running setuid, and access(2) in most other cases.u. Changed completion code to not attempt command name completion on a line consisting solely of whitespace when no_empty_command_completion is set.v. The `hash' builtin now prints nothing in posix mode when the hash table is empty, and prints a message to that effect to stdout instead of stderr when not in posix mode.w. Fixed a bug in the extended pattern matching code that caused it to fail to match periods with certain patterns.x. Fixed a bug that caused the shell to dump core when performing filename generation in directories with thousands of files.y. Returned to the original Bourne shell rules for parsing ``: no recursive parsing of embedded quoted strings or ${...} constructs.z. The inheritence of the DEBUG, RETURN, and ERR traps is now dependent only on the settings of the `functrace' and `errtrace' shell options, rather than whether or not the shell is in debugging mode.aa. Fixed a problem with $HOME being converted to ~ in the expansion of members of the DIRSTACK array.bb. Fixed a problem with quoted arguments to arithmetic expansions in certain constructs.cc. The command word completion code now no longer returns matching directories while searching $PATH.dd. Fixed a bug with zero-padding and precision handling in snprin
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -