]>
Commit | Line | Data |
---|---|---|
d3a24ed2 CR |
1 | This is a terse description of the new features added to bash-3.0 since |
2 | the release of bash-2.05b. As always, the manual page (doc/bash.1) is | |
3 | the place to look for complete descriptions. | |
4 | ||
5 | 1. New Features in Bash | |
6 | ||
7 | a. ANSI string expansion now implements the \x{hexdigits} escape. | |
8 | ||
9 | b. There is a new loadable `strftime' builtin. | |
10 | ||
11 | c. New variable, COMP_WORDBREAKS, which controls the readline completer's | |
12 | idea of word break characters. | |
13 | ||
14 | d. The `type' builtin no longer reports on aliases unless alias expansion | |
15 | will actually be performed. | |
16 | ||
17 | e. HISTCONTROL is now a colon-separated list of values, which permits | |
18 | more extensibility and backwards compatibility. | |
19 | ||
20 | f. HISTCONTROL may now include the `erasedups' option, which causes all lines | |
21 | matching a line being added to be removed from the history list. | |
22 | ||
23 | g. `configure' has a new `--enable-multibyte' argument that permits multibyte | |
24 | character support to be disabled even on systems that support it. | |
25 | ||
26 | h. New variables to support the bash debugger: BASH_ARGC, BASH_ARGV, | |
27 | BASH_SOURCE, BASH_LINENO, BASH_SUBSHELL, BASH_EXECUTION_STRING, | |
28 | BASH_COMMAND | |
29 | ||
30 | i. FUNCNAME has been changed to support the debugger: it's now an array | |
31 | variable. | |
32 | ||
33 | j. for, case, select, arithmetic commands now keep line number information | |
34 | for the debugger. | |
35 | ||
36 | k. There is a new `RETURN' trap executed when a function or sourced script | |
37 | returns (not inherited child processes; inherited by command substitution | |
38 | if function tracing is enabled and the debugger is active). | |
39 | ||
40 | l. New invocation option: --debugger. Enables debugging and turns on new | |
41 | `extdebug' shell option. | |
42 | ||
43 | m. New `functrace' and `errtrace' options to `set -o' cause DEBUG and ERR | |
44 | traps, respectively, to be inherited by shell functions. Equivalent to | |
45 | `set -T' and `set -E' respectively. The `functrace' option also controls | |
46 | whether or not the DEBUG trap is inherited by sourced scripts. | |
47 | ||
48 | n. The DEBUG trap is run before binding the variable and running the action | |
49 | list in a `for' command, binding the selection variable and running the | |
50 | query in a `select' command, and before attempting a match in a `case' | |
51 | command. | |
52 | ||
53 | o. New `--enable-debugger' option to `configure' to compile in the debugger | |
54 | support code. | |
55 | ||
56 | p. `declare -F' now prints out extra line number and source file information | |
57 | if the `extdebug' option is set. | |
58 | ||
59 | q. If `extdebug' is enabled, a non-zero return value from a DEBUG trap causes | |
60 | the next command to be skipped, and a return value of 2 while in a | |
61 | function or sourced script forces a `return'. | |
62 | ||
63 | r. New `caller' builtin to provide a call stack for the bash debugger. | |
64 | ||
65 | s. The DEBUG trap is run just before the first command in a function body is | |
66 | executed, for the debugger. | |
67 | ||
68 | t. `for', `select', and `case' command heads are printed when `set -x' is | |
69 | enabled. | |
70 | ||
71 | u. There is a new {x..y} brace expansion, which is shorthand for {x.x+1, | |
72 | x+2,...,y}. x and y can be integers or single characters; the sequence | |
73 | may ascend or descend; the increment is always 1. | |
74 | ||
75 | v. New ksh93-like ${!array[@]} expansion, expands to all the keys (indices) | |
76 | of array. | |
77 | ||
78 | w. New `force_fignore' shopt option; if enabled, suffixes specified by | |
79 | FIGNORE cause words to be ignored when performing word completion even | |
80 | if they're the only possibilities. | |
81 | ||
82 | x. New `gnu_errfmt' shopt option; if enabled, error messages follow the `gnu | |
83 | style' (filename:lineno:message) format. | |
84 | ||
85 | y. New `-o bashdefault' option to complete and compgen; if set, causes the | |
86 | whole set of bash completions to be performed if the compspec doesn't | |
87 | result in a match. | |
88 | ||
89 | z. New `-o plusdirs' option to complete and compgen; if set, causes directory | |
90 | name completion to be performed and the results added to the rest of the | |
91 | possible completions. | |
92 | ||
93 | aa. `kill' is available as a builtin even when the shell is built without | |
94 | job control. | |
95 | ||
96 | bb. New HISTTIMEFORMAT variable; value is a format string to pass to | |
97 | strftime(3). If set and not null, the `history' builtin prints out | |
98 | timestamp information according to the specified format when displaying | |
99 | history entries. If set, bash tells the history library to write out | |
100 | timestamp information when the history file is written. | |
101 | ||
102 | cc. The [[ ... ]] command has a new binary `=~' operator that performs | |
103 | extended regular expression (egrep-like) matching. | |
104 | ||
105 | dd. `configure' has a new `--enable-cond-regexp' option (enabled by default) | |
106 | to enable the =~ operator and regexp matching in [[ ... ]]. | |
107 | ||
108 | ee. Subexpressions matched by the =~ operator are placed in the new | |
109 | BASH_REMATCH array variable. | |
110 | ||
111 | ff. New `failglob' option that causes an expansion error when pathname | |
112 | expansion fails to produce a match. | |
113 | ||
114 | gg. New `set -o pipefail' option that causes a pipeline to return a failure | |
115 | status if any of the processes in the pipeline fail, not just the last | |
116 | one. | |
117 | ||
113d85a4 | 118 | hh. printf builtin understands two new escape sequences: \" and \?. |
545f34cf | 119 | |
113d85a4 | 120 | ii. `echo -e' understands two new escape sequences: \" and \?. |
545f34cf | 121 | |
113d85a4 CR |
122 | jj. The GNU `gettext' package and libintl have been integrated; the shell's |
123 | messages can be translated into different languages. | |
124 | ||
125 | kk. The `\W' prompt expansion now abbreviates $HOME as `~', like `\w'. | |
126 | ||
127 | ll. The error message printed when bash cannot open a shell script supplied | |
128 | as argument 1 now includes the name of the shell, to better identify | |
129 | the error as coming from bash. | |
545f34cf | 130 | |
d3a24ed2 CR |
131 | 2. New Features in Readline |
132 | ||
133 | a. History expansion has a new `a' modifier equivalent to the `g' modifier | |
134 | for compatibility with the BSD csh. | |
135 | ||
136 | b. History expansion has a new `G' modifier equivalent to the BSD csh `g' | |
137 | modifier, which performs a substitution once per word. | |
138 | ||
139 | c. All non-incremental search operations may now undo the operation of | |
140 | replacing the current line with the history line. | |
141 | ||
142 | d. The text inserted by an `a' command in vi mode can be reinserted with | |
143 | `.'. | |
144 | ||
145 | e. New bindable variable, `show-all-if-unmodified'. If set, the readline | |
146 | completer will list possible completions immediately if there is more | |
147 | than one completion and partial completion cannot be performed. | |
148 | ||
149 | f. There is a new application-callable `free_history_entry()' function. | |
150 | ||
151 | g. History list entries now contain timestamp information; the history file | |
152 | functions know how to read and write timestamp information associated | |
153 | with each entry. | |
154 | ||
155 | h. Four new key binding functions have been added: | |
156 | ||
157 | rl_bind_key_if_unbound() | |
158 | rl_bind_key_if_unbound_in_map() | |
159 | rl_bind_keyseq_if_unbound() | |
160 | rl_bind_keyseq_if_unbound_in_map() | |
161 | ||
545f34cf CR |
162 | i. New application variable, rl_completion_quote_character, set to any |
163 | quote character readline finds before it calls the application completion | |
164 | function. | |
165 | ||
166 | j. New application variable, rl_completion_suppress_quote, settable by an | |
167 | application completion function. If set to non-zero, readline does not | |
168 | attempt to append a closing quote to a completed word. | |
169 | ||
170 | k. New application variable, rl_completion_found_quote, set to a non-zero | |
171 | value if readline determines that the word to be completed is quoted. | |
172 | Set before readline calls any application completion function. | |
173 | ||
113d85a4 CR |
174 | l. New function hook, rl_completion_word_break_hook, called when readline |
175 | needs to break a line into words when completion is attempted. Allows | |
176 | the word break characters to vary based on position in the line. | |
177 | ||
178 | m. New bindable command: unix-filename-rubout. Does the same thing as | |
179 | unix-word-rubout, but adds `/' to the set of word delimiters. | |
180 | ||
d3a24ed2 | 181 | ------------------------------------------------------------------------------- |
7117c2d2 JA |
182 | This is a terse description of the new features added to bash-2.05b since |
183 | the release of bash-2.05a. As always, the manual page (doc/bash.1) is | |
184 | the place to look for complete descriptions. | |
185 | ||
186 | 1. New Features in Bash | |
187 | ||
188 | a. If set, TMOUT is the default timeout for the `read' builtin. | |
189 | ||
190 | b. `type' has two new options: `-f' suppresses shell function lookup, and | |
191 | `-P' forces a $PATH search. | |
192 | ||
193 | c. New code to handle multibyte characters. | |
194 | ||
195 | d. `select' was changed to be more ksh-compatible, in that the menu is | |
196 | reprinted each time through the loop only if REPLY is set to NULL. | |
197 | The previous behavior is available as a compile-time option. | |
198 | ||
199 | e. `complete -d' and `complete -o dirnames' now force a slash to be | |
200 | appended to names which are symlinks to directories. | |
201 | ||
202 | f. There is now a bindable edit-and-execute-command readline command, | |
203 | like the vi-mode `v' command, bound to C-xC-e in emacs mode. | |
204 | ||
205 | g. Added support for ksh93-like [:word:] character class in pattern matching. | |
206 | ||
207 | h. The $'...' quoting construct now expands \cX to Control-X. | |
208 | ||
209 | i. A new \D{...} prompt expansion; passes the `...' to strftime and inserts | |
210 | the result into the expanded prompt. | |
211 | ||
212 | j. The shell now performs arithmetic in the largest integer size the | |
213 | machine supports (intmax_t), instead of long. | |
214 | ||
215 | k. If a numeric argument is supplied to one of the bash globbing completion | |
216 | functions, a `*' is appended to the word before expansion is attempted. | |
217 | ||
218 | l. The bash globbing completion functions now allow completions to be listed | |
219 | with double tabs or if `show-all-if-ambiguous' is set. | |
220 | ||
221 | m. New `-o nospace' option for `complete' and `compgen' builtins; suppresses | |
222 | readline's appending a space to the completed word. | |
223 | ||
224 | n. New `here-string' redirection operator: <<< word. | |
225 | ||
226 | o. When displaying variables, function attributes and definitions are shown | |
227 | separately, allowing them to be re-used as input (attempting to re-use | |
228 | the old output would result in syntax errors). | |
229 | ||
230 | p. There is a new configuration option `--enable-mem-scramble', controls | |
231 | bash malloc behavior of writing garbage characters into memory at | |
232 | allocation and free time. | |
233 | ||
234 | q. The `complete' and `compgen' builtins now have a new `-s/-A service' | |
235 | option to complete on names from /etc/services. | |
236 | ||
237 | r. `read' has a new `-u fd' option to read from a specified file descriptor. | |
238 | ||
239 | s. Fix the completion code so that expansion errors in a directory name | |
240 | don't cause a longjmp back to the command loop. | |
241 | ||
242 | t. Fixed word completion inside command substitution to work a little more | |
243 | intuitively. | |
244 | ||
245 | u. The `printf' %q format specifier now uses $'...' quoting to print the | |
246 | argument if it contains non-printing characters. | |
247 | ||
248 | v. The `declare' and `typeset' builtins have a new `-t' option. When applied | |
249 | to functions, it causes the DEBUG trap to be inherited by the named | |
250 | function. Currently has no effect on variables. | |
251 | ||
252 | w. The DEBUG trap is now run *before* simple commands, ((...)) commands, | |
253 | [[...]] conditional commands, and for ((...)) loops. | |
254 | ||
255 | x. The expansion of $LINENO inside a shell function is only relative to the | |
256 | function start if the shell is interactive -- if the shell is running a | |
257 | script, $LINENO expands to the line number in the script. This is as | |
258 | POSIX-2001 requires. | |
259 | ||
260 | y. The bash debugger in examples/bashdb has been modified to work with the | |
261 | new DEBUG trap semantics, the command set has been made more gdb-like, | |
262 | and the changes to $LINENO make debugging functions work better. Code | |
263 | from Gary Vaughan. | |
264 | ||
265 | z. New [n]<&word- and [n]>&word- redirections from ksh93 -- move fds (dup | |
266 | and close). | |
267 | ||
268 | aa. There is a new `-l' invocation option, equivalent to `--login'. | |
269 | ||
270 | bb. The `hash' builtin has a new `-l' option to list contents in a reusable | |
271 | format, and a `-d' option to remove a name from the hash table. | |
272 | ||
273 | cc. There is now support for placing the long help text into separate files | |
274 | installed into ${datadir}/bash. Not enabled by default; can be turned | |
275 | on with `--enable-separate-helpfiles' option to configure. | |
276 | ||
277 | dd. All builtins that take operands accept a `--' pseudo-option, except | |
278 | `echo'. | |
279 | ||
280 | ee. The `echo' builtin now accepts \0xxx (zero to three octal digits following | |
281 | the `0') in addition to \xxx (one to three octal digits) for SUSv3/XPG6/ | |
282 | POSIX.1-2001 compliance. | |
283 | ||
284 | ||
285 | 2. New Features in Readline | |
286 | ||
287 | a. Support for key `subsequences': allows, e.g., ESC and ESC-a to both | |
288 | be bound to readline functions. Now the arrow keys may be used in vi | |
289 | insert mode. | |
290 | ||
291 | b. When listing completions, and the number of lines displayed is more than | |
292 | the screen length, readline uses an internal pager to display the results. | |
293 | This is controlled by the `page-completions' variable (default on). | |
294 | ||
295 | c. New code to handle editing and displaying multibyte characters. | |
296 | ||
297 | d. The behavior introduced in bash-2.05a of deciding whether or not to | |
298 | append a slash to a completed name that is a symlink to a directory has | |
299 | been made optional, controlled by the `mark-symlinked-directories' | |
300 | variable (default is the 2.05a behavior). | |
301 | ||
302 | e. The `insert-comment' command now acts as a toggle if given a numeric | |
303 | argument: if the first characters on the line don't specify a | |
304 | comment, insert one; if they do, delete the comment text | |
305 | ||
306 | f. New application-settable completion variable: | |
307 | rl_completion_mark_symlink_dirs, allows an application's completion | |
308 | function to temporarily override the user's preference for appending | |
309 | slashes to names which are symlinks to directories. | |
310 | ||
311 | g. New function available to application completion functions: | |
312 | rl_completion_mode, to tell how the completion function was invoked | |
313 | and decide which argument to supply to rl_complete_internal (to list | |
314 | completions, etc.). | |
315 | ||
316 | h. Readline now has an overwrite mode, toggled by the `overwrite-mode' | |
317 | bindable command, which could be bound to `Insert'. | |
318 | ||
319 | i. New application-settable completion variable: | |
320 | rl_completion_suppress_append, inhibits appending of | |
321 | rl_completion_append_character to completed words. | |
322 | ||
323 | j. New key bindings when reading an incremental search string: ^W yanks | |
324 | the currently-matched word out of the current line into the search | |
325 | string; ^Y yanks the rest of the current line into the search string, | |
326 | DEL or ^H deletes characters from the search string. | |
327 | ||
328 | ------------------------------------------------------------------------------- | |
f73dda09 JA |
329 | This is a terse description of the new features added to bash-2.05a since |
330 | the release of bash-2.05. As always, the manual page (doc/bash.1) is | |
331 | the place to look for complete descriptions. | |
332 | ||
333 | 1. New Features in Bash | |
334 | ||
335 | a. Added support for DESTDIR installation root prefix, so you can do a | |
336 | `make install DESTDIR=bash-root' and do easier binary packaging. | |
337 | ||
338 | b. Added support for builtin printf "'" flag character as per latest POSIX | |
339 | drafts. | |
340 | ||
341 | c. Support for POSIX.2 printf(1) length specifiers `j', `t', and `z' (from | |
342 | ISO C99). | |
343 | ||
344 | d. New autoconf macro, RL_LIB_READLINE_VERSION, for use by other applications | |
345 | (bash doesn't use very much of what it returns). | |
346 | ||
347 | e. `set [-+]o nolog' is recognized as required by the latest POSIX drafts, | |
348 | but ignored. | |
349 | ||
350 | f. New read-only `shopt' option: login_shell. Set to non-zero value if the | |
351 | shell is a login shell. | |
352 | ||
353 | g. New `\A' prompt string escape sequence; expands to time in 24 HH:MM format. | |
354 | ||
355 | h. New `-A group/-g' option to complete and compgen; does group name | |
356 | completion. | |
357 | ||
358 | i. New `-t' option to `hash' to list hash values for each filename argument. | |
359 | ||
360 | j. New [-+]O invocation option to set and unset `shopt' options at startup. | |
361 | ||
362 | k. configure's `--with-installed-readline' option now takes an optional | |
363 | `=PATH' suffix to set the root of the tree where readline is installed | |
364 | to PATH. | |
365 | ||
366 | l. The ksh-like `ERR' trap has been added. The `ERR' trap will be run | |
367 | whenever the shell would have exited if the -e option were enabled. | |
368 | It is not inherited by shell functions. | |
369 | ||
370 | m. `readonly', `export', and `declare' now print variables which have been | |
371 | given attributes but not set by assigning a value as just a command and | |
372 | a variable name (like `export foo') when listing, as the latest POSIX | |
373 | drafts require. | |
374 | ||
375 | n. `bashbug' now requires that the subject be changed from the default. | |
376 | ||
377 | o. configure has a new `--enable-largefile' option, like other GNU utilities. | |
378 | ||
379 | p. `for' loops now allow empty word lists after `in', like the latest POSIX | |
380 | drafts require. | |
381 | ||
382 | q. The builtin `ulimit' now takes two new non-numeric arguments: `hard', | |
383 | meaning the current hard limit, and `soft', meaning the current soft | |
384 | limit, in addition to `unlimited' | |
385 | ||
386 | r. `ulimit' now prints the option letter associated with a particular | |
387 | resource when printing more than one limit. | |
388 | ||
389 | s. `ulimit' prints `hard' or `soft' when a value is not `unlimited' but is | |
390 | one of RLIM_SAVED_MAX or RLIM_SAVED_CUR, respectively. | |
391 | ||
392 | t. The `printf' builtin now handles the %a and %A conversions if they're | |
393 | implemented by printf(3). | |
394 | ||
395 | u. The `printf' builtin now handles the %F conversion (just about like %f). | |
396 | ||
397 | v. The `printf' builtin now handles the %n conversion like printf(3). The | |
398 | corresponding argument is the name of a shell variable to which the | |
399 | value is assigned. | |
400 | ||
401 | 2. New Features in Readline | |
402 | ||
403 | a. Added extern declaration for rl_get_termcap to readline.h, making it a | |
404 | public function (it was always there, just not in readline.h). | |
405 | ||
406 | b. New #defines in readline.h: RL_READLINE_VERSION, currently 0x0402, | |
407 | RL_VERSION_MAJOR, currently 4, and RL_VERSION_MINOR, currently 2. | |
408 | ||
409 | c. New readline variable: rl_readline_version, mirrors RL_READLINE_VERSION. | |
410 | ||
411 | d. New bindable boolean readline variable: match-hidden-files. Controls | |
412 | completion of files beginning with a `.' (on Unix). Enabled by default. | |
413 | ||
414 | e. The history expansion code now allows any character to terminate a | |
415 | `:first-' modifier, like csh. | |
416 | ||
417 | f. New bindable variable `history-preserve-point'. If set, the history | |
418 | code attempts to place the user at the same location on each history | |
419 | line retrived with previous-history or next-history. | |
420 | ||
421 | ------------------------------------------------------------------------------- | |
28ef6c31 JA |
422 | This is a terse description of the new features added to bash-2.05 since |
423 | the release of bash-2.04. As always, the manual page (doc/bash.1) is | |
424 | the place to look for complete descriptions. | |
425 | ||
426 | 1. New Features in Bash | |
427 | ||
428 | a. Added a new `--init-file' invocation argument as a synonym for `--rcfile', | |
429 | per the new GNU coding standards. | |
430 | ||
431 | b. The /dev/tcp and /dev/udp redirections now accept service names as well as | |
432 | port numbers. | |
433 | ||
434 | c. `complete' and `compgen' now take a `-o value' option, which controls some | |
435 | of the aspects of that compspec. Valid values are: | |
436 | ||
437 | default - perform bash default completion if programmable | |
438 | completion produces no matches | |
439 | dirnames - perform directory name completion if programmable | |
440 | completion produces no matches | |
441 | filenames - tell readline that the compspec produces filenames, | |
442 | so it can do things like append slashes to | |
443 | directory names and suppress trailing spaces | |
444 | ||
445 | d. A new loadable builtin, realpath, which canonicalizes and expands symlinks | |
446 | in pathname arguments. | |
447 | ||
448 | e. When `set' is called without options, it prints function defintions in a | |
449 | way that allows them to be reused as input. This affects `declare' and | |
450 | `declare -p' as well. This only happens when the shell is not in POSIX | |
451 | mode, since POSIX.2 forbids this behavior. | |
452 | ||
453 | f. Bash-2.05 once again honors the current locale setting when processing | |
454 | ranges within pattern matching bracket expressions (e.g., [A-Z]). | |
455 | ||
456 | 2. New Features in Readline | |
457 | ||
458 | a. The blink timeout for paren matching is now settable by applications, | |
459 | via the rl_set_paren_blink_timeout() function. | |
460 | ||
461 | b. _rl_executing_macro has been renamed to rl_executing_macro, which means | |
462 | it's now part of the public interface. | |
463 | ||
464 | c. Readline has a new variable, rl_readline_state, which is a bitmap that | |
465 | encapsulates the current state of the library; intended for use by | |
466 | callbacks and hook functions. | |
467 | ||
468 | d. New application-callable function rl_set_prompt(const char *prompt): | |
469 | expands its prompt string argument and sets rl_prompt to the result. | |
470 | ||
471 | e. New application-callable function rl_set_screen_size(int rows, int cols): | |
472 | public method for applications to set readline's idea of the screen | |
473 | dimensions. | |
474 | ||
475 | f. New function, rl_get_screen_size (int *rows, int *columns), returns | |
476 | readline's idea of the screen dimensions. | |
477 | ||
478 | g. The timeout in rl_gather_tyi (readline keyboard input polling function) | |
479 | is now settable via a function (rl_set_keyboard_input_timeout()). | |
480 | ||
481 | h. Renamed the max_input_history variable to history_max_entries; the old | |
482 | variable is maintained for backwards compatibility. | |
483 | ||
484 | i. The list of characters that separate words for the history tokenizer is | |
485 | now settable with a variable: history_word_delimiters. The default | |
486 | value is as before. | |
487 | ||
488 | ------------------------------------------------------------------------------- | |
bb70624e JA |
489 | This is a terse description of the new features added to bash-2.04 since |
490 | the release of bash-2.03. As always, the manual page (doc/bash.1) is | |
491 | the place to look for complete descriptions. | |
492 | ||
493 | 1. New Features in Bash | |
494 | ||
495 | a. The history builtin has a `-d offset' option to delete the history entry | |
496 | at position `offset'. | |
497 | ||
498 | b. The prompt expansion code has two new escape sequences: \j, the number of | |
499 | active jobs; and \l, the basename of the shell's tty device name. | |
500 | ||
501 | c. The `bind' builtin has a new `-x' option to bind key sequences to shell | |
502 | commands. | |
503 | ||
504 | d. There is a new shell option, no_empty_command_completion, which, when | |
505 | enabled, disables command completion when TAB is typed on an empty line. | |
506 | ||
507 | e. The `help' builtin has a `-s' option to just print a builtin's usage | |
508 | synopsis. | |
509 | ||
510 | f. There are several new arithmetic operators: id++, id-- (variable | |
f73dda09 | 511 | post-increment/decrement), ++id, --id (variable pre-increment/decrement), |
bb70624e JA |
512 | expr1 , expr2 (comma operator). |
513 | ||
514 | g. There is a new ksh-93 style arithmetic for command: | |
515 | for ((expr1 ; expr2; expr3 )); do list; done | |
516 | ||
517 | h. The `read' builtin has a number of new options: | |
518 | -t timeout only wait timeout seconds for input | |
519 | -n nchars only read nchars from input instead of a full line | |
520 | -d delim read until delim rather than newline | |
521 | -s don't echo input chars as they are read | |
522 | ||
523 | i. The redirection code now handles several filenames specially: | |
524 | /dev/fd/N, /dev/stdin, /dev/stdout, and /dev/stderr, whether or | |
525 | not they are present in the file system. | |
526 | ||
527 | j. The redirection code now recognizes pathnames of the form | |
528 | /dev/tcp/host/port and /dev/udp/host/port, and tries to open a socket | |
529 | of the appropriate type to the specified port on the specified host. | |
530 | ||
531 | k. The ksh-93 ${!prefix*} expansion, which expands to the names of all | |
532 | shell variables with prefix PREFIX, has been implemented. | |
533 | ||
534 | l. There is a new dynamic variable, FUNCNAME, which expands to the name of | |
535 | a currently-executing function. Assignments to FUNCNAME have no effect. | |
536 | ||
537 | m. The GROUPS variable is no longer readonly; assignments to it are silently | |
538 | discarded. This means it can be unset. | |
539 | ||
540 | n. A new programmable completion facility, with two new builtin commands: | |
541 | complete and compgen. | |
542 | ||
543 | o. configure has a new option, `--enable-progcomp', to compile in the | |
544 | programmable completion features (enabled by default). | |
545 | ||
546 | p. `shopt' has a new option, `progcomp', to enable and disable programmable | |
547 | completion at runtime. | |
548 | ||
549 | q. Unsetting HOSTFILE now clears the list of hostnames used for completion. | |
550 | ||
551 | r. configure has a new option, `--enable-bash-malloc', replacing the old | |
552 | `--with-gnu-malloc' (which is still present for backwards compatibility). | |
553 | ||
554 | s. There is a new manual page describing rbash, the restricted shell. | |
555 | ||
556 | t. `bashbug' has new `--help' and `--version' options. | |
557 | ||
558 | u. `shopt' has a new `xpg_echo' option, which controls the behavior of | |
559 | `echo' with respect to backslash-escaped characters at runtime. | |
560 | ||
561 | v. If NON_INTERACTIVE_LOGIN_SHELLS is defined, all login shells read the | |
562 | startup files, even if they are not interactive. | |
563 | ||
564 | w. The LC_NUMERIC variable is now treated specially, and used to set the | |
565 | LC_NUMERIC locale category for number formatting, e.g., when `printf' | |
566 | displays floating-point numbers. | |
567 | ||
568 | 2. New features in Readline | |
569 | ||
570 | a. Parentheses matching is now always compiled into readline, and enabled | |
571 | or disabled when the value of the `blink-matching-paren' variable is | |
572 | changed. | |
573 | ||
574 | b. MS-DOS systems now use ~/_inputrc as the last-ditch inputrc filename. | |
575 | ||
576 | c. MS-DOS systems now use ~/_history as the default history file. | |
577 | ||
578 | d. history-search-{forward,backward} now leave the point at the end of the | |
579 | line when the string to search for is empty, like | |
580 | {reverse,forward}-search-history. | |
581 | ||
582 | e. history-search-{forward,backward} now leave the last history line found | |
583 | in the readline buffer if the second or subsequent search fails. | |
584 | ||
585 | f. New function for use by applications: rl_on_new_line_with_prompt, used | |
586 | when an application displays the prompt itself before calling readline(). | |
587 | ||
588 | g. New variable for use by applications: rl_already_prompted. An application | |
589 | that displays the prompt itself before calling readline() must set this to | |
590 | a non-zero value. | |
591 | ||
592 | h. A new variable, rl_gnu_readline_p, always 1. The intent is that an | |
593 | application can verify whether or not it is linked with the `real' | |
594 | readline library or some substitute. | |
595 | ||
596 | ------------------------------------------------------------------------------- | |
b72432fd JA |
597 | This is a terse description of the new features added to bash-2.03 since |
598 | the release of bash-2.02. As always, the manual page (doc/bash.1) is | |
599 | the place to look for complete descriptions. | |
600 | ||
601 | 1. New Features in Bash | |
602 | ||
603 | a. New `shopt' option, `restricted_shell', indicating whether or not the | |
604 | shell was started in restricted mode, for use in startup files. | |
605 | ||
606 | b. Filename generation is now performed on the words between ( and ) in | |
607 | array assignments (which it probably should have done all along). | |
608 | ||
609 | c. OLDPWD is now auto-exported, as POSIX.2 seems to require. | |
610 | ||
611 | d. ENV and BASH_ENV are read-only variables in a restricted shell. | |
612 | ||
613 | e. A change was made to the startup file code so that any shell begun with | |
614 | the `--login' option, even non-interactive shells, will source the login | |
615 | shell startup files. | |
616 | ||
617 | 2. New Features in Readline | |
618 | ||
619 | a. Many changes to the signal handling: | |
620 | o Readline now catches SIGQUIT and cleans up the tty before returning; | |
621 | o A new variable, rl_catch_signals, is available to application writers | |
622 | to indicate to readline whether or not it should install its own | |
623 | signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, | |
624 | SIGTTIN, and SIGTTOU; | |
625 | o A new variable, rl_catch_sigwinch, is available to application | |
626 | writers to indicate to readline whether or not it should install its | |
627 | own signal handler for SIGWINCH, which will chain to the calling | |
628 | applications's SIGWINCH handler, if one is installed; | |
629 | o There is a new function, rl_free_line_state, for application signal | |
630 | handlers to call to free up the state associated with the current | |
631 | line after receiving a signal; | |
632 | o There is a new function, rl_cleanup_after_signal, to clean up the | |
633 | display and terminal state after receiving a signal; | |
634 | o There is a new function, rl_reset_after_signal, to reinitialize the | |
635 | terminal and display state after an application signal handler | |
636 | returns and readline continues | |
637 | ||
638 | b. There is a new function, rl_resize_terminal, to reset readline's idea of | |
639 | the screen size after a SIGWINCH. | |
640 | ||
641 | c. New public functions: rl_save_prompt and rl_restore_prompt. These were | |
642 | previously private functions with a `_' prefix. | |
643 | ||
644 | d. New function hook: rl_pre_input_hook, called just before readline starts | |
645 | reading input, after initialization. | |
646 | ||
647 | e. New function hook: rl_display_matches_hook, called when readline would | |
648 | display the list of completion matches. The new function | |
649 | rl_display_match_list is what readline uses internally, and is available | |
650 | for use by application functions called via this hook. | |
651 | ||
652 | f. New bindable function, delete-char-or-list, like tcsh. | |
653 | ||
654 | g. A new variable, rl_erase_empty_line, which, if set by an application using | |
655 | readline, will cause readline to erase, prompt and all, lines on which the | |
656 | only thing typed was a newline. | |
657 | ||
658 | h. New bindable variable: `isearch-terminators'. | |
659 | ||
660 | i. New bindable function: `forward-backward-delete-char' (unbound by default). | |
661 | ||
662 | ------------------------------------------------------------------------------- | |
cce855bc JA |
663 | This is a terse description of the new features added to bash-2.02 since |
664 | the release of bash-2.01.1. As always, the manual page (doc/bash.1) is | |
665 | the place to look for complete descriptions. | |
666 | ||
667 | 1. New Features in Bash | |
668 | ||
669 | a. A new version of malloc, based on the older GNU malloc, that has many | |
670 | changes, is more page-based, is more conservative with memory usage, | |
671 | and does not `orphan' large blocks when they are freed. | |
672 | ||
673 | b. A new version of gmalloc, based on the old GLIBC malloc, with many | |
674 | changes and range checking included by default. | |
675 | ||
676 | c. A new implementation of fnmatch(3) that includes full POSIX.2 Basic | |
677 | Regular Expression matching, including character classes, collating | |
678 | symbols, equivalence classes, and support for case-insensitive pattern | |
679 | matching. | |
680 | ||
681 | d. ksh-88 egrep-style extended pattern matching ([@+*?!](patlist)) has been | |
682 | implemented, controlled by a new `shopt' option, `extglob'. | |
683 | ||
684 | e. There is a new ksh-like `[[' compound command, which implements | |
685 | extended `test' functionality. | |
686 | ||
687 | f. There is a new `printf' builtin, implemented according to the POSIX.2 | |
688 | specification. | |
689 | ||
690 | g. There is a new feature for command substitution: $(< filename) now expands | |
691 | to the contents of `filename', with any trailing newlines removed | |
692 | (equivalent to $(cat filename)). | |
693 | ||
694 | h. There are new tilde prefixes which expand to directories from the | |
695 | directory stack. | |
696 | ||
697 | i. There is a new `**' arithmetic operator to do exponentiation. | |
698 | ||
699 | j. There are new configuration options to control how bash is linked: | |
700 | `--enable-profiling', to allow bash to be profiled with gprof, and | |
701 | `--enable-static-link', to allow bash to be linked statically. | |
702 | ||
703 | k. There is a new configuration option, `--enable-cond-command', which | |
704 | controls whether or not the `[[' command is included. It is on by | |
705 | default. | |
706 | ||
707 | l. There is a new configuration option, `--enable-extended-glob', which | |
708 | controls whether or not the ksh extended globbing feature is included. | |
709 | It is enabled by default. | |
710 | ||
711 | m. There is a new configuration #define in config.h.top that, when enabled, | |
712 | will cause all login shells to source /etc/profile and one of the user- | |
713 | specific login shell startup files, whether or not the shell is | |
714 | interactive. | |
715 | ||
716 | n. There is a new invocation option, `--dump-po-strings', to dump | |
717 | a shell script's translatable strings ($"...") in GNU `po' format. | |
718 | ||
719 | o. There is a new `shopt' option, `nocaseglob', to enable case-insensitive | |
720 | pattern matching when globbing filenames and using the `case' construct. | |
721 | ||
722 | p. There is a new `shopt' option, `huponexit', which, when enabled, causes | |
723 | the shell to send SIGHUP to all jobs when an interactive login shell | |
724 | exits. | |
725 | ||
726 | q. `bind' has a new `-u' option, which takes a readline function name as an | |
727 | argument and unbinds all key sequences bound to that function in a | |
728 | specified keymap. | |
729 | ||
730 | r. `disown' now has `-a' and `-r' options, to limit operation to all jobs | |
731 | and running jobs, respectively. | |
732 | ||
733 | s. The `shopt' `-p' option now causes output to be displayed in a reusable | |
734 | format. | |
735 | ||
736 | t. `test' has a new `-N' option, which returns true if the filename argument | |
737 | has been modified since it was last accessed. | |
738 | ||
739 | u. `umask' now has a `-p' option to print output in a reusable format. | |
740 | ||
741 | v. A new escape sequence, `\xNNN', has been added to the `echo -e' and $'...' | |
742 | translation code. It expands to the character whose ascii code is NNN | |
743 | in hexadecimal. | |
744 | ||
745 | w. The prompt string expansion code has a new `\r' escape sequence. | |
746 | ||
747 | x. The shell may now be cross-compiled for the CYGWIN32 environment on | |
748 | a Unix machine. | |
749 | ||
750 | 2. New Features in Readline | |
751 | ||
752 | a. There is now an option for `iterative' yank-last-arg handline, so a user | |
753 | can keep entering `M-.', yanking the last argument of successive history | |
754 | lines. | |
755 | ||
756 | b. New variable, `print-completions-horizontally', which causes completion | |
757 | matches to be displayed across the screen (like `ls -x') rather than up | |
758 | and down the screen (like `ls'). | |
759 | ||
760 | c. New variable, `completion-ignore-case', which causes filename completion | |
761 | and matching to be performed case-insensitively. | |
762 | ||
763 | d. There is a new bindable command, `magic-space', which causes history | |
764 | expansion to be performed on the current readline buffer and a space to | |
765 | be inserted into the result. | |
766 | ||
767 | e. There is a new bindable command, `menu-complete', which enables tcsh-like | |
768 | menu completion (successive executions of menu-complete insert a single | |
769 | completion match, cycling through the list of possible completions). | |
770 | ||
771 | f. There is a new bindable command, `paste-from-clipboard', for use on Win32 | |
772 | systems, to insert the text from the Win32 clipboard into the editing | |
773 | buffer. | |
774 | ||
775 | g. The key sequence translation code now understands printf-style backslash | |
776 | escape sequences, including \NNN octal escapes. These escape sequences | |
777 | may be used in key sequence definitions or macro values. | |
778 | ||
779 | h. An `$include' inputrc file parser directive has been added. | |
780 | ||
781 | ------------------------------------------------------------------------------- | |
d166f048 JA |
782 | This is a terse description of the new features added to bash-2.01 since |
783 | the release of bash-2.0. As always, the manual page (doc/bash.1) is the | |
784 | place to look for complete descriptions. | |
785 | ||
786 | 1. New Features in Bash | |
787 | ||
788 | a. There is a new builtin array variable: GROUPS, the set of groups to which | |
789 | the user belongs. This is used by the test suite. | |
790 | ||
791 | 2. New Features in Readline | |
792 | ||
793 | a. If a key sequence bound to `universal-argument' is read while reading a | |
794 | numeric argument started with `universal-argument', it terminates the | |
795 | argument but is otherwise ignored. This provides a way to insert multiple | |
796 | instances of a digit string, and is how GNU emacs does it. | |
797 | ||
798 | ------------------------------------------------------------------------------- | |
ccc6cda3 JA |
799 | This is a terse description of the new features added to bash-2.0 since |
800 | the release of bash-1.14.7. As always, the manual page (doc/bash.1) is | |
801 | the place to look for complete descriptions. | |
726f6388 | 802 | |
ccc6cda3 | 803 | 1. New Features in Bash |
726f6388 | 804 | |
ccc6cda3 JA |
805 | a. There is a new invocation option, -D, that dumps translatable strings |
806 | in a script. | |
726f6388 | 807 | |
ccc6cda3 JA |
808 | b. The `long' invocation options must now be prefixed with `--'. |
809 | ||
810 | c. New long invocation options: --dump-strings, --help, --verbose | |
811 | ||
812 | d. The `nolineediting' invocation option was renamed to `noediting'. | |
813 | ||
814 | e. The `nobraceexpansion' and `quiet' long invocation options were removed. | |
815 | ||
816 | f. The `--help' and `--version' long options now work as the GNU coding | |
817 | standards specify. | |
818 | ||
819 | g. If invoked as `sh', bash now enters posix mode after reading the | |
820 | startup files, and reads and executes commands from the file named | |
821 | by $ENV if interactive (as POSIX.2 specifies). A login shell invoked | |
822 | as `sh' reads $ENV after /etc/profile and ~/.profile. | |
823 | ||
824 | h. There is a new reserved word, `time', for timing pipelines, builtin | |
825 | commands, and shell functions. It uses the value of the TIMEFORMAT | |
826 | variable as a format string describing how to print the timing | |
827 | statistics. | |
828 | ||
829 | i. The $'...' quoting syntax expands ANSI-C escapes in ... and leaves the | |
830 | result single-quoted. | |
831 | ||
832 | j. The $"..." quoting syntax performs locale-specific translation of ... | |
833 | and leaves the result double-quoted. | |
834 | ||
835 | k. LINENO now works correctly in functions. | |
836 | ||
837 | l. New variables: DIRSTACK, PIPESTATUS, BASH_VERSINFO, HOSTNAME, SHELLOPTS, | |
838 | MACHTYPE. The first three are array variables. | |
839 | ||
840 | m. The BASH_VERSION and BASH_VERSINFO variables now include the shell's | |
841 | `release status' (alpha[N], beta[N], release). | |
842 | ||
843 | n. Some variables have been removed: MAIL_WARNING, notify, history_control, | |
844 | command_oriented_history, glob_dot_filenames, allow_null_glob_expansion, | |
845 | nolinks, hostname_completion_file, noclobber, no_exit_on_failed_exec, and | |
846 | cdable_vars. Most of them are now implemented with the new `shopt' | |
847 | builtin; others were already implemented by `set'. | |
848 | ||
849 | o. Bash now uses some new variables: LC_ALL, LC_MESSAGES, LC_CTYPE, | |
850 | LC_COLLATE, LANG, GLOBIGNORE, HISTIGNORE. | |
851 | ||
852 | p. The shell now supports integer-indexed arrays of unlimited length, | |
853 | with a new compound assignment syntax and changes to the appropriate | |
854 | builtin commands (declare/typeset, read, readonly, etc.). The array | |
855 | index may be an arithmetic expression. | |
856 | ||
857 | q. ${!var}: indirect variable expansion, equivalent to eval \${$var}. | |
858 | ||
859 | r. ${paramter:offset[:length]}: variable substring extraction. | |
860 | ||
861 | s. ${parameter/pattern[/[/]string]}: variable pattern substitution. | |
862 | ||
863 | t. The $[...] arithmetic expansion syntax is no longer supported, in | |
864 | favor of $((...)). | |
865 | ||
866 | u. Aliases can now be expanded in shell scripts with a shell option | |
867 | (shopt expand_aliases). | |
868 | ||
869 | v. History and history expansion can now be used in scripts with | |
870 | set -o history and set -H. | |
871 | ||
872 | w. All builtins now return an exit status of 2 for incorrect usage. | |
873 | ||
874 | x. Interactive shells resend SIGHUP to all running or stopped children | |
875 | if (and only if) they exit due to a SIGHUP. | |
876 | ||
877 | y. New prompting expansions: \a, \e, \H, \T, \@, \v, \V. | |
878 | ||
879 | z. Variable expansion in prompt strings is now controllable via a shell | |
880 | option (shopt promptvars). | |
881 | ||
882 | aa. Bash now defaults to using command-oriented history. | |
883 | ||
884 | bb. The history file ($HISTFILE) is now truncated to $HISTFILESIZE after | |
885 | being written. | |
886 | ||
887 | cc. The POSIX.2 conditional arithmetic evaluation syntax (expr ? expr : expr) | |
888 | has been implemented. | |
889 | ||
890 | dd. Each builtin now accepts `--' to signify the end of the options, except | |
891 | as documented (echo, etc.). | |
892 | ||
893 | ee. All builtins use -p to display values in a re-readable format where | |
894 | appropriate, except as documented (echo, type, etc.). | |
895 | ||
896 | ff. The `alias' builtin has a new -p option. | |
897 | ||
898 | gg. Changes to the `bind' builtin: | |
899 | o has new options: -psPSVr. | |
900 | o the `-d' option was renamed to `-p' | |
901 | o the `-v' option now dumps variables; the old `-v' is now `-P' | |
902 | ||
903 | hh. The `bye' synonym for `exit' was removed. | |
904 | ||
905 | ii. The -L and -P options to `cd' and `pwd' have been documented. | |
906 | ||
907 | jj. The `cd' builtin now does spelling correction on the directory name | |
908 | by default. This is settable with a shell option (shopt cdspell). | |
909 | ||
910 | kk. The `declare' builtin has new options: -a, -F, -p. | |
911 | ||
912 | ll. The `dirs' builtin has new options: -c, -p, -v. | |
913 | ||
914 | mm. The new `disown' builtin removes jobs from the shell's jobs table | |
915 | or inhibits the resending of SIGHUP when the shell receives a | |
916 | SIGHUP. | |
917 | ||
918 | nn. The `echo' builtin has a new escape character: \e. | |
919 | ||
920 | oo. The `enable' builtin can now load new builtins dynamically from shared | |
921 | objects on systems with the dlopen/dlsym interface. There are a number | |
922 | of examples in the examples/loadables directory. There are also | |
923 | new options: -d, -f, -s, -p. | |
924 | ||
925 | pp. The `-all' option to `enable' was removed in favor of `-a'. | |
926 | ||
927 | qq. The `exec' builtin has new options: -l, -c, -a. | |
928 | ||
929 | rr. The `hash' builtin has a new option: -p. | |
930 | ||
931 | ss. The `history' builtin has new options: -c, -p, -s. | |
932 | ||
933 | tt. The `jobs' builtin has new options: -r, -s. | |
934 | ||
935 | uu. The `kill' builtin has new options: -n signum, -l signame. | |
936 | ||
937 | vv. The `pushd' and `popd' builtins have a new option: -n. | |
938 | ||
939 | ww. The `read' builtin has new options: -p prompt, -e, -a. | |
940 | ||
941 | xx. The `readonly' builtin has a new -a option, and the -n option was removed. | |
942 | ||
943 | yy. Changes to the `set' builtin: | |
944 | o new options: -B, -o keyword, -o onecmd, -o history | |
945 | o options removed: -l, -d, -o nohash | |
946 | o options changed: +o, -h, -o hashall | |
947 | o now displays variables in a format that can be re-read as input | |
948 | ||
949 | zz. The new `shopt' builtin controls shell optional behavior previously | |
950 | done by setting and unsetting certain shell variables. | |
951 | ||
952 | aaa. The `test' builtin has new operators: -o option, s1 == s2, s1 < s2, | |
953 | and s1 > s2, where s1 and s2 are strings. | |
954 | ||
955 | bbb. There is a new trap, DEBUG, executed after every simple command. | |
956 | ||
957 | ccc. The `trap' builtin has a new -p option. | |
958 | ||
959 | ddd. The `ulimit' builtin has a new -l option on 4.4BSD-based systems. | |
960 | ||
961 | eee. The PS1, PS2, PATH, and IFS variables may now be unset. | |
962 | ||
963 | fff. The restricted shell mode has been expanded and is now documented. | |
964 | ||
965 | ggg. Security improvements: | |
966 | o functions are not imported from the environment if running setuid | |
967 | or with -p | |
968 | o no startup files are sourced if running setuid or with -p | |
969 | ||
970 | hhh. The documentation has been overhauled: the texinfo manual was | |
971 | expanded, and HTML versions of the man page and texinfo manual | |
972 | are included. | |
973 | ||
974 | iii. Changes to Posix mode: | |
975 | o Command lookup now finds special builtins before shell functions. | |
976 | o Failure of a special builtin causes a non-interactive shell to | |
977 | exit. Failures are defined in the POSIX.2 specification. | |
978 | o If the `cd' builtin finds a directory to change to using $CDPATH, | |
979 | the value assigned to PWD when `cd' completes does not contain | |
980 | any symbolic links. | |
981 | o A non-interactive shell exits if a variable assignment error | |
982 | occurs when no command name follows the assignment statements. | |
983 | o A non-interactive shell exits if the interation variable in a | |
984 | `for' statement or the selection variable in a `select' statement | |
985 | is read-only or another variable assignment error occurs. | |
986 | o The `<>' redirection operator now opens a file for both stdin and | |
987 | stdout by default, not just when in posix mode. | |
988 | o Assignment statements preceding special builtins now persist in | |
989 | the shell's environment when the builtin completes. | |
990 | ||
991 | Posix mode is now completely POSIX.2-compliant (modulo bugs). When | |
992 | invoked as sh, bash should be completely POSIX.2-compliant. | |
993 | ||
994 | jjj. The default value of PS1 is now "\s-\v\$ ". | |
995 | ||
996 | kkk. The ksh-like ((...)) arithmetic command syntax has been implemented. | |
997 | This is exactly equivalent to `let "..."'. | |
998 | ||
999 | lll. Integer constants have been extended to base 64. | |
1000 | ||
1001 | mmm. The `ulimit' builtin now sets both hard and soft limits and reports the | |
1002 | soft limit by default. | |
1003 | ||
1004 | 2. New Features in Readline | |
1005 | ||
1006 | a. New variables: enable-keypad, input-meta (new name for meta-flag), | |
1007 | mark-directories, visible-stats (now documented), disable-completion, | |
1008 | comment-begin. | |
1009 | ||
1010 | b. New bindable commands: kill-region, copy-region-as-kill, | |
1011 | copy-backward-word, copy-forward-word, set-mark, exchange-point-and-mark, | |
1012 | character-search, character-search-backward, insert-comment, | |
1013 | glob-expand-word, glob-list-expansions, dump-variables, dump-macros. | |
1014 | ||
1015 | c. New emacs keybindings: delete-horizontal-space (M-\), | |
1016 | insert-completions (M-*), possible-completions (M-=). | |
1017 | ||
1018 | d. The history-search-backward and history-search-forward commands were | |
1019 | modified to be the same as previous-line and next-line if point is at | |
1020 | the start of the line. | |
1021 | ||
1022 | e. More file types are available for the visible-stats mode. | |
1023 | ||
1024 | 3. Changes of interest in the Bash implementation | |
1025 | ||
1026 | a. There is a new autoconf-based configuration mechanism. | |
1027 | ||
1028 | b. More things have been moved from Posix mode to standard shell behavior. | |
1029 | ||
1030 | c. The trace output (set -x) now inserts quotes where necessary so it can | |
1031 | be reused as input. | |
1032 | ||
1033 | d. There is a compile-time option for a system-wide interactive shell | |
1034 | startup file (disabled by default). | |
1035 | ||
1036 | e. The YACC grammar is smaller and tighter, and all 66 shift-reduce | |
1037 | conflicts are gone. Several parsing bugs have been fixed. | |
1038 | ||
1039 | f. Builtin option parsing has been regularized (using internal_getopt()), | |
1040 | with the exception of `echo', `type', and `set'. | |
1041 | ||
1042 | g. Builtins now return standard usage messages constructed from the | |
1043 | `short doc' used by the help builtin. | |
1044 | ||
1045 | h. Completion now quotes using backslashes by default, but honors | |
1046 | user-supplied quotes. | |
1047 | ||
1048 | i. The GNU libc malloc is available as a configure-time option. | |
1049 | ||
1050 | j. There are more internationalization features; bash uses gettext if | |
1051 | it is available. The $"..." translation syntax uses the current | |
1052 | locale and gettext. | |
1053 | ||
1054 | k. There is better reporting of job termination when the shell is not | |
1055 | interactive. | |
1056 | ||
1057 | l. The shell is somewhat more efficient: it uses a little less memory and | |
1058 | makes fewer system calls. | |
1059 | ||
1060 | 4. Changes of interest in the Readline implementation | |
1061 | ||
1062 | a. There is now support for readline `callback' functions. | |
1063 | ||
1064 | b. There is now support for user-supplied input, redisplay, and terminal | |
1065 | preparation functions. | |
1066 | ||
1067 | c. Most of the shell-specific code in readline has been generalized or | |
1068 | removed. | |
1069 | ||
1070 | d. Most of the annoying redisplay bugs have been fixed, notably the problems | |
1071 | with incremental search and excessive redrawing when special characters | |
1072 | appear in the prompt string. | |
1073 | ||
1074 | e. There are new library functions and variables available to application | |
1075 | writers, most having to do with completion and quoting. | |
1076 | ||
1077 | f. The NEWLINE character (^J) is now treated as a search terminator by the | |
1078 | incremental search functions. |