Imported from ../bash-3.0.tar.gz.
[platform/upstream/bash.git] / CHANGES
1 This document details the changes between this version, bash-3.0-release,
2 and the previous version, bash-3.0-rc1.
3
4 1.  Changes to Bash
5
6 a.  Fixed a boundary overrun that could cause segmentation faults when the
7     completion code hands an incomplete construct to the word expansion
8     functions.
9
10 b.  Changed posix mode behavior so that an error in a variable assignment
11     preceding a special builtin causes a non-interactive shell to exit.
12
13 c.  Change the directory expansion portion of the completion code to not
14     expand embedded command substitutions if the directory name appears in
15     the file system.
16
17 d.  Fixed a problem that caused `bash -r' to turn on restrictions before
18     reading the startup files.
19
20 e.  Fixed a problem with the default operation of the `umask' builtin.
21
22 2.  Changes to Readline
23
24 a.  Fixed a problem with readline saving the contents of the current line
25     before beginning a non-interactive search.
26
27 b.  Fixed a problem with EOF detection when using rl_event_hook.
28
29 c.  Fixed a problem with the vi mode `p' and `P' commands ignoring numeric
30     arguments.
31
32 ------------------------------------------------------------------------------
33 This document details the changes between this version, bash-3.0-rc1,
34 and the previous version, bash-3.0-beta1.
35
36 1.  Changes to Bash
37
38 a.  Fixed a bug that caused incorrect behavior when referecing element 0 of
39     an array using $array, element 0 was unset, and `set -u' was enabled.
40
41 b.  System-specific changes for: SCO Unix 3.2, Tandem.
42
43 c.  Fixed a bug that caused inappropriate word splitting when a variable was
44     expanded within a double-quoted string that also included $@.
45
46 d.  Fixed a bug that caused `pwd' to not display anything in physical mode
47     when the file system had changed underneath the shell.
48
49 e.  Fixed a bug in the pre- and post- increment and decrement parsing in the
50     expression evaluator that caused errors when the operands and corresponding
51     operators were separated by whitespace.
52
53 f.  Fixed a bug that caused `history -p' to add an entry to the history list,
54     counter to the documentation.  (Keeps the history expansions invoked by
55     emacs-mode command line editing from doing that as well.)
56
57 g.  Fixed a bug that could cause a core dump if `cd' is asked to print out a
58     pathname longer than PATH_MAX characters.
59
60 h.  Fixed a bug that caused jobs to be put into the wrong process group under
61     some circumstances after enabling job control with `set -m'.
62
63 i.  `unalias' now  returns failure if no alias name arguments are supplied.
64
65 j.  Documented the characters not allowed to appear in an alias name.
66
67 k.  $* is no longer expanded as if in double quotes when it appears in the
68     body of a here document, as the SUS seems to require.
69
70 l.  The `bashbug' script now uses a directory in $TMPDIR for exclusive
71     access rather than trying to guess how the underlying OS provides for
72     secure temporary file creation.
73
74 m.  Fixed a few problems with `cd' and `pwd' when asked to operate on pathnames
75     longer than PATH_MAX characters.
76
77 n.  Fixed a memory leak caused when creating multiple local array variables
78     with identical names.
79
80 o.  Fixed a problem with calls to getcwd() so that bash now operates better
81     when the full pathname to the current directory is longer than PATH_MAX
82     bytes.
83
84 p.  The `trap' builtin now reports an error if a single non-signal argument
85     is specified.
86
87 q.  Fixed a bug that caused `umask' to not work correctly when presented
88     with a mask of all 0s.
89
90 r.  When `getopts' reaches the end of options, OPTARG is unset, as POSIX
91     appears to specify.
92
93 s.  Interactive mode now depends on whether or not stdin and stderr are
94     connected to a tty; formerly it  was stdin and stdout.  POSIX requires
95     this.
96
97 t.  Fixed vi-mode completion to work more as POSIX specifies (e.g., doing the
98     right kind of filename generation).
99
100 2.  Changes to Readline
101
102 a.  Fixed a problem that could cause readline to refer to freed memory when
103     moving between history lines while doing searches.
104
105 b.  Improvements to the code that expands and displays prompt strings
106     containing multibyte characters.
107
108 c.  Fixed a problem with vi-mode not correctly remembering the numeric argument
109     to the last `c'hange command for later use with `.'.
110
111 d.  Fixed a bug in vi-mode that caused multi-digit count arguments to work
112     incorrectly.
113
114 e.  Fixed a problem in vi-mode that caused the last text modification command
115     to not be remembered across different command lines.
116
117 f.  Fixed problems with changing characters and changing case at the end of
118     the line.
119
120 3.  New Features in Bash
121
122 a.  The `jobs', `kill', and `wait' builtins now accept job control notation
123     even if job control is not enabled.
124
125 b.  The historical behavior of `trap' that allows a missing `action' argument
126     to cause each specified signal's handling to be reset to its default is
127     now only supported when `trap' is given a single non-option argument.
128
129 4.  New Features in Readline
130
131 a.  When listing completions, directories have a `/' appended if the
132     `mark-directories' option has been enabled.
133
134 ------------------------------------------------------------------------------
135 This document details the changes between this version, bash-3.0-beta1,
136 and the previous version, bash-3.0-alpha.
137
138 1.  Changes to Bash
139
140 a.  Fixes to build correctly when arrays are not compiled into the shell.
141
142 b.  Fixed command substitution to run any exit trap defined in the command
143     substitution before returning; the exit trap is not inherited from the
144     calling shell.
145
146 c.  Fixes to process group synchronization code so that every child process
147     attempts to set the terminal's process group; fixes some synchronization
148     problems on Linux kernels that schedule the child to always run before
149     the parent.
150
151 d.  Fixed processing of octal and hex constants in printf builtin for POSIX.2
152     compliance.
153
154 e.  Fixed a couple of core dumps in the pattern removal code.
155
156 f.  Fixes to the array subrange extraction code to deal better with sparse
157     arrays.
158
159 g.  Parser errors and other errors that result in the shell exiting now cause
160     the exit trap to be run.
161
162 h.  Change the command substitution completion functions to not append any
163     closing quote, because it would be inserted a closing "`" or ")".
164
165 i.  Fix history initialization so assignments to $histchars made in startup
166     files are honored.
167
168 j.  If an exit trap does not contain a call to `exit', the shell now uses
169     the exit status of the last command executed before the trap as the exit
170     status of the shell.
171
172 k.  The parser now prompts with $PS2 if it reads a newline while parsing a
173     compound array assignment statement.
174
175 l.  When performing a compound array assignment, the parser doesn't treat
176     words of the form [index]=value as assignments if they're the result of
177     expansions.
178
179 m.  Fixed a bug that caused `return' executed in a trap command to make the
180     shell think it was still running the trap.
181
182 n.  Fixed the value of errno set by the pathname canonicalization functions.
183
184 o.  Changed the grammar so that `time' alone on a line times a null command
185     rather than being a syntax error.
186
187 p.  The pattern substitution coded no longer performs quote removal on the
188     pattern before trying to match it, as the pattern removal functions do.
189
190 q.  Fixed a bug that could cause core dumps when checking whether a quoted
191     command name was being completed.
192
193 r.  Fixes to the pattern removal and pattern replacement expansions to deal
194     with multibyte characters better (and faster).
195
196 s.  Fix to the substring expansion (${param:off[:len]}) to deal with (possibly
197     multibyte) characters instead of raw bytes.
198
199 t.  Fixed a bug that caused some key bindings set in an inputrc to be ignored
200     at shell startup.
201
202 u.  Fixed a bug that caused unsetting a local variable within a function to
203     not work correctly.
204
205 v.  Fixed a bug that caused invalid variables to be created when using
206     `read -a'.
207
208 w.  Fixed a bug that caused "$@" to expand incorrectly when used as the right
209     hand side of a parameter expansion such as ${word:="$@"} if the first
210     character of $IFS was not a space.
211
212 x.  Fixed a slight cosmetic problem when printing commands containing a
213     `>&word' redirection.
214
215 y.  Fixed a problem that could cause here documents to not be created correctly
216     if the system temporary directory did not allow writing.
217
218 2.  Changes to Readline
219
220 a.  Change to history expansion functions to treat `^' as equivalent to word
221     one, as the documention states.
222
223 b.  Some changes to the display code to improve display and redisplay of
224     multibyte characters.
225
226 c.  Changes to speed up the multibyte character redisplay code.
227
228 d.  Fixed a bug in the vi-mode `E' command that caused it to skip over the
229     last character of a word if invoked while point was on the word's
230     next-to-last character.
231
232 e.  Fixed a bug that could cause incorrect filename quoting when
233     case-insensitive completion was enabled and the word being completed
234     contained backslashes quoting word break characters.
235
236 f.  Fixed a bug in redisplay triggered when the prompt string contains
237     invisible characters.
238
239 g.  Fixed some display (and other) bugs encountered in multibyte locales
240     when a non-ascii character was the last character on a line.
241
242 h.  Fixed some display bugs caused by multibyte characters in prompt strings.
243
244 i.  Fixed a problem with history expansion caused by non-whitespace characters
245     used as history word delimiters.
246
247 3.  New Features in Bash
248
249 a.  printf builtin understands two new escape sequences:  \" and \?.
250
251 b.  `echo -e' understands two new escape sequences:  \" and \?.
252
253 c.  The GNU `gettext' package and libintl have been integrated; the shell's
254     messages can be translated into different languages.
255
256 d.  The `\W' prompt expansion now abbreviates $HOME as `~', like `\w'.
257
258 e.  The error message printed when bash cannot open a shell script supplied
259     as argument 1 now includes the name of the shell, to better identify
260     the error as coming from bash.
261
262 4.  New Features in Readline
263
264 a.  New application variable, rl_completion_quote_character, set to any
265     quote character readline finds before it calls the application completion
266     function.
267
268 b.  New application variable, rl_completion_suppress_quote, settable by an
269     application completion function.  If set to non-zero, readline does not
270     attempt to append a closing quote to a completed word.
271
272 c.  New application variable, rl_completion_found_quote, set to a non-zero
273     value if readline determines that the word to be completed is quoted.
274     Set before readline calls any application completion function.
275
276 d.  New function hook, rl_completion_word_break_hook, called when readline
277     needs to break a line into words when completion is attempted.  Allows
278     the word break characters to vary based on position in the line.
279
280 e.  New bindable command: unix-filename-rubout.  Does the same thing as
281     unix-word-rubout, but adds `/' to the set of word delimiters.
282
283 ------------------------------------------------------------------------------
284 This document details the changes between this version, bash-3.0-alpha,
285 and the previous version, bash-2.05b-release.
286
287 1.  Changes to Bash
288
289 a.  Fixes so that the shell will compile without some of the default options
290     defined.
291
292 b.  Fixed an error message that did not pass enough arguments to printf.
293
294 c.  Fixed a bug that caused input redirection to a builtin inside a script
295     being read from standard input to result in the rest of the already-
296     read and buffered script to be discarded.
297
298 d.  Fixed a bug that caused subshell initialization to close the file
299     descriptor from which the shell was reading a script under certain
300     circumstances.
301
302 e.  Fixed a bug that caused the shell to not advance a string pointer over
303     a null wide character when doing string operations.
304
305 f.  Fixed the internal logout code so that shells that time out waiting for
306     input (using $TMOUT) run ~/.bash_logout.
307
308 g.  Portability and configuration changes for: cygwin, HP/UX, GNU/FreeBSD.
309
310 h.  The parser no longer adds implicit double quotes to ((...)) arithmetic
311     commands.
312
313 i.  The ((...)) arithmetic command evaluation code was fixed to not dump core
314     when the expanded string is null.
315
316 j.  The ((...)) arithmetic command evaluation code was fixed to not perform
317     variable assignments while expanding the expression.
318
319 k.  Fixed a bug that caused word splitting to be performed incorrectly when
320     IFS is set, but null.
321
322 l.  Fixed a bug in brace expansion that caused a quoted `$' preceding an
323     open brace to inhibit brace expansion.
324
325 m.  Fixed a bug that caused a leading `-' in the shell's name to cause it to
326     not be recognized as a restricted shell.
327
328 n.  Fixed a bug in the arithmetic evaluation code that could cause longjmps
329     to an invalid location and result in a core dump.
330
331 o.  Fixed a bug in the calculation of how many history lines are new in a
332     single shell session when reading new history lines from a file with
333     `history -n'.
334
335 p.  Fixed a bug in pathname canonicalization that caused the shell to dump
336     core when presented with a pathname longer than PATH_MAX.
337
338 q.  Fixed the parser so that it doesn't try to compare a char variable to
339     EOF, which fails when chars are unsigned.
340
341 r.  Fixed a bug in the simple command execution code that caused occasional
342     core dumps.
343
344 s.  The shell does a better job of saving any partial parsing state during
345     operations which cause a command to be executed while a line is being
346     entered and parsed.
347
348 t.  The completion code now splits words more like the expansion code when
349     $IFS is used to split.
350
351 u.  The locale code does a better job of recomputing the various locale
352     variable values when LC_ALL is unset.
353
354 v.  The programmable completion code does a better job of dequoting expanded
355     word lists before comparing them against the word to be matched.
356
357 w.  The shell no longer seg faults if the expanded value of $PS4 is null
358     and `set -x' is enabled.
359
360 x.  Fixed a bug that caused core dumps when a here string expanded to NULL.
361
362 y.  The mail checking code now makes sure the mailbox is bigger before
363     reporting the existence of new mail.
364
365 z.  The parser does not try to expand $'...' and $"..." when the appear
366     within double quotes unless the `extquote' option has been enabled with
367     `shopt'.  For backwards compatibility, it is enabled by default.
368
369 aa. Fixed a bug that caused `for x; do ...' and `select x; do ... to use
370     $@ instead of "$@" for the implicit list of arguments.
371
372 bb. Fixed a bug that caused a subshell of a restricted shell (e.g., one
373     spawned to execute a pipeline) to not exit immediately if attempting
374     to use a command containing a slash.
375
376 cc. Fixed a problem with empty replacements for a pattern that doesn't match
377     when performing ${param/word/} expansion.
378
379 dd. Word expansions performed while expanding redirections no longer search
380     a command's temporary environment to expand variable values.
381
382 ee. Improvements to the alias expansion code when expanding subsequent words
383     because an aliase's value ends with a space.
384
385 ff. `cd -' now prints the current working directory after a successful chdir
386     even when the shell is not interactive, as the standard requires.
387
388 gg. The shell does a better job of ensuring a child process dies of SIGINT
389     before resending SIGINT to itself.
390
391 hh. The arithmetic expansion variable assignment code now does the right
392     thing when assigning to `special' variables like OPTIND.
393
394 ii. When history expansion verification is enabled, the bash readline helper
395     functions that do history expansion on the current line don't print
396     the results.
397
398 jj. Fixed bugs with multiple consecutive alias expansion when one of the
399     expansions ends with a space.
400
401 kk. Fixed a problem in the programmable completion code that could cause core
402     dumps when trying to initialize a set of possible completions from a
403     list of variables.
404
405 ll. The \[ and \] escape characters are now ignored when decoding the prompt
406     string if the shell is started with editing disabled.
407
408 mm. Fixed a bug that could leave extra characters in a string when doing
409     quoted null character removal.
410
411 nn. Command substitution and other subshell operations no longer reset the
412     line number (aids the bash debugger).
413
414 oo. Better line number management when executing simple commands, conditional
415     commands, for commands, and select commands.
416
417 pp. The globbing code now uses malloc, with its better failure properties,
418     rather than alloca().
419
420 qq. Fixed a bug that caused expansions like #{a[2]:=value} to create the
421     appropriate array element instead of a variable named `a[2]'.
422
423 rr. Fixed a bug in the handling of a `?(...)' pattern immediately following
424     a `*' when extglob is enabled.
425
426 ss. Fixed a bug that caused a `return' invoked in an exit trap when exit is
427     invoked in a function to misbehave.
428
429 tt. Fixed a bug that caused CTLESC and CTLNUL characters to not be escaped
430     by the internal shell string quoting functions.
431
432 uu. Fixed a bug that caused quoted null characters in an expanded word list
433     to be inappropriately assigned to an array variable when using `read -a'.
434
435 vv. Fixed a bug that caused redirections accompanying a null command to persist
436     in the current shell.
437
438 ww. Fixed a bug that caused the prompt to be printed when the shell was
439     expanding a multiline alias.
440
441 xx. Fixed a bug that resulted in core dumps when the completion for a command
442     changed the compspec.
443
444 yy. Fixed a bug that caused evaluation of programmable completions to print
445     notifications of completed jobs.
446
447 zz. Bash now disables line editing when $EMACS == `t' and $TERM == `dumb'
448     (which is what emacs shell windows do).
449
450 aaa. In posix mode, `kill -l' causes signal names to be displayed without
451      a leading `SIG'.
452
453 bbb. Clear error flag on standard output so it doesn't persist across multiple
454      builtin commands.
455
456 ccc. In posix mode, `alias' displays alias values without the leading `alias',
457      so the output cannot be used as subsequent input.
458
459 ddd. In posix mode, the `trap' builtin doesn't check whether or not its
460      first argument is a signal specification and revert the signal handling
461      to its original disposition if it is.
462
463 eee. Fixed several bugs in the handling of "$*" and "${array[*]}" by the
464      pattern substitution and removal expansions.
465
466 fff. Fixed several problems with the handling of ${array[@]}, ${array[*]},
467      $@, and $* by the indirect variable expansion code.
468
469 ggg. Fixed a bug that did not allow `time' to be aliased.
470
471 hhh. Improved the mail checking code so it won't check (and possibly cause an
472      NFS file system mount) until MAILPATH or MAIL is given a value -- there
473      is no default if DEFAULT_MAIL_DIRECTORY is not defined at compile time.
474      (It is computed by configure, but can be #undef'd in config-bot.h.)
475
476 iii. If the `chkwinsize' option is enabled, the shell checks for window size
477      changes if a child process exits due to a signal.
478
479 jjj. Removed the attempts to avoid adding a slash at the end of a completed
480      executable name if there was a directory with the same name in the
481      current directory.
482
483 kkk. Fixed PATH lookup code so it treats the permission bits separately for
484      owner, group, and other, rather than checking them all.
485
486 lll. Fixed the locale code to reset the parser's idea of the character class
487      <blank>, which controls how it splits tokens, when the locale changes.
488
489 mmm. The shell now binds its special readline functions and key bindings only
490      if the user's inputrc file has not already bound them.
491
492 nnn. The shell now reports on processes that dump core due to signals when
493      invoked as `-c command'.
494
495 2.  Changes to Readline
496
497 a.  Fixes to avoid core dumps because of null pointer references in the
498     multibyte character code.
499
500 b.  Fix to avoid infinite recursion caused by certain key combinations.
501
502 c.  Fixed a bug that caused the vi-mode `last command' to be set incorrectly.
503
504 d.  Readline no longer tries to read ahead more than one line of input, even
505     when more is available.
506
507 e.  Fixed the code that adjusts the point to not mishandle null wide
508     characters.
509
510 f.  Fixed a bug in the history expansion `g' modifier that caused it to skip
511     every other match.
512
513 g.  Fixed a bug that caused the prompt to overwrite previous output when the
514     output doesn't contain a newline and the locale supports multibyte
515     characters.  This same change fixes the problem of readline redisplay
516     slowing down dramatically as the line gets longer in multibyte locales.
517
518 h.  History traversal with arrow keys in vi insertion mode causes the cursor
519     to be placed at the end of the new line, like in emacs mode.
520
521 i.  The locale initialization code does a better job of using the right
522     precedence and defaulting when checking the appropriate environment
523     variables.
524
525 j.  Fixed the history word tokenizer to handle <( and >( better when used as
526     part of bash.
527
528 k.  The overwrite mode code received several bug fixes to improve undo.
529
530 l.  Many speedups to the multibyte character redisplay code.
531
532 m.  The callback character reading interface should not hang waiting to read
533     keyboard input.
534
535 n.  Fixed a bug with redoing vi-mode `s' command.
536
537 o.  The code that initializes the terminal tracks changes made to the terminal
538     special characters with stty(1) (or equivalent), so that these changes
539     are reflected in the readline bindings.  New application-callable function
540     to make it work:  rl_tty_unset_default_bindings().
541
542 p.  Fixed a bug that could cause garbage to be inserted in the buffer when
543     changing character case in vi mode when using a multibyte locale.
544
545 q.  Fixed a bug in the redisplay code that caused problems on systems
546     supporting multibyte characters when moving between history lines when the
547     new line has more glyphs but fewer bytes.
548
549 r.  Undo and redo now work better after exiting vi insertion mode.
550
551 s.  Make sure system calls are restarted after a SIGWINCH is received using
552     SA_RESTART.
553
554 t.  Improvements to the code that displays possible completions when using
555     multibyte characters.
556
557 u.  Fixed a problem when parsing nested if statements in inputrc files.
558
559 v.  The completer now takes multibyte characters into account when looking for
560     quoted substrings on which to perform completion.
561
562 w.  The history search functions now perform better bounds checking on the
563     history list.
564
565 3.  New Features in Bash
566
567 a.  ANSI string expansion now implements the \x{hexdigits} escape.
568
569 b.  There is a new loadable `strftime' builtin.
570
571 c.  New variable, COMP_WORDBREAKS, which controls the readline completer's
572     idea of word break characters.
573
574 d.  The `type' builtin no longer reports on aliases unless alias expansion
575     will actually be performed.    
576
577 e.  HISTCONTROL is now a colon-separated list of values, which permits
578     more extensibility and backwards compatibility.
579
580 f.  HISTCONTROL may now include the `erasedups' option, which causes all lines
581     matching a line being added to be removed from the history list.
582
583 g.  `configure' has a new `--enable-multibyte' argument that permits multibyte
584     character support to be disabled even on systems that support it.
585
586 h.  New variables to support the bash debugger:  BASH_ARGC, BASH_ARGV,
587     BASH_SOURCE, BASH_LINENO, BASH_SUBSHELL, BASH_EXECUTION_STRING,
588     BASH_COMMAND
589
590 i.  FUNCNAME has been changed to support the debugger: it's now an array
591     variable.
592
593 j.  for, case, select, arithmetic commands now keep line number information
594     for the debugger.
595
596 k.  There is a new `RETURN' trap executed when a function or sourced script
597     returns (not inherited child processes; inherited by command substitution
598     if function tracing is enabled and the debugger is active).
599
600 l.  New invocation option:  --debugger.  Enables debugging and turns on new
601     `extdebug' shell option.
602
603 m.  New `functrace' and `errtrace' options to `set -o' cause DEBUG and ERR
604     traps, respectively, to be inherited by shell functions.  Equivalent to
605     `set -T' and `set -E' respectively.  The `functrace' option also controls
606     whether or not the DEBUG trap is inherited by sourced scripts.
607
608 n.  The DEBUG trap is run before binding the variable and running the action
609     list in a `for' command, binding the selection variable and running the
610     query in a `select' command, and before attempting a match in a `case'
611     command.
612
613 o.  New `--enable-debugger' option to `configure' to compile in the debugger
614     support code.
615
616 p.  `declare -F' now prints out extra line number and source file information
617     if the `extdebug' option is set.
618
619 q.  If `extdebug' is enabled, a non-zero return value from a DEBUG trap causes
620     the next command to be skipped, and a return value of 2 while in a
621     function or sourced script forces a `return'.
622
623 r.  New `caller' builtin to provide a call stack for the bash debugger.
624
625 s.  The DEBUG trap is run just before the first command in a function body is
626     executed, for the debugger.
627
628 t.  `for', `select', and `case' command heads are printed when `set -x' is
629     enabled.
630
631 u.  There is a new {x..y} brace expansion, which is shorthand for {x.x+1,
632     x+2,...,y}.  x and y can be integers or single characters; the sequence
633     may ascend or descend; the increment is always 1.
634
635 v.  New ksh93-like ${!array[@]} expansion, expands to all the keys (indices)
636     of array.
637
638 w.  New `force_fignore' shopt option; if enabled, suffixes specified by
639     FIGNORE cause words to be ignored when performing word completion even
640     if they're the only possibilities.
641
642 x.  New `gnu_errfmt' shopt option; if enabled, error messages follow the `gnu
643     style' (filename:lineno:message) format.
644
645 y.  New `-o bashdefault' option to complete and compgen; if set, causes the
646     whole set of bash completions to be performed if the compspec doesn't
647     result in a match.
648
649 z.  New `-o plusdirs' option to complete and compgen; if set, causes directory
650     name completion to be performed and the results added to the rest of the
651     possible completions.
652
653 aa. `kill' is available as a builtin even when the shell is built without
654     job control.
655
656 bb. New HISTTIMEFORMAT variable; value is a format string to pass to
657     strftime(3).  If set and not null, the `history' builtin prints out
658     timestamp information according to the specified format when displaying
659     history entries.  If set, bash tells the history library to write out
660     timestamp information when the history file is written.
661
662 cc. The [[ ... ]] command has a new binary `=~' operator that performs
663     extended regular expression (egrep-like) matching.
664
665 dd. `configure' has a new `--enable-cond-regexp' option (enabled by default)
666     to enable the =~ operator and regexp matching in [[ ... ]].
667
668 ee. Subexpressions matched by the =~ operator are placed in the new
669     BASH_REMATCH array variable.
670
671 ff. New `failglob' option that causes an expansion error when pathname
672     expansion fails to produce a match.
673
674 gg. New `set -o pipefail' option that causes a pipeline to return a failure
675     status if any of the processes in the pipeline fail, not just the last
676     one.
677
678 4.  New Features in Readline
679
680 a.  History expansion has a new `a' modifier equivalent to the `g' modifier
681     for compatibility with the BSD csh.
682
683 b.  History expansion has a new `G' modifier equivalent to the BSD csh `g'
684     modifier, which performs a substitution once per word.
685
686 c.  All non-incremental search operations may now undo the operation of
687     replacing the current line with the history line.
688
689 d.  The text inserted by an `a' command in vi mode can be reinserted with
690     `.'.
691
692 e.  New bindable variable, `show-all-if-unmodified'.  If set, the readline
693     completer will list possible completions immediately if there is more
694     than one completion and partial completion cannot be performed.
695
696 f.  There is a new application-callable `free_history_entry()' function.
697
698 g.  History list entries now contain timestamp information; the history file
699     functions know how to read and write timestamp information associated
700     with each entry.
701
702 h.  Four new key binding functions have been added:
703
704         rl_bind_key_if_unbound()
705         rl_bind_key_if_unbound_in_map()
706         rl_bind_keyseq_if_unbound()
707         rl_bind_keyseq_if_unbound_in_map()
708
709 ------------------------------------------------------------------------------
710 This document details the changes between this version, bash-2.05b-release,
711 and the previous version, bash-2.05b-beta2.
712
713 1.  Changes to Bash
714
715 a.  Fixed an off-by-one error in the function that translates job
716     specifications.
717
718 b.  Note that we're running under Emacs and disable line editing if
719     $EMACS == `t'.
720
721 ------------------------------------------------------------------------------
722 This document details the changes between this version, bash-2.05b-beta2,
723 and the previous version, bash-2.05b-beta1.
724
725 1.  Changes to Bash
726
727 a.  Fixed the /= and %= arithmetic operators to catch division by zero.
728
729 b.  Added putenv, setenv, unsetenv to getenv replacement for completeness.
730
731 c.  Fixed a bug that could cause the -O expand_aliases invocation option
732     to not take effect.
733
734 d.  Fixed a problem with process substitution that resulted in incorrect
735     behavior when the number of process substitutions in an individual
736     command approached 64.
737
738 2.  Changes to Readline
739
740 a.  Fixed a problem with backward-char-search when on a system with support
741     for multibyte characters when running in a locale without any multibyte
742     characters.
743
744 ------------------------------------------------------------------------------
745 This document details the changes between this version, bash-2.05b-beta1,
746 and the previous version, bash-2.05b-alpha1.
747
748 1.  Changes to Bash
749
750 a.  Fixed a problem when parsing a POSIX.2 character class name while
751     evaluating a bracket expression containing multibyte characters.
752
753 b.  Changed the help text for `bind' to make it clear that any command
754     that may be placed in ~/.inputrc is a valid argument to `bind'.
755
756 c.  Added `help' builtin entries for `((', `[[', and arithmetic for.
757
758 d.  malloc updated again:
759         o slightly better overflow and underflow detection by putting the
760           chunk size at the beginning and end of the chunk and making
761           sure they match in free/realloc
762         o partial page allocated to make things page-aligned no longer
763           completely wasted
764         o block coalescing now enabled by default
765         o splitting and coalescing enabled for 32-byte chunks, the most
766           common size requested
767         o fixed a problem that resulted in spurious underflow messages and
768           aborts
769         o bin sizes are precomputed and stored in an array rather than
770           being computed at run time
771         o malloc will return memory blocks back to the system if the block
772           being freed is at the top of the heap and of sufficient size to
773           make it worthwhile
774         o malloc/free/realloc now inline memset instead of calling the
775           libc function; uses Duff's device for good performance
776
777 e.  Check for getservent(); make the service name completion code dependent
778     on its presence.
779
780 f.  Changed the readline callback that executes a command bound to a key
781     sequence to not save the executed command on the history list and to
782     save and restore the parsing state.
783
784 g.  Changes to lib/sh/snprintf.c:  fixed some bugs in the `g' and `G'
785     floating point format display; implemented the "'" flag character
786     that turns on thousands' grouping; fixed behavior on systems where
787     MB_CUR_MAX does not evaluate to a constant.
788
789 h.  The `unset' builtin no longer returns a failure status when asked to
790     unset a previously-unset variable or function.
791
792 i.  Changes to the build system to make it easier to cross-compile bash
793     for different systems.
794
795 j.  Added `,' to  the characters that are backslash-escaped during filename
796     completion, to avoid problems with complete-into-braces and RCS filenames
797     containing commas.
798
799 k.  Some changes to the multibyte character support code to avoid many calls
800     to strlen().
801
802 l.  Bash now correctly honors setting LANG to some value when LC_ALL does not
803     already have a value.
804
805 m.  Fixed a bug that could cause SIGSEGV when processing nested traps with
806     trap handlers.
807
808 n.  The `source/.' builtin now restores the positional parameters when it
809     returns unless they were changed using the `set' builtin during the file's
810     execution.
811
812 o.  Fixed a bug that caused a syntax error when a command was terminated by
813     EOF.
814
815 2.  New Features in Bash
816
817 a.  There is now support for placing the long help text into separate files
818     installed into ${datadir}/bash.  Not enabled by default; can be turned
819     on with `--enable-separate-helpfiles' option to configure.
820
821 b.  All builtins that take operands accept a `--' pseudo-option, except
822     `echo'.
823
824 c.  The `echo' builtin now accepts \0xxx (zero to three octal digits following
825     the `0') in addition to \xxx (one to three octal digits) for SUSv3/XPG6/
826     POSIX.1-2001 compliance.
827
828 3.  Changes to Readline
829
830 a.  Fixed a small problem in _rl_insert_char with multibyte characters.
831
832 b.  Fixes from IBM for line wrapping problems when using multibyte characters.
833
834 c.  Fixed a problem which caused the display to be messed up when the last
835     line of a multi-line prompt (possibly containing invisible characters)
836     was longer than the screen width.
837
838 d.  Fixed a problem with the vi-mode `r' command that ocurred on systems with
839     support for multibyte characters when running in a locale without any
840     multibyte characters.
841
842 ------------------------------------------------------------------------------
843 This document details the changes between this version, bash-2.05b-alpha1,
844 and the previous version, bash-2.05a-release.
845
846 1.  Changes to Bash
847
848 a.  Some changes to work around inlining differences between compilers.
849
850 b.  Added more prototypes for internal shell typedefs, to catch argument
851     passing errors when using pointers to functions.
852
853 c.  The `cd' builtin now fails in posix mode when a valid directory cannot be
854     constructed from a relative pathname argument and the $PWD using pathname
855     canonicalization, and the -P option has not been supplied.  Previously,
856     the shell would attempt to use what the user typed, leading to weird
857     values for $PWD and discrepancies between the value of $PWD and the
858     actual working directory.
859
860 d.  The `cd' builtin now resets $PWD when canonicalization fails but a chdir
861     to the pathname passed as an argument succeeds (when not in posix mode).
862
863 e.  The `fc' builtin has been fixed, as POSIX requires, to use the closest
864     history position in range when given an out-of-range argument.
865
866 f.  The history file loading code was changed to allow lines to be saved in
867     the history list from the shell startup files.
868
869 g.  `history -s args' now works better in compound commands.
870
871 h.  The tilde expansion code was fixed to better recognize when it's being
872     invoked in an assignment context, which enables expansion after `='
873     and `:'.
874
875 i.  Fixed the command name completion code so a slash is no longer appended
876     to a single match if there happens to be a directory with that name in
877     $PWD.
878
879 j.  Fixed compound array assignment to no longer perform alias expansion, to
880     allow reserved words as array members, and to not produce extra output
881     when the `-v' option had been enabled.
882
883 k.  Fixed the programmable completion code to better handle newlines in lists
884     of possible completions (e.g., `complete -W').
885
886 l.  Removed the reserved words from the `bash-builtins' manual page.
887
888 m.  Parser error reporting now attempts to do a better job of identifying the
889     token in error rather than doing straight textual analysis.
890
891 n.  Fixes for Inf/NaN, locales, wide/multibyte characters and zero-length
892     arguments in the library snprintf(3) replacement.
893
894 o.  `read -e' no longer does command name completion on the first word on
895     the line being read.
896
897 p.  `select' now returns failure if the read of the user's selection fails.
898
899 q.  Fixed a bug that could cause a core dump when setting $PIPESTATUS.
900
901 r.  Fixes to not allocate so many job slots when the shell is running a loop
902     with job control enabled in a subshell of an interactive shell.
903
904 s.  Fixed a bug in the trap code that caused traps to be inherited by
905     command substitutions in some cases.
906
907 t.  Fixed a bug that could cause alias expansion to inappropriately expand
908     the word following the alias.
909
910 u.  Fixed a bug in the `kill' builtin that mishandled negative pid arguments.
911
912 v.  The parser is less lenient when parsing assignment statements where the
913     characters before the `=' don't comprise a valid identifier.
914
915 w.  The arithmetic expression evaluation code now honors the setting of the
916     `-u' option when expanding variable names.
917
918 x.  Fixed the arithmetic evaluation code to allow array subscripts to be
919     assigned (`let b[7]=42') and auto-incremented and auto-decremented
920     (e.g., b[7]++).
921
922 y.  Reimplemented the existing prompt string date and time expansions using
923     strftime(3), which changed the output of \@ in some locales.
924
925 z.  Fixed a bug that could cause a core dump when a special shell variable
926     (like RANDOM) was converted to an array with a variable assignment.
927
928 aa. Fixed a bug that would reset the handler for a signal the user had
929     trapped to a function that would exit the shell when setting the exit
930     trap in a non-interactive shell.
931
932 bb. Changed the execve(2) wrapper code to check whether or not a failing
933     command is a directory before looking at whether a `#!' interpreter
934     failed for some reason.
935
936 cc. Fixed a bug in the command printing code so it no longer inserts a `;'
937     after a newline, which produces a syntax error when reused as input.
938
939 dd. The code that expands $PS4 no longer inherits the `-x' flag.
940
941 ee. The bash-specific completion functions may now take advantage of the
942     double-TAB and M-?  features of the standard readline completion
943     functions.
944
945 ff. The mail checking code no longer prints a message if the checked file's
946     size has not increased, even if the access time is less than the modification time.
947
948 gg. Rewrote the variable symbol table code: there is now a stack of
949     contexts, each possibly including a separate symbol table; there can
950     be more than one temporary environment supplied to nested invocations
951     of `./source'; the temporary environments no longer require so much
952     special-case code; shell functions now handle the temporary environment
953     and local variables more consistently; function scope exit is faster now
954     that the entire symbol table does not have to be traversed to dispose of
955     local variables; it is now easier to push vars from the temporary
956     environment to the shell's variable table in posix mode; some duplicated
957     code has been removed.
958
959 hh. Regularized the error message printing code; builtin_error is now called
960     more consistently, and common error message strings are handled by small
961     functions.  This should make eventual message translation easier.
962
963 ii. Error messages now include the line number in a script when the shell
964     is not interactive.
965
966 jj. Array subscript expansion now takes place even when the array variable is
967     unset, so side effects will take place.
968
969 kk. Fixed a bug in the SICGHLD child-reaping code so that it won't find
970     jobs already marked as terminated if the OS reuses pids quickly enough.
971
972 ll. Fixed a bug that could cause a signal to not interrupt the `wait'
973     builtin while it was waiting for a background process to terminate.
974
975 mm. A couple of changes to make it easier for multiple shells to share history
976     files using `history -n', `history -r', and `history -w'.
977
978 nn. The `getopts' builtin always increments OPTIND to point to the next
979     option to be handled when an option is returned, whether it's valid
980     or not, as POSIX 1003.x-2001 requires.
981
982 oo. Changed some parts of the expansion code to avoid allocating and
983     immediately freeing memory without using the results for anything.
984
985 pp. The shell now keeps track of $IFS internally, updating its internal map
986     each time the variable is assigned a new value (or at local scope exit).
987     This saves thousands of hash lookups for IFS, which, while individually
988     cheap, add up.
989
990 qq. Rewrote the hash table code:  searching and insertion are much faster now,
991     and it uses a better string hashing function; augmented the function
992     interface to simplify other parts of the code and remove duplicated code
993
994 rr. The shell now uses a simple, generic `object cache' for allocating and
995     caching words and word lists, which were the major users of
996     malloc/free.
997
998 ss. Fixed the assignment statement parsing code to allow whitespace and
999     newlines in subscripts when performing array element assignment.
1000
1001 tt. The shell now issues many fewer calls to sigprocmask and other signal
1002     masking system calls.
1003
1004 uu. Fixed the `test' and conditional command file comparison operators to
1005     work right when one file has a non-positive timestamp and the other
1006     does not exist.
1007
1008 vv. Fixed some cases where the special characters '\001' and '\177' in the
1009     values of variables or positional parameters caused incorrect expansion
1010     results.
1011
1012 2.  Changes to Readline
1013
1014 a.  Fixed output of comment-begin character when listing variable values.
1015
1016 b.  Added some default key bindings for common escape sequences produced by
1017     HOME and END keys.
1018
1019 c.  Fixed the mark handling code to be more emacs-compatible.
1020
1021 d.  A bug was fixed in the code that prints possible completions to keep it
1022     from printing empty strings in certain circumstances.
1023
1024 e.  Change the key sequence printing code to print ESC as M\- if ESC is a
1025     meta-prefix character -- it's easier for users to understand than \e.
1026
1027 f.  Fixed unstifle_history() to return values that match the documentation.
1028
1029 g.  Fixed the event loop (rl_event_hook) to handle the case where the input
1030     file descriptor is invalidated.
1031
1032 h.  Fixed the prompt display code to work better when the application has a
1033     custom redisplay function.
1034
1035 i.  Changes to make reading and writing the history file a little faster, and
1036     to cope with huge history files without calling abort(3) from xmalloc.
1037
1038 j.  The vi-mode `S' and `s' commands are now undone correctly.
1039
1040 3.  New Features in Bash
1041
1042 a.  If set, TMOUT is the default timeout for the `read' builtin.
1043
1044 b.  `type' has two new options:  `-f' suppresses shell function lookup, and
1045     `-P' forces a $PATH search.
1046
1047 c.  New code to handle multibyte characters.
1048
1049 d.  `select' was changed to be more ksh-compatible, in that the menu is
1050     reprinted each time through the loop only if REPLY is set to NULL.
1051     The previous behavior is available as a compile-time option.
1052
1053 e.  `complete -d' and `complete -o dirnames' now force a slash to be
1054     appended to names which are symlinks to directories.
1055
1056 f.  There is now a bindable edit-and-execute-command readline command,
1057     like the vi-mode `v' command, bound to C-xC-e in emacs mode.
1058
1059 g.  Added support for ksh93-like [:word:] character class in pattern matching.
1060
1061 h.  The  $'...' quoting construct now expands \cX to Control-X.
1062
1063 i.  A new \D{...} prompt expansion; passes the `...' to strftime and inserts
1064     the result into the expanded prompt.
1065
1066 j.  The shell now performs arithmetic in the largest integer size the
1067     machine supports (intmax_t), instead of long.
1068
1069 k.  If a numeric argument is supplied to one of the bash globbing completion
1070     functions, a `*' is appended to the word before expansion is attempted.
1071
1072 l.  The bash globbing completion functions now allow completions to be listed
1073     with double tabs or if `show-all-if-ambiguous' is set.
1074
1075 m.  New `-o nospace' option for `complete' and `compgen' builtins; suppresses
1076     readline's appending a space to the completed word.
1077
1078 n.  New `here-string' redirection operator:  <<< word.
1079
1080 o.  When displaying variables, function attributes and definitions are shown
1081     separately, allowing them to be re-used as input (attempting to re-use
1082     the old output would result in syntax errors).
1083
1084 p.  There is a new configuration option `--enable-mem-scramble', controls
1085     bash malloc behavior of writing garbage characters into memory at
1086     allocation and free time.
1087
1088 q.  The `complete' and `compgen' builtins now have a new `-s/-A service'
1089     option to complete on names from /etc/services.
1090
1091 r.  `read' has a new `-u fd' option to read from a specified file descriptor.
1092
1093 s.  Fix the completion code so that expansion errors in a directory name
1094     don't cause a longjmp back to the command loop.
1095
1096 t.  Fixed word completion inside command substitution to work a little more
1097     intuitively.
1098
1099 u.  The `printf' %q format specifier now uses $'...' quoting to print the
1100     argument if it contains non-printing characters.
1101
1102 v.  The `declare' and `typeset' builtins have a new `-t' option.  When applied
1103     to functions, it causes the DEBUG trap to be inherited by the named
1104     function.  Currently has no effect on variables.
1105
1106 w.  The DEBUG trap is now run *before* simple commands, ((...)) commands,
1107     [[...]] conditional commands, and for ((...)) loops.
1108
1109 x.  The expansion of $LINENO inside a shell function is only relative to the
1110     function start if the shell is interactive -- if the shell is running a
1111     script, $LINENO expands to the line number in the script.  This is as
1112     POSIX-2001 requires.
1113
1114 y.  The bash debugger in examples/bashdb has been modified to work with the
1115     new DEBUG trap semantics, the command set has been made more gdb-like,
1116     and the changes to $LINENO make debugging functions work better.  Code
1117     from Gary Vaughan.
1118
1119 z.  New [n]<&word- and [n]>&word- redirections from ksh93 -- move fds (dup
1120     and close).
1121
1122 aa. There is a new `-l' invocation option, equivalent to `--login'.
1123
1124 bb. The `hash' builtin has a new `-l' option to list contents in a reusable
1125     format, and a `-d' option to remove a name from the hash table.
1126
1127 4.  New Features in Readline
1128
1129 a.  Support for key `subsequences':  allows, e.g., ESC and ESC-a to both
1130     be bound to readline functions.  Now the arrow keys may be used in vi
1131     insert mode.
1132
1133 b.  When listing completions, and the number of lines displayed is more than
1134     the screen length, readline uses an internal pager to display the results.
1135     This is controlled by the `page-completions' variable (default on).
1136
1137 c.  New code to handle editing and displaying multibyte characters.
1138
1139 d.  The behavior introduced in bash-2.05a of deciding whether or not to
1140     append a slash to a completed name that is a symlink to a directory has
1141     been made optional, controlled by the `mark-symlinked-directories'
1142     variable (default is the 2.05a behavior).
1143
1144 e.  The `insert-comment' command now acts as a toggle if given a numeric
1145     argument:  if the first characters on the line don't specify a
1146     comment, insert one; if they do, delete the comment text
1147
1148 f.  New application-settable completion variable:
1149     rl_completion_mark_symlink_dirs, allows an application's completion
1150     function to temporarily override the user's preference for appending
1151     slashes to names which are symlinks to directories.
1152
1153 g.  New function available to application completion functions:
1154     rl_completion_mode, to tell how the completion function was invoked
1155     and decide which argument to supply to rl_complete_internal (to list
1156     completions, etc.).
1157
1158 h.  Readline now has an overwrite mode, toggled by the `overwrite-mode'
1159     bindable command, which could be bound to `Insert'.
1160
1161 i.  New application-settable completion variable:
1162     rl_completion_suppress_append, inhibits appending of
1163     rl_completion_append_character to completed words.
1164
1165 j.  New key bindings when reading an incremental search string:  ^W yanks
1166     the currently-matched word out of the current line into the search
1167     string; ^Y yanks the rest of the current line into the search string,
1168     DEL or ^H deletes characters from the search string.
1169
1170 ------------------------------------------------------------------------------
1171 This document details the changes between this version, bash-2.05a-release,
1172 and the previous version, bash-2.05a-rc1.
1173
1174 1.  Changes to Bash
1175
1176 a.  Fixed the `printf' builtin so that the variable name supplied as an
1177     argument to a %n conversion must be a valid shell identifier.
1178
1179 b.  Improved the random number generator slightly.
1180
1181 c.  Changes to configuration to not put -I/usr/include into $CFLAGS, since
1182     it messes up some includes.
1183
1184 d.  Corrected description of POSIXLY_CORRECT in man page and info manual.
1185
1186 e.  Fixed a couple of cases of incorrect function prototypes that sneaked
1187     through and caused compilation problems.
1188
1189 f.  A few changes to avoid potential core dumps in the programmable completion
1190     code.
1191
1192 g.  Fixed a configure problem that could cause a non-existent file to show
1193     up in LIBOBJS.
1194
1195 h.  Fixed a configure problem that could cause siglist.o to not be built when
1196     required.
1197
1198 i.  Changes to the strtoimax and strtoumax replacement functions to work
1199     around buggy compilers.
1200
1201 j.  Fixed a problem with the snprintf replacement function that could
1202     potentially cause a core dump.
1203
1204 2.  Changes to Readline
1205
1206 a.  Fixed a locale-specific problem in the vi-mode `goto mark' command.
1207
1208 b.  Fixed Makefile to not put -I/usr/include into CFLAGS, since it can cause
1209     include file problems.
1210
1211 ------------------------------------------------------------------------------
1212 This document details the changes between this version, bash-2.05a-rc1,
1213 and the previous version, bash-2.05a-beta1.
1214
1215 1.  Changes to Bash
1216
1217 a.  Fixed the snprintf replacement to correctly implement the `alternate form'
1218     of the %g and %G conversions.
1219
1220 b.  Fixed snprintf to correctly handle the optional precision with the %g and
1221     %G conversions.
1222
1223 c.  Fixed the arithmetic evaluation code to correct the values of `@' and `_'
1224     when translating base-64 constants (they were backwards).
1225
1226 d.  New library functions for formatting long and long long ints.
1227
1228 e.  Fixed a few places where negative array subscripts could have occurred,
1229     mostly as the result of systems using signed characters.
1230
1231 f.  Fixed a few places that assumed a pid_t was no wider than an int.
1232
1233 g.  Fixed the `maildir' mail checking code to work on systems where a
1234     `struct stat' doesn't include an `st_blocks' member.
1235
1236 h.  Fixed snprintf to make `unsigned long long' conversion formats (%llu)
1237     work better.
1238
1239 i.  Fixed snprintf to not print a sign when asked to do an unsigned conversion.
1240
1241 j.  Made configure changes to avoid compiling empty source files in lib/sh.
1242
1243 k.  New replacement functions (if necessary) for strtoull, strtoll, strtoimax,
1244     strtoumax.
1245
1246 l.  The `printf' builtin now handles the `ll' and `j' length modifiers
1247     directly, since they can affect the type and width of the argument
1248     passed to printf(3).
1249
1250 m.  Renamed a number of the bash-specific autoconf macros in aclocal.m4 to
1251     have more sytematic naming, with accompanying changes to configure.in.
1252
1253 n.  Fixed snprintf to handle long doubles and the %a/%A conversions by
1254     falling back to sprintf, as long as sprintf supports them.
1255
1256 o.  Fixed return value from vsnprintf/snprintf to be the number of characters
1257     that would have been printed, even if that number exceeds the buffer
1258     size passed as an argument.
1259
1260 p.  Bash no longer attempts to define its own versions of some ctype macros
1261     if they are implemented as functions in libc but not as macros in
1262     <ctype.h>.
1263
1264 q.  Changed the variable printing code (used by `set', `export', etc.) to
1265     not use the $'...' syntax when in posix mode, since that caused
1266     interoperability problems with other shells (most notably with autoconf).
1267     When not in posix mode, it uses $'...' if the string to be printed
1268     contains non-printing characters and regular single quotes otherwise.
1269
1270 r.  snprintf now recognizes the %F conversion.
1271
1272 s.  Fixed a bug that could cause the wrong status to be returned by a shell
1273     function when the shell is compiled without job control and a null
1274     command containing a command substutition was executed in the function.
1275
1276 t.  When in posix mode, the default value for MAILCHECK is 600.
1277
1278 u.  Bash only initializes FUNCNAME, GROUPS, and DIRSTACK as special variables
1279     if they're not in the initial environment.
1280
1281 v.  If SECONDS appears in the initial environment with a valid integer value,
1282     bash uses that as the starting value, as if an assignment had been
1283     performed.
1284
1285 w.  Bash no longer auto-exports HOME, PATH, SHELL, or TERM, even though it
1286     gives them default values if they don't appear in the initial environment.
1287
1288 x.  Bash no longer auto-exports HOSTNAME, HOSTTYPE, MACHTYPE, or OSTYPE,
1289     even if it assigns them default values.
1290
1291 y.  Bash no longer removes the export attribute from SSH_CLIENT or SSH2_CLIENT
1292     if they appear in the initial environment.
1293
1294 z.  Bash no longer attempts to discover if it's being run by sshd in order to
1295     run the startup files.  If the SSH_SOURCE_BASHRC is uncommented in
1296     config-top.h it will attempt to do so as previously, but that's commented
1297     out in the distributed version.
1298
1299 aa. Fixed a typo in the code that tests for LC_NUMERIC.
1300
1301 bb. The POSIXLY_CORRECT shell variable and its effects are now documented.
1302
1303 cc. Some changes to several of the support shell scripts included in the
1304     definitions to try to avoid race conditions and attacks.
1305
1306 dd. Several changes to avoid warnings from `gcc -Wall'.
1307
1308 ee. Fixed a problem with the `unset' builtin that could cause incorrect
1309     results if asked to unset a variable and an array subscript in the
1310     same command.
1311
1312 ff. A few changes to the shell's temporary file creation code to avoid
1313     potential file descriptor leaks and to prefer the system's idea of
1314     the temporary directory to use.
1315
1316 gg. Fixes to build with the C alloca in lib/malloc/alloca.c if the system
1317     requires it but the shell has been configured --without-bash-malloc.
1318
1319 hh. Updated the documentation to note that only interactive shells resend
1320     SIGHUP to all jobs before exiting.
1321
1322 ii. Fixes to only pass unquoted tilde words to tilde_expand, rather than
1323     rely on tilde_expand or getpwnam(3) to handle the quotes (MacOS 10.x
1324     will remove backslashes in any login name passed to getpwnam(3)).
1325
1326 jj. Small change from Paul Eggert to make LINENO right in commands run with
1327     `bash -c'.
1328
1329 2.  New Features in Bash
1330
1331 a.  The `printf' builtin now handles the %a and %A conversions if they're
1332     implemented by printf(3).
1333
1334 b.  The `printf' builtin now handles the %F conversion (just about like %f).
1335
1336 c.  The `printf' builtin now handles the %n conversion like printf(3).  The
1337     corresponding argument is the name of a shell variable to which the
1338     value is assigned.
1339
1340 3.  Changes to Readline
1341
1342 a.  Fixed a few places where negative array subscripts could have occurred.
1343
1344 b.  Fixed the vi-mode code to use a better method to determine the bounds of
1345     the array used to hold the marks.
1346
1347 c.  Fixed the defines in chardefs.h to work better when chars are signed.
1348
1349 d.  Fixed configure.in to use the new names for bash autoconf macros.
1350
1351 e.  Readline no longer attempts to define its own versions of some ctype
1352     macros if they are implemented as functions in libc but not as macros in
1353     <ctype.h>.
1354
1355 f.  Fixed a problem where rl_backward could possibly set point to before
1356     the beginning of the line.
1357
1358 ------------------------------------------------------------------------------
1359 This document details the changes between this version, bash-2.05a-beta1,
1360 and the previous version, bash-2.05a-alpha1.
1361
1362 1.  Changes to Bash
1363
1364 a.  Fixed a bug in the evalution of arithmetic `for' statements when the
1365     expanded expression is NULL.
1366
1367 b.  Fixed an unassigned variable problem in the redirection printing code.
1368
1369 c.  Added more prototypes to extern function declarations in the header
1370     files and to static function declarations in C source files.
1371
1372 d.  Make sure called functions have a prototype in scope, to get the arguments
1373     and return values right instead of casting.  Removed extern function
1374     declarations from C source files that were already included in header
1375     files.
1376
1377 e.  Changed some function arguments to use function typedefs in general.h so
1378     the prototypes can be checked.  The only use of Function and VFunction
1379     now is for unwind-protects.
1380
1381 f.  More const changes to function arguments and appropriate variables.
1382
1383 g.  Changed the mail checking support to handle `maildir'-style mail
1384     directories.
1385
1386 h.  Augmented the bash malloc to pass in the file and line number information
1387     for each malloc, realloc, and free.  This should result in better error
1388     messages.
1389
1390 i.  The `old' gnu malloc is no longer a configuration option.
1391
1392 j.  Augmented the bash malloc with optional tracing and registering allocated
1393     and freed memory.
1394
1395 k.  Prompt string decoding now saves and restores the value of $? when it
1396     expands the prompt string, so command substitutions don't change $?.
1397
1398 i.  Array indices are now `long', since shell arithmetic is performed as long,
1399     and the internal arrayind_t type is used consistently.
1400
1401 j.  Some more `unsigned char *' fixes from Paul Eggert.
1402
1403 k.  Fixed a bad call to builtin_error that could cause core dumps when making
1404     local variables.
1405
1406 l.  `return' may no longer be used to terminate a `select' command, for
1407     compatibility with ksh.
1408
1409 m.  Changed code that reads octal numbers to do a better job of detecting
1410     overflows.
1411
1412 n.  The time formatting code no longer uses absolute indices into a buffer,
1413     because the buffer size changes depending on the size of a `time_t'.
1414
1415 o.  `umask' now prints four digits when printing in octal mode, for
1416     compatibility with other shells.
1417
1418 p.  Lots of changes to the `printf' builtin from Paul Eggert:  it handles `L'
1419     formats and long doubles better, and internal functions have been
1420     simpified where appropriate.
1421
1422 q.  Some `time_t' fixes for machines were a time_t is bigger than a long.
1423
1424 r.  Replaced some bash-specific autoconf macros with standard equivalents.
1425
1426 s.  Improvmed the code that constructs temporary filenames to make the
1427     generated names a bit more random.
1428
1429 t.  Added code that checks for ascii before calling any of the is* ctype
1430     functions.
1431
1432 u.  Changed some places where a `char' was used as an array subscript to use
1433     `unsigned char', since a `char' can be negative if it's signed by default.
1434
1435 v.  Lots of changes to the `ulimit' builtin from Paul Eggert to add support
1436     for the new POSIX-200x RLIM_SAVED_CUR and RLIM_SAVED_MAX values and
1437     simplify the code.
1438
1439 w.  `ulimit' now prints the description of a resource in any error message
1440     relating to fetching or setting that resource's limits.
1441
1442 x.  The `snprintf' replacement now computes maximum values at compile
1443     time rather than using huge constants for things like long long.
1444
1445 y.  Interactive shells now ignore `set -n'.
1446
1447 z.  Changed the malloc bookkeeping information so that it's now 8 bytes
1448     instead of 12 on most 32-bit machines (saving 4 bytes per allocation),
1449     restoring 8-byte alignment.
1450
1451 aa. The malloc error reporting code now attempts to print the file and line
1452     number of the call that caused the error.
1453
1454 bb. Changed the redirection error reporting code to catch EBADF errors and
1455     report the file descriptor number rather than the file being redirected
1456     to or from (e.g., things like `exec 4242<x' where 4242 is an out-of-range
1457     file descriptor).
1458
1459 cc. `printf', `echo -e', and the $'...' code now process only two hex digits
1460     after a `\x' escape sequence for compatibility with other shells, and
1461     the documentation was changed to note that the octal and hex escape
1462     sequences result in an eight-bit value rather than strict ASCII.
1463
1464 2.  Changes to Readline
1465
1466 a.  The completion code now attempts to do a better job of preserving the
1467     case of the word the user typed if ignoring case in completions.
1468
1469 b.  Readline defaults to not echoing the input and lets the terminal
1470     initialization code enable echoing if there is a controlling terminal.
1471
1472 c.  The key binding code now processes only two hex digits after a `\x'
1473     escape sequence, and the documentation was changed to note that the
1474     octal and hex escape sequences result in an eight-bit value rather
1475     than strict ASCII.
1476
1477 3.  New Features in Bash
1478
1479 a.  The builtin `ulimit' now takes two new non-numeric arguments:  `hard',
1480     meaning the current hard limit, and `soft', meaning the current soft
1481     limit, in addition to `unlimited'
1482
1483 b.  `ulimit' now prints the option letter associated with a particular
1484     resource when printing more than one limit.
1485
1486 c.  `ulimit' prints `hard' or `soft' when a value is not `unlimited' but is
1487     one of RLIM_SAVED_MAX or RLIM_SAVED_CUR, respectively.
1488
1489 4.  New Features in Readline
1490
1491 a.  New bindable variable `history-preserve-point'.  If set, the history
1492     code attempts to place the user at the same location on each history
1493     line retrived with previous-history or next-history.
1494
1495 ------------------------------------------------------------------------------
1496 This document details the changes between this version, bash-2.05a-alpha1,
1497 and the previous version, bash-2.05-release.
1498
1499 1.  Changes to Bash
1500
1501 a.  Better checks in the redirection code for write errors.
1502
1503 b.  bashbug now uses $TMPDIR, defaulting to /tmp, and uses mktemp(1) more
1504     portably.
1505
1506 c.  System-specific configuration changes for:  Interix, OpenBSD, FreeBSD,
1507     MacOS X.
1508
1509 d.  Some more `const' cleanups through the code.
1510
1511 e.  Fixed a typo in the /dev/fd redirection code, better checks for valid
1512     numeric fds in /dev/fd.
1513
1514 f.  Fixed many parts of the shell to handle integer overflow more gracefully
1515     and to do more stringent checks for valid numbers.
1516
1517 g.  Fixed mksignames to include config.h.
1518
1519 h.  Fixed an uninitialized variable problem that could cause the shell to core
1520     dump when replacing characters in a string.
1521
1522 i.  New mechanism for updating the patch level when official patches are
1523     released (patchlevel.h).
1524
1525 j.  configure.in changed to no longer require external files _distribution and
1526     _patchlevel.
1527
1528 k.  Fixed non-interactive shell initialization problem when bash started as
1529     `bash -i filename'.
1530
1531 l.  Fixed printf builtin conversion error handling to be POSIX.2-conformant.
1532
1533 m.  autoconf-2.52 is now used to build configure; autoconf-2.50 or newer is
1534     required.  Some of the bash-specific macros were removed, since they are
1535     now standard.
1536
1537 n.  Startup files and files read with source or `.' are no longer required to
1538     be regular files.
1539
1540 o.  Fixed core dump in builtin printf when user-supplied precision or field
1541     width is 0.
1542
1543 p.  Fixed builtin printf to treat a negative field width as a positive field
1544     width with left-justification.
1545
1546 r.  New unwind-protect implementation from Paul Eggert.
1547
1548 s.  Fixed an inadvertently-unclosed comment in the bash completion code that
1549     caused programmable completions to not add trailing slashes or spaces to
1550     completions.
1551
1552 t.  Fixed the process substitution code to cope better when stdin is closed.
1553
1554 v.  Fixes, mostly from Paul Eggert, for a few possible buffer overflows in
1555     the shell.
1556
1557 w.  Fixes from Paul Eggert to avoid most of the type casts in the shell code,
1558     and use more appropriate types for a number of variables.
1559
1560 x.  Command substition no longer inherits the DEBUG trap.
1561
1562 y.  Some fixes to the process substition code on machines without /dev/fd so
1563     that named pipes are not removed inappropriately.
1564
1565 z.  The loadable `getconf' builtin is now much more complete, and will become
1566     part of the shell in the future.
1567
1568 aa. The select command no longer terminates on a `return', so it can be used
1569     to return from an enclosing function (as ksh does it).
1570
1571 bb. Fixed the extended pattern matching code to behave better when presented
1572     with incorrectly-formed patterns.
1573
1574 cc. Some changes were made with the intent of making cross-compilation easier.
1575
1576 dd. The network code (/dev/tcp and /dev/udp redirections) uses getaddrinfo(3)
1577     if it's available, which adds support for IPv6.
1578
1579 ee. Subshells of login shells no longer source ~/.bash_logout when they exit.
1580
1581 ff. Fixes so that subshells don't exit inappropriately if the -e option has
1582     been set.
1583
1584 gg. Restricted shells no longer allow functions to be exported.
1585
1586 hh. Changes to the pattern matching code so extended pattern matching works
1587     on systems with deficient shared library implementations, like MacOS X.
1588
1589 ii. Better error messages when a script with a leading `#!interp' fails
1590     to execute because of problems with `interp'.
1591
1592 jj. Fixed `compgen' to handle the `-o default' option better.
1593
1594 kk. Fixed the job control code to force an asynchronous process's standard
1595     input to /dev/null only if job control is not active.
1596
1597 ll. Fixed a possible infinite recursion problem when `fc ""=abc' (a null
1598     pattern) is used to re-execute a previous command.
1599
1600 mm. Fixed `declare [-a] var=value' to assign VALUE to element 0 if VAR is an
1601     array variable.  Similarly for `declare [-a] var[N]=value'.  This is like
1602     ksh93.
1603
1604 nn. Fixed a bug that caused `read -a aname' to work even if ANAME had been
1605     declared readonly.
1606
1607 oo. Fixed a possible integer overflow problem when constructing names for
1608     temporary files.
1609
1610 2.  New Features in Bash
1611
1612 a.  Added support for DESTDIR installation root prefix, so you can do a
1613     `make install DESTDIR=bash-root' and do easier binary packaging.
1614
1615 b.  Added support for builtin printf "'" flag character as per latest POSIX
1616     drafts.
1617
1618 c.  Support for POSIX.2 printf(1) length specifiers `j', `t', and `z' (from
1619     ISO C99).
1620
1621 d.  New autoconf macro, RL_LIB_READLINE_VERSION, for use by other applications
1622     (bash doesn't use very much of what it returns).
1623
1624 e.  `set [-+]o nolog' is recognized as required by the latest POSIX drafts,
1625     but ignored.
1626
1627 f.  New read-only `shopt' option:  login_shell.  Set to non-zero value if the
1628     shell is a login shell.
1629
1630 g.  New `\A' prompt string escape sequence; expands to time in 24 HH:MM format.
1631
1632 h.  New `-A group/-g' option to complete and compgen; does group name
1633     completion.
1634
1635 i.  New `-t' option to `hash' to list hash values for each filename argument.
1636
1637 j.  New [-+]O invocation option to set and unset `shopt' options at startup.
1638
1639 k.  configure's `--with-installed-readline' option now takes an optional
1640     `=PATH' suffix to set the root of the tree where readline is installed
1641     to PATH.
1642
1643 l.  The ksh-like `ERR' trap has been added.  The `ERR' trap will be run
1644     whenever the shell would have exited if the -e option were enabled.
1645     It is not inherited by shell functions.
1646
1647 m.  `readonly', `export', and `declare' now print variables which have been
1648     given attributes but not set by assigning a value as just a command and
1649     a variable name (like `export foo') when listing, as the latest POSIX
1650     drafts require.
1651
1652 n.  `bashbug' now requires that the subject be changed from the default.
1653
1654 o.  configure has a new `--enable-largefile' option, like other GNU utilities.
1655
1656 p.  `for' loops now allow empty word lists after `in', like the latest POSIX
1657     drafts require.
1658
1659 3.  Changes to Readline
1660
1661 a.  More `const' and type casting fixes.
1662
1663 b.  Changed rl_message() to use vsnprintf(3) (if available) to fix buffer
1664     overflow problems.
1665
1666 c.  The completion code no longer appends a `/' or ` ' to a match when
1667     completing a symbolic link that resolves to a directory name, unless
1668     the match does not add anything to the word being completed.  This
1669     means that a tab will complete the word up to the full name, but not
1670     add anything, and a subsequent tab will add a slash.
1671
1672 d.  Fixed a trivial typo that made the vi-mode `dT' command not work.
1673
1674 e.  Fixed the tty code so that ^S and ^Q can be inserted with rl_quoted_insert.
1675
1676 f.  Fixed the tty code so that ^V works more than once.
1677
1678 g.  Changed the use of __P((...)) for function prototypes to PARAMS((...))
1679     because the use of __P in typedefs conflicted g++ and glibc.
1680
1681 4.  New Features in Readline
1682
1683 a.  Added extern declaration for rl_get_termcap to readline.h, making it a
1684     public function (it was always there, just not in readline.h).
1685
1686 b.  New #defines in readline.h:  RL_READLINE_VERSION, currently 0x0402,
1687     RL_VERSION_MAJOR, currently 4, and RL_VERSION_MINOR, currently 2.
1688
1689 c.  New readline variable:  rl_readline_version, mirrors RL_READLINE_VERSION.
1690
1691 d.  New bindable boolean readline variable:  match-hidden-files.  Controls
1692     completion of files beginning with a `.' (on Unix).  Enabled by default.
1693
1694 e.  The history expansion code now allows any character to terminate a
1695     `:first-' modifier, like csh.
1696
1697 f.  The incremental search code remembers the last search string and uses
1698     it if ^R^R is typed without a search string.
1699
1700 ------------------------------------------------------------------------------
1701 This document details the changes between this version, bash-2.05-release,
1702 and the previous version, bash-2.05-beta2.
1703
1704 1.  Changes to Bash
1705
1706 a.  Make sure we note that the first line of a multi-line command was not
1707     saved in the history if the tests for HISTCONTROL succeed, but the
1708     HISTIGNORE check fails.
1709
1710 b.  Fixed a bug in the pattern matching code that caused `[' to be treated
1711     as a special character inside a `[...]' bracket expression.
1712
1713 c.  Fixed a bug in the pattern matching code that caused `]' to terminate
1714     a bracket expression even if it was the first character after the `['
1715     (or a leading `!' or `^').
1716
1717 d.  Made a small change to report a more user-friendly error message if
1718     execve(2) fails because of an error with the interpreter in a script
1719     with a leading `#! interpreter'.
1720
1721 e.  If the OS does not support an exec(2) magic number of `#!', make sure we
1722     have a non-null interpreter name before attempting to execute it.
1723
1724 f.  Fixed a bug that caused the shell process to end up in a different
1725     process group than the controlling terminal if a job-control shell was
1726     run with `exec' in the startup files.
1727
1728 g.  When started in POSIX mode, either by `bash --posix', `bash -o posix', or
1729     `sh', $SHELLOPTS includes `posix' and POSIXLY_CORRECT is set.
1730
1731 h.  Fixed a problem that caused the `\W' prompt string escape sequence to
1732     expand to nothing when $PWD was `//'.
1733
1734 i.  The `bashbug' shell script no longer uses $(...) command substitution.
1735
1736 j.  When `set' is invoked without options in POSIX mode, it no longer prints
1737     the names and definitions of shell functions.
1738
1739 2.  Changes to Readline
1740
1741 a.  rl_set_paren_blink_timeout() is now documented.
1742
1743 b.  Corrected history.3 man page: `$' is not in the default value of
1744     history_word_delimiters.
1745
1746 c.  If a hook function assigned to rl_event_hook sets rl_done to a non-zero
1747     value, rl_read_key() now immediately returns '\n' (which is assumed to
1748     be bound to accept-line).
1749
1750 3.  New Features in Bash
1751
1752 a.  The `>&word' redirection now works in POSIX mode as it does by default,
1753     since POSIX.2 leaves it unspecified.
1754
1755 ------------------------------------------------------------------------------
1756 This document details the changes between this version, bash-2.05-beta2,
1757 and the previous version, bash-2.05-beta1.
1758
1759 1.  Changes to Bash
1760
1761 a.  Fixed a bug in the arithmetic evaluation code so that a^=b is supported.
1762
1763 b.  Fixed startup so posixly_correct is retained across subshells begun to
1764     execute scripts without a leading `#!'.
1765
1766 c.  Fixed a bug that caused $(< file) to not work in a (...) subshell.
1767
1768 d.  Added config support for Linux running on the IBM S390.
1769
1770 e.  Fixed a bug that caused bash to get its input pointer out of sync when
1771     reading commands through a pipe and running a command with standard
1772     input redirected from a file.
1773
1774 f.  Made a change so that command completion now makes about half as many
1775     stat(2) calls when searching the $PATH.
1776
1777 g.  Fixed a bug that caused variable assignments preceding `return' to not
1778     be propagated to the shell environment in POSIX mode.
1779
1780 h.  Fixed a bug with ${parameter[:]?word} -- tilde expansion was not performed
1781     on `word'.
1782
1783 i.  In POSIX mode, `break' and `continue' do not complain and return success
1784     if called when the shell is not executing a loop.
1785
1786 j.  Fixed `bash -o posix' to work the same as `bash --posix'.
1787
1788 k.  Fixed a bug where variable assignments preceding `eval' or `source/.'
1789     would not show up in the environment exported to subshells run by the
1790     commands.
1791
1792 l.  In POSIX mode, shells started to execute command substitutions inherit
1793     the value of the `-e' option from their parent shell.
1794
1795 m.  In POSIX mode, aliases are expanded even in non-interactive shells.
1796
1797 n.  Changed some of the job control messages to display the text required by
1798     POSIX.2 when the shell is in POSIX mode.
1799
1800 o.  Fixed a bug in `test' that caused it to occasionally return incorrect
1801     results when non-numeric arguments were supplied to `-t'.
1802
1803 2.  Changes to Readline
1804
1805 a.  Some changes were made to avoid gcc warnings with -Wall.
1806
1807 b.  rl_get_keymap_by_name now finds keymaps case-insensitively, so
1808     `set keymap EMACS' works.
1809
1810 c.  The history file writing and truncation functions now return a useful
1811     status on error.
1812
1813 d.  Fixed a bug that could cause applications to dereference a NULL pointer
1814     if a NULL second argument was passed to history_expand().
1815
1816 3.  New Features in Bash
1817
1818 a.  doc/readline.3 has been moved to the readline distribution.
1819
1820 4.  New Features in Readline
1821
1822 a.  New function, rl_get_screen_size (int *rows, int *columns), returns
1823     readline's idea of the screen dimensions.
1824
1825 b.  The timeout in rl_gather_tyi (readline keyboard input polling function)
1826     is now settable via a function (rl_set_keyboard_input_timeout()).
1827
1828 c.  Renamed the max_input_history variable to history_max_entries; the old
1829     variable is maintained for backwards compatibility.
1830
1831 d.  The list of characters that separate words for the history tokenizer is
1832     now settable with a variable:  history_word_delimiters.  The default
1833     value is as before.
1834
1835 ------------------------------------------------------------------------------
1836 This document details the changes between this version, bash-2.05-beta1,
1837 and the previous version, bash-2.05-alpha1.
1838
1839 1.  Changes to Bash
1840
1841 a.  Changes to allow shared library and object building on the GNU Hurd.
1842
1843 b.  Fixes to the way exported functions are placed into the environment and
1844     cached.
1845
1846 c.  The globbing library once again respects locales when processing ranges
1847     in bracket expressions while doing pattern matching.
1848
1849 d.  System-specific configuration changes for:  Tru 64, Interix
1850
1851 e.  Bashbug now uses /usr/bin/editor as one of the editing alternatives, and
1852     will use mktemp(1) or tempfile(1), if present, for temporary file creation.
1853
1854 f.  Bash no longer performs a binary file check on a script argument that's
1855     really a tty (like /dev/fd/0 or /dev/stdin).
1856
1857 g.  Fixed a bug in the execution of shell scripts that caused the effects of
1858     $BASH_ENV to be undone in some cases.
1859
1860 h.  Fixed several bugs that made `bash [-i] /dev/stdin' not work correctly.
1861
1862 i.  Several changes to the job control code to avoid some signal state
1863     manipulation.
1864
1865 j.  The Bash malloc no longer blocks signals as often, which should make it
1866     faster.
1867
1868 k.  Fixed a parsing bug that did not allow backslash to escape a single quote
1869     inside a $'...' construct.
1870
1871 l.  Fixed a bug that caused things like ${var:=$'value'} to be parsed
1872     incorrectly.  This showed up in newer versions of autoconf.
1873
1874 m.  Fixed a bug in the bash-specific readline initialization that caused
1875     key bindings to bash-specific function names appearing in .inputrc to
1876     not be honored.
1877
1878 n.  Bash now sets the file descriptor it uses to save the file descriptor
1879     opened on a shell script to close on exec.
1880
1881 o.  Fixed a bug in the prompt string decoding that caused it to misbehave
1882     when presented an octal sequence of fewer than three characters.
1883
1884 p.  Fixed the `test' builtin to return an error if `[' is supplied a single
1885     argument that is not `]'.
1886
1887 q.  Fixed a bug that caused subshells started to run executable shell scripts
1888     without a leading `#!' to incorrectly inherit an argument list preceding
1889     a shell builtin (like such a script called from a script sourced with `.',
1890     where there were variable assignments preceding the `.' command)
1891
1892 r.  Fixed a bug that caused changes to variables supplied in an assignment
1893     statement preceding a shell builtin to not be honored (like a script
1894     run with `.').
1895
1896 s.  HOSTTYPE, OSTYPE, and MACHTYPE are set only if they do not have values
1897     when the shell is started.
1898
1899 t.  Fixed a bug that caused SIGINT to kill shell scripts after the script
1900     called `wait'.
1901
1902 u.  The `fc' builtin now tries to create its temporary files in the directory
1903     named by $TMPDIR.
1904
1905 v.  Bash no longer calls any Readline functions or uses any Readline variables
1906     not declared in readline.h.
1907
1908 w.  Fixed a bug that caused some substitutions involving $@ to not be split
1909     correctly, especially expansions of the form ${paramterOPword}.
1910
1911 x.  SSH2_CLIENT is now treated like SSH_CLIENT and not auto-exported if it
1912     appears in the initial environment.
1913
1914 y.  Fixed a couple of problems with shell scripts without a leading `#!'
1915     being executed out of shell functions that could cause core dumps if
1916     such a script attempted to execute `return'.
1917
1918 z.  Fixed a problem with the `-nt' and `-ot' binary operators for the
1919     `test/[' builtin and the `[[' conditional command that caused wrong
1920     return values if one of the file arguments did not exist.
1921
1922 aa. Fixed a bug that caused non-interactive shells which had previously
1923     executed `shopt -s expand_aliases' to fail to expand aliases in a
1924     command like `(command) &'.
1925  
1926 2.  Changes to Readline
1927
1928 a.  Changes to make most (but not yet all -- there is still crlf()) of the
1929     exported readline functions declared in readline.h have an rl_ prefix.
1930
1931 b.  More `const' changes in function arguments, mostly for completion
1932     functions.
1933
1934 c.  Fixed a bug in rl_forward that could cause the point to be set to before
1935     the beginning of the line in vi mode.
1936
1937 d.  Fixed a bug in the callback read-char interface to make it work when a
1938     readline function pushes some input onto the input stream with
1939     rl_execute_next (like the incremental search functions).
1940
1941 e.  Fixed a file descriptor leak in the history file manipulation code that
1942     was tripped when attempting to truncate a non-regular file (like
1943     /dev/null).
1944
1945 f.  Some existing variables are now documented and part of the public
1946     interface (declared in readline.h):  rl_explict_arg, rl_numeric_arg,
1947     rl_editing_mode, rl_last_func.
1948
1949 g.  Renamed rltty_set_default_bindings to rl_tty_set_default_bindings and
1950     crlf to rl_crlf, so there are no public functions declared in readline.h
1951     without an `rl_' prefix.  The old functions still exist for backwards
1952     compatibility.
1953
1954 3.  New Features in Bash
1955
1956 a.  A new loadable builtin, realpath, which canonicalizes and expands symlinks
1957     in pathname arguments.
1958
1959 b.  When `set' is called without options, it prints function defintions in a
1960     way that allows them to be reused as input.  This affects `declare' and
1961     `declare -p' as well.
1962
1963 4.  New Features in Readline
1964
1965 a.  New application-callable function rl_set_prompt(const char *prompt):
1966     expands its prompt string argument and sets rl_prompt to the result.
1967
1968 b.  New application-callable function rl_set_screen_size(int rows, int cols):
1969     public method for applications to set readline's idea of the screen
1970     dimensions.
1971
1972 c.  The history example program (examples/histexamp.c) is now built as one
1973     of the examples.
1974
1975 ------------------------------------------------------------------------------
1976 This document details the changes between this version, bash-2.05-alpha1,
1977 and the previous version, bash-2.04-release.
1978
1979 1.  Changes to Bash
1980
1981 a.  A fix was made to allow newlines in compond array assignments.
1982
1983 b.  configure now checks for real-time signals with unusable values.
1984
1985 c.  Interactive shells no longer exit if a substitution fails because of an
1986     unset variable within a sourced file.
1987
1988 d.  Fixed a problem with incorrect matching of extended glob patterns when
1989     doing pattern substitution.
1990
1991 e.  `{' is now quoted by the completion code when it appears in a filename.
1992
1993 f.  Fixed an error in pattern matching that caused the matcher to not
1994     correctly skip the rest of a bracket expression after a character
1995     matched.
1996
1997 g.  Fixed a bug in the IFS word splitting code to make a non-whitespace IFS
1998     character preceded by IFS whitespace part of the current delimiter rather
1999     than generating a separate field.
2000
2001 h.  The {!prefix@} expansion now generates separate words, analogous to $@,
2002     when double-quoted.
2003
2004 i.  Command substitution now ignores NUL bytes in the command output, and the
2005     parser ignores them on input.
2006
2007 j.  A fix was made to the job control code to prevent hanging processes when
2008     the shell thinks background processes are running but the kernel returns
2009     -1/ECHILD from waitpid().
2010
2011 k.  `pwd' now prints an error message if the write fails when displaying the
2012     current directory.
2013
2014 l.  When in POSIX mode, the shell prints trap dispostions without a leading
2015     `SIG' in the signal specification.
2016
2017 m.  Fixed a parser bug that caused the current command's line count to be
2018     messed up by a compound array assignment.
2019
2020 n.  Fixed a bug in the unwind-protect code that caused bad behavior on machines
2021     where ints and pointers are not the same size.
2022
2023 o.  System-specific configure changes for:  MacOS X.
2024
2025 p.  Changes for Cygwin to translate \r\n and \r to \n and to set file
2026     descriptors used for reading input to text mode in various places.
2027
2028 q.  Fixed a bug that caused `!' to occasionally not be honored when in
2029     a (...) subshell.
2030
2031 r.  Bash no longer assumes that getcwd() will return any useful error message
2032     in the buffer passed as an argument if the call fails.
2033
2034 s.  The `source', `.', and `fc' builtins no longer check whether a file is
2035     binary before reading commands from it.
2036
2037 t.  Subshells no longer turn off job control when they exit, since that
2038     sometimes resulted in the terminal being reset to the wrong process
2039     group.
2040
2041 u.  The history code no longer tries to save the second and subsequent lines
2042     of a multi-line command if the first line was not saved.
2043
2044 v.  The history saving code now does a better job of saving blank lines in a
2045     multi-line command.
2046
2047 w.  Removed a `feature' that made `ulimit' silently translate `unlimited' to
2048     the current hard limit, which obscured some kernel error returns.
2049
2050 x.  Fixed the grammar so that `}' is recognized as a reserved word after
2051     another reserved word, rather than requiring a `;' or newline.  This
2052     means that constructs like
2053
2054         { { echo a b c ; } }
2055
2056     work as expected.
2057
2058 y.  Conditional commands ([[...]]) now perform tilde expansion on their
2059     arguments.
2060
2061 z.  Noted in the documentation that `set -a' will cause functions to be
2062     exported if they are defined after `set -a' is executed.
2063
2064 aa. When an interactive login shell starts, if $PWD and $HOME refer to the
2065     same directory but are not the same string, $PWD is set to $HOME.
2066
2067 bb. Fixed `printf' to handle invalid floating point numbers better.
2068
2069 cc. Temporary files are now created with random filenames, to improve security.
2070
2071 dd. The readline initialization code now binds the custom bash functions and
2072     key bindings after the readline defaults are set up.
2073
2074 ee. Fixed the `source' builtin to no longer overwrite a shell function's
2075     argument list, even if the sourced file changes the positional parameters.
2076
2077 ff. A bug fix was made in the expansion of `$*' in contexts where it should
2078     not be split, like assignment statements.
2079
2080 gg. Fixed a bug in the parameter substring expansion to handle conditional
2081     arithmetic expressions ( exp ? val1 : val2 ) without cutting the expression
2082     off at the wrong `:'.
2083
2084 hh. The `<>' redirection is no longer subject to the current setting of
2085     `noclobber', as POSIX.2 specifies.
2086
2087 ii. Fixed a bug in the conditional command parsing code that caused expressions
2088     in parentheses to occasionally be parsed incorrectly.
2089
2090 jj. Fixed a bug in the ((...)) arithmetic command to allow do...done or
2091     {...} to follow the )) without an intervening list terminator.
2092
2093 kk. `printf' now treats `\E' the same as `\e' when performing backslash escape
2094     expansion for the `%b' format specifier.
2095
2096 ll. When in POSIX mode, the shell no longer searches the current directory for
2097     a file to be sourced with `.' or `source' if `.' is not in $PATH.
2098
2099 mm. Interactive comments are no longer turned off when POSIX mode is disabled.
2100
2101 nn. The UID, EUID, HOSTNAME variables are not set if they are in the shell's
2102     environment when it starts up.
2103
2104 oo. Fixed a bug in the `command' builtin so the effect of a command like
2105     `command exec 4<file' is as if the `command' had been omitted.
2106
2107 pp. ${foo[@]} and ${foo[*]} now work as in ksh93 if `foo' is not an array
2108     variable.
2109
2110 qq. ${#foo[X]}, where X is 0, @, or *, now work as in ksh93 if `foo' is not
2111     an array variable.
2112
2113 rr. The shell's idea of an absolute pathname now takes into account a
2114     possible drive specification on Cygwin and other Windows systems.
2115
2116 ss. Fixed a bug which caused incorrect parsing of some multi-character
2117     constructs if they were split across input lines with backslash-newline
2118     line continuation.
2119
2120 tt. Fixed a bug that caused restricted shell mode to be set inappropriately
2121     when trying to execute a shell script without a leading `#!'.
2122
2123 uu. Shell function definitions no longer require that the body be a group
2124     command ( {...} ), as POSIX.2 requires.
2125
2126 vv. The `cd' and `pwd' builtins now process symlinks in pathnames internally
2127     and should require many fewer calls to getcwd().
2128
2129 ww. Fixed a bug that caused a pipeline's process group to be set incorrectly
2130     if one of the pipeline elements contained a command substitution.
2131
2132 xx. Fixed a bug that caused core dumps when expanding the value of HISTIGNORE.
2133
2134 yy. The output of `set' is now quoted using $'...' so invisible characters are
2135     displayed as escape sequences.
2136
2137 zz. Fixed the help text for `unset', since PATH and IFS may both be unset.
2138
2139 aaa. The shell no longer puts directory names into the command hash table.
2140
2141 bbb. Fixed a bug in `read' that caused it to occasionally free memory twice if
2142      it was interrupted after reading a large amount of data.
2143
2144 ccc. Assignment statements that attempt to assign values to readonly variables
2145      now cause the command to return an error status.
2146
2147 ddd. Fixed a bug that could cause incorrect output if a $(<file) construct was
2148      interrupted.
2149
2150 eee. GROUPS and FUNCNAME now return an error status when assignment is
2151      attempted, but may be unset (in which case they lose their special
2152      properties).  In all respects except unsetting, they are readonly.
2153
2154 fff. The string-to-integer conversion code now ignores trailing whitespace in
2155      the string, even if strtol(3) does not.
2156
2157 ggg. The tcsh magic-space function now does a better job of inserting the
2158      space close to where the point was before the history expansion, rather
2159      than just appending it.
2160
2161 hhh. Fixed a bug which caused a file sourced from an interactive shell to
2162      fill up the jobs table if it ran lots of jobs.
2163
2164 iii. Fixed a bug in the parameter pattern substitution code to avoid infinite
2165      recursion on zero-length matches.
2166
2167 2.  Changes to Readline
2168
2169 a.  When setting the terminal attributes on systems using `struct termio',
2170     readline waits for output to drain before changing the attributes.
2171
2172 b.  A fix was made to the history word tokenization code to avoid attempts to
2173     dereference a null pointer.
2174
2175 c.  Readline now defaults rl_terminal_name to $TERM if the calling application
2176     has left it unset, and tries to initialize with the resultant value.
2177
2178 d.  Instead of calling (*rl_getc_function)() directly to get input in certain
2179     places, readline now calls rl_read_key() consistently.
2180
2181 e.  Fixed a bug in the completion code that allowed a backslash to quote a
2182     single quote inside a single-quoted string.
2183
2184 f.  rl_prompt is no longer assigned directly from the argument to readline(),
2185     but uses memory allocated by readline.  This allows constant strings to
2186     be passed to readline without problems arising when the prompt processing
2187     code wants to modify the string.
2188
2189 g.  Fixed a bug that caused non-interactive history searches to return the
2190     wrong line when performing multiple searches backward for the same string.
2191
2192 h.  Many variables, function arguments, and function return values are now
2193     declared `const' where appropriate, to improve behavior when linking with
2194     C++ code.
2195
2196 i.  The control character detection code now works better on systems where
2197     `char' is unsigned by default.
2198
2199 j.  The vi-mode numeric argument is now capped at 999999, just like emacs mode.
2200
2201 k.  The Function, CPFunction, CPPFunction, and VFunction typedefs have been
2202     replaced with a set of specific prototyped typedefs, though they are
2203     still in the readline header files for backwards compatibility.
2204
2205 m.  Nearly all of the (undocumented) internal global variables in the library
2206     now have an _rl_ prefix -- there were a number that did not, like
2207     screenheight, screenwidth, alphabetic, etc.
2208
2209 n.  The ding() convenience function has been renamed to rl_ding(), though the
2210     old function is still defined for backwards compatibility.
2211
2212 o.  The completion convenience functions filename_completion_function,
2213     username_completion_function, and completion_matches now have an rl_
2214     prefix, though the old names are still defined for backwards compatibility.
2215
2216 p.  The functions shared by readline and bash (linkage is satisfied from bash
2217     when compiling with bash, and internally otherwise) now have an sh_ prefix.
2218
2219 q.  Changed the shared library creation procedure on Linux and BSD/OS 4.x so
2220     that the `soname' contains only the major version number rather than the
2221     major and minor numbers.
2222
2223 r.  Fixed a redisplay bug that occurred when the prompt spanned more than one
2224     physical line and contained invisible characters.
2225
2226 3.  New Features in Bash
2227
2228 a.  Added a new `--init-file' invocation argument as a synonym for `--rcfile',
2229     per the new GNU coding standards.
2230
2231 b.  The /dev/tcp and /dev/udp redirections now accept service names as well as
2232     port numbers.
2233
2234 c.  `complete' and `compgen' now take a `-o value' option, which controls some
2235     of the aspects of that compspec.  Valid values are:
2236
2237         default - perform bash default completion if programmable
2238                   completion produces no matches
2239         dirnames - perform directory name completion if programmable
2240                    completion produces no matches
2241         filenames - tell readline that the compspec produces filenames,
2242                     so it can do things like append slashes to
2243                     directory names and suppress trailing spaces
2244
2245 4.  New Features in Readline
2246
2247 a.  The blink timeout for paren matching is now settable by applications.
2248
2249 b.  _rl_executing_macro has been renamed to rl_executing_macro, which means
2250     it's now part of the public interface.
2251
2252 c.  Readline has a new variable, rl_readline_state, which is a bitmap that
2253     encapsulates the current state of the library; intended for use by
2254     callbacks and hook functions.
2255
2256 ------------------------------------------------------------------------------
2257 This document details the changes between this version, bash-2.04-release,
2258 and the previous version, bash-2.04-beta5.
2259
2260 1.  Changes to Bash
2261
2262 a.  Better compile-time and configure-time checks for the necessity of
2263     inet_aton().
2264
2265 b.  A bug was fixed in the expansion of "${@:-}" when there are positional
2266     parameters.
2267
2268 c.  A typo was fixed in the output of `complete'.
2269
2270 d.  The matches generated for a word by the `-W' argument to complete and
2271     compgen are now matched against the word being completed, and only
2272     matches are returned as the result.
2273
2274 e.  Some fixes were made for systems which do not restart read(2) when a
2275     signal caught by bash is received.
2276
2277 f.  A bug was fixed which caused the umask to be set to 0 when an invalid
2278     symbolic mode mask was parsed.
2279
2280 g.  Fixed a bug that could cause a core dump if a SIGCHLD was received while
2281     performing an assignment statement using command substitution.
2282
2283 h.  Changed the word splitting function for programmable completion so cases
2284     in which the cursor is between words are handled a bit better.
2285
2286 2.  Changes to Readline
2287
2288 a.  rl_funmap_names() is now documented.
2289
2290 3.  New Features in Bash
2291
2292 a.  The LC_NUMERIC variable is now treated specially, and used to set the
2293     LC_NUMERIC locale category for number formatting, e.g., when `printf'
2294     displays floating-point numbers.
2295
2296 ------------------------------------------------------------------------------
2297 This document details the changes between this version, bash-2.04-beta5,
2298 and the previous version, bash-2.04-beta4.
2299
2300 1.  Changes to Bash
2301
2302 a.  A couple of changes were made to the Makefiles for easier building on
2303     non-Unix systems.
2304
2305 b.  Fixed a bug where the current prompt would be set to $PS2 at startup.
2306
2307 c.  The shell script that tests an already-installed version was changed to
2308     remove the directory it created its test programs in at exit.
2309
2310 d.  Several changes were made to the code that tokenizes an input line for
2311     the programmable completion code.  Shell metacharacters will now appear
2312     as individual words in the word list passed to the completion functions.
2313     Some of the example completion shell functions were changed to understand
2314     redirection operators.
2315
2316 e.  A bug was fixed that, under obscure circumstances, could confuse the
2317     parser when a shell function was run by the programmable completion code.
2318
2319 f.  A bug was fixed in the ulimit builtin for systems not using getrlimit().
2320
2321 g.  The execution code now propagates the correct exit status back to the rest
2322     of the code if the return value of a subshell command was being inverted.
2323     Some new test cases for inverting return values with the `!' reserved
2324     word have been added.
2325
2326 h.  Negative exponents in the arithmetic evaluation of v**e now return an
2327     evaluation error.
2328
2329 i.  A bug that caused bash to check the wrong process in a pipeline for
2330     abnormal termination (and consequently resetting the terminal attributes)
2331     was fixed.
2332
2333 j.  Fixed a bug that caused $PS2 to be displayed after PROMPT_COMMAND was
2334     executed.
2335
2336 2.  Changes to Readline
2337
2338 1.  Fixed a bug in a C preprocessor define that caused the keypad control
2339     functions to be compiled out for all platforms except DJGPP.
2340
2341 ------------------------------------------------------------------------------
2342 This document details the changes between this version, bash-2.04-beta4,
2343 and the previous version, bash-2.04-beta3.
2344
2345 1.  Changes to Bash
2346
2347 a.  A couple of changes were made to the redirection to attempt to avoid
2348     race conditions and malicious file replacement.
2349
2350 2.  A change was made to the string evaluation code (used for command 
2351     substitution, `eval', and the `.' builtin) to fix an obscure core
2352     dump on alpha machines.
2353
2354 3.  A bug that caused $LINENO to be wrong when executing arithmetic for
2355     commands was fixed.
2356
2357 4.  A couple of memory leaks in the programmable completion code were fixed.
2358
2359 5.  A bug that could cause a core dump by freeing memory twice during a call
2360     to `eval' if `set -u' had been enabled and an undefined variable was
2361     referenced was fixed.
2362
2363 ------------------------------------------------------------------------------
2364 This document details the changes between this version, bash-2.04-beta3,
2365 and the previous version, bash-2.04-beta2.
2366
2367 1.  Changes to Bash
2368
2369 a.  Bash should run the appropriate startup files when invoked by ssh2.
2370
2371 b.  Fixed a bug in the parsing of conditional commands that could cause a
2372     core dump.
2373
2374 c.  Fixed a bug in parsing job specifications that occasionally caused
2375     core dumps when an out-of-range job was referenced.
2376
2377 d.  Fixed the `type' and `command' builtins to do better reporting of
2378     commands that are not found in $PATH or the hash table.
2379
2380 e.  Fixed a POSIX.2 compliance problem in the command builtin -- commands
2381     are supposed to be reported as full pathnames.
2382
2383 f.  The `echo' builtin now returns failure if a write error occurs.
2384
2385 g.  Fixed a bug which caused the locale to not be reset correctly when
2386     LC_ALL was unset.
2387
2388 h.  Changed description of `getopts' in man page and reference manual to make
2389     it clear that option characters may be characters other than letters.
2390
2391 i.  If the shell exits while in a function, make sure that any trap on EXIT
2392     doesn't think the function is still executing.
2393
2394 j.  Bashbug now tries harder to find a usable editor if $EDITOR is not set,
2395     rather than simply defaulting to `emacs'.
2396
2397 k.  Changes to the scripts that guess and canonicalize the system type, from
2398     the latest `automake' distribution via Debian.
2399
2400 l.  When using named pipes for process substitution, make sure the file
2401     descriptors opened for reading are set to non-blocking mode.
2402
2403 m.  Fixed a bug that caused termination of pipelines that are killed by a
2404     signal to not be reported in some cases.
2405
2406 n.  When not in literal-history mode, shell comment lines are not added to
2407     the history list.
2408
2409 o.  When running in POSIX.2 mode, bash no longer performs word splitting on
2410     the expanded value of the word supplied as the filename argument to
2411     redirection operators.
2412
2413 p.  The prompt string decoding code now backslash-quotes only characters that
2414     are special within double quotes when expanding the \w and \W escape
2415     sequences.
2416
2417 q.  Fixed a bug in the prompt decoding code that could cause a non-interactive
2418     shell to seg fault if `\u' was used in PS4 and the shell was in xtrace
2419     mode.
2420
2421 r.  Fixed a bug that caused function definitions to be printed with any
2422     redirections that should be attached to the entire function before the
2423     closing brace.
2424
2425 s.  Changed the tilde expansion code for Cygwin systems to avoid creating
2426     pathnames beginning with `//' if $HOME == `/'.
2427
2428 t.  Fixed a couple of autoconf tests to avoid creating files with fixed names
2429     in /tmp.
2430
2431 u.  The `trap' and `kill' builtins now know the names of the POSIX.1b real-
2432     time signals on systems which support them.
2433
2434 2.  Changes to Readline
2435
2436 a.  Fixed a problem with the single-quote quoting function that could cause
2437     buffer overflows.
2438
2439 b.  Fixed a bug that caused incorrect `stat characters' to be printed if
2440     the files being completed were in the root directory and visible-stats
2441     was enabled.
2442
2443 3.  New Features in Bash
2444
2445 a.  There is a new `rbash.1' manual page, from the Debian release.
2446
2447 b.  The `--enable-usg-echo-default' option to `configure' has been renamed to
2448     `--enable-xpg-echo-default'.  The old option is still there for backwards
2449     compatibility.
2450
2451 ------------------------------------------------------------------------------
2452 This document details the changes between this version, bash-2.04-beta2,
2453 and the previous version, bash-2.04-beta1.
2454
2455 1.  Changes to Bash
2456
2457 a.  Fixed a bug that could cause pipes to be closed inappropriately in
2458     some obscure cases.
2459
2460 b.  Fixed a bug that caused creation of the exported environment to clobber
2461     the current command string if there were any exported shell functions.
2462
2463 c.  Some changes were made to reduce bash's memory usage.
2464
2465 d.  Fixed a problem with programmable completion and filenames to be
2466     completed containing quote characters.
2467
2468 e.  Changed the code the removes named pipes created for the <(...) and >(...)
2469     expansions to defer removal until after any current shell function has
2470     finished executing.
2471
2472 f.  Fixed a bug in `select' which caused it to not handle the `continue'
2473     builtin correctly.
2474
2475 g.  Autoconf tests added for cygwin32 and mingw32.
2476
2477 2.  New Features in Bash
2478
2479 a.  The `--with-bash-malloc' configure option replaces `--with-gnu-malloc'
2480     (which is still there for backwards compatibility).
2481
2482 ------------------------------------------------------------------------------
2483 This document details the changes between this version, bash-2.04-beta1,
2484 and the previous version, bash-2.04-alpha1.
2485
2486 1.  Changes to Bash
2487
2488 a.  Fixed a bug in the programmable completion code that occurred when
2489     trying to complete command lines containing a `;' or `@'.
2490
2491 b.  The file descriptor from which the shell is reading a script is now
2492     moved to a file descriptor above the user-addressible range.
2493
2494 c.  Changes to `printf' so that it can handle integers beginning with 0
2495     or 0x as octal and hex, respectively.
2496
2497 d.  Fixes to the programmable completion code so it handles nonsense like
2498     `compgen -C xyz' gracefully.
2499
2500 e.  The shell no longer modifies the signal handler for SIGPROF, allowing
2501     profiling again on certain systems.
2502
2503 f.  The shell checks for a new window size, if the user has requested it,
2504     after a process exits due to a signal.
2505
2506 g.  Fixed a bug with variables with null values in a program's temporary
2507     environment and the bash getenv() replacement.
2508
2509 h.  `declare' and the other builtins that take variable assignments as
2510     arguments now honor `set -a' and mark modified variables for export.
2511
2512 i.  Some changes were made for --dump-po-strings mode when writing strings
2513     with embedded newlines.
2514
2515 j.  The code that caches export strings from the initial environment now
2516     duplicates the string rather than just pointing into the environment.
2517
2518 k.  The filename completion quoting code now uses single quotes by default
2519     if the filename being completed contains newlines, since \<newline>
2520     has a special meaning to the parser.
2521
2522 l.  Bash now uses typedefs bits32_t and u_bits32_t instead of int32_t and
2523     u_int32_t, respectively to avoid conflicts on certain Unix versions.
2524
2525 m.  Configuration changes were made for: Rhapsody, Mac OS, FreeBSD-3.x.
2526
2527 n.  Fixed a problem with hostname-to-ip-address translation in the
2528     /dev/(tcp|udp)/hostname/port redirection code.
2529
2530 o.  The texinfo manual has been reorganized slightly.
2531
2532 p.  Filename generation (globbing) range comparisons in bracket expressions
2533     no longer use strcoll(3) even if it is available, since it has unwanted
2534     effects in certain locales.
2535
2536 q.  Fixed a cosmetic problem in the source that caused the shell to not
2537     compile if DPAREN_ARITHMETIC was not defined but ARITH_FOR_COMMAND was.
2538
2539 r.  Fixed a bug in the here-document code tripped when the file descriptor
2540     opened to the file containing the text of the here document was the
2541     same as a redirector specified by the user.
2542
2543 s.  Fixed a bug where the INVERT_RETURN flag was not being set for `pipeline'
2544     in `time ! pipeline'.
2545
2546 t.  Fixed a bug with the `wait' builtin which manifested itself when an
2547     interrupt was received while the shell was waiting for asynchronous
2548     processes in a shell script.
2549
2550 u.  Fixed the DEBUG trap code so that it has the correct value of $?.
2551
2552 v.  Fixed a bug in the parameter pattern substitution code that could cause
2553     the shell to attempt to free unallocated memory if the pattern started
2554     with `/' and an expansion error occurs.
2555
2556 w.  Fixed a bug in the positional parameter substring code that could
2557     cause the shell to loop freeing freed memory.
2558
2559 x.  Fixed a bug in the positional parameter pattern substitution code so
2560     that it correctly handles null replacement strings with a pattern
2561     string prefixed with `%' or `#'.
2562
2563 y.  The shell no longer attempts to import functions from the environment if
2564     started with `-n'.
2565
2566 z.  Fixed a bug that caused `return' in a command substitution executed in
2567     a shell function to return from the function in a subshell and continue
2568     execution.
2569
2570 aa. `hash -p /pathname/with/slashes name' is no longer allowed when the shell
2571     is restricted.
2572
2573 bb. The wait* job control functions now behave better if called when there
2574     are no unwaited-for children.
2575
2576 cc. Command substitution no longer unconditionally disables job control in
2577     the subshell started to run the command.
2578
2579 dd. A bug was fixed that occasionally caused traps to mess up the parser
2580     state.
2581
2582 ee. `bashbug' now honors user headers in the mail message it sends.
2583
2584 ff. A bug was fixed that caused the `:p' history modifier to not print the
2585     history expansion if the `histverify' option was set.
2586
2587 2.  Changes to Readline
2588
2589 a.  Fixed a bug in the redisplay code for lines with more than 256 line
2590     breaks.
2591
2592 b.  A bug was fixed which caused invisible character markers to not be
2593     stripped from the prompt string if the terminal was in no-echo mode.
2594
2595 c.  Readline no longer tries to get the variables it needs for redisplay
2596     from the termcap entry if the calling application has specified its
2597     own redisplay function.  Readline treats the terminal as `dumb' in
2598     this case.
2599
2600 d.  Fixes to the SIGWINCH code so that a multiple-line prompt with escape
2601     sequences is redrawn correctly.
2602
2603 3.  New Features in Bash
2604
2605 a.  `bashbug' now accepts `--help' and `--version' options.
2606
2607 b.  There is a new `xpg_echo' option to `shopt' that controls the behavior
2608     of echo with respect to backslash-escaped characters at runtime.
2609
2610 ------------------------------------------------------------------------------
2611 This document details the changes between this version, bash-2.04-alpha1,
2612 and the previous version, bash-2.04-devel.
2613
2614 1.  Changes to Bash
2615
2616 a.  Fixed a bug that could cause core dumps when performing substring
2617     expansion.
2618
2619 b.  Shared object configuration changes for:  Solaris, OSF/1
2620
2621 c.  The POSIX_GLOB_LIBRARY code that uses the POSIX.2 globbing facilities
2622     for pathname expansion now understands GLOBIGNORE.
2623
2624 d.  The code that implements `eval' was changed to save the value of the
2625     current prompt, so an eval in a shell function called by the programmable
2626     completion code will not change the prompt to $PS2.
2627
2628 e.  Restored the undocumented NON_INTERACTIVE_LOGIN_SHELLS #define to
2629     config-top.h.  If this is defined, all login shells will read the
2630     startup files, not just interactive and non-interactive started with
2631     the `--login' option.
2632
2633 f.  Fixed a bug that caused the expansion code to occasionally dump core if
2634     IFS contained characters > 128.
2635
2636 g.  Fixed a problem with the grammar so that a newline is not required
2637     after the `))' in the new-style arithmetic for statement; a semicolon
2638     may be used as expected.
2639
2640 h.  Variable indirection may now reference the shell's special variables.
2641
2642 i.  The $'...' and $"..." constructs are now added to the history correctly
2643     if they contain newlines and command-oriented history is enabled.
2644
2645 j.  It is now an error to try to assign a value to a function-local copy
2646     of a readonly shell variable (declared with the `local' builtin).
2647
2648 2.  Changes to Readline
2649
2650 a.  The history file code now uses O_BINARY mode when reading and writing
2651     the history file on cygwin32.
2652
2653 3.  New Features in Bash
2654
2655 a.  A new programmable completion facility, with two new builtin commands:
2656     complete and compgen.
2657
2658 b.  configure has a new option, `--enable-progcomp', to compile in the
2659     programmable completion features (enabled by default).
2660
2661 c.  `shopt' has a new option, `progcomp', to enable and disable programmable
2662     completion at runtime.
2663
2664 d.  Unsetting HOSTFILE now clears the list of hostnames used for completion.
2665
2666 4.  New Features in Readline
2667
2668 a.  A new variable, rl_gnu_readline_p, always 1.  The intent is that an
2669     application can verify whether or not it is linked with the `real'
2670     readline library or some substitute.
2671
2672 ------------------------------------------------------------------------------
2673 This document details the changes between this version, bash-2.04-devel,
2674 and the previous version, bash-2.03-release.
2675
2676 1.  Changes to Bash
2677
2678 a.  System-specific configuration and source changes for:  Interix, Rhapsody
2679
2680 b.  Fixed a bug in execute_cmd.c that resulted in a compile-time error if
2681     JOB_CONTROL was not defined.
2682
2683 c.  An obscure race condition in the trap code was fixed.
2684
2685 d.  The string resulting from $'...' is now requoted to avoid any further
2686     expansion.
2687
2688 e.  The $'...' quoting syntax now allows backslash to escape a single quote,
2689     for ksh-93 compatibility.
2690
2691 f.  The $"..." quoting syntax now escapes backslashes and double quotes in
2692     the translated string when displaying them with the --dump-po-strings
2693     option.
2694
2695 g.  `echo -e' no longer converts \' to '.
2696
2697 h.  Fixes were made to the extended globbing code to handle embedded (...)
2698     patterns better.
2699
2700 i.  Some improvements were made to the code that unsets `nodelay' mode on
2701     the file descriptor from which bash is reading input.
2702
2703 j.  Some changes were made to the replacement termcap library for better
2704     operation on MS-DOS.
2705
2706 k.  Some changes were made to the tilde expansion code to handle backslash
2707     as a pathname separator on MS-DOS.
2708
2709 l.  The source has been reorganized a little bit -- there is now an `include'
2710     subdirectory, and lib/posixheaders has been removed.
2711
2712 m.  Improvements were made to the `read' builtin so that it makes many
2713     fewer read(2) system calls.
2714
2715 n.  The expansion of $- will include `c' and `s' when those options are
2716     supplied at shell invocation.
2717
2718 o.  Several improvments were made to the completion code:  variable completion
2719     now works better when there are unterminated expansions, command
2720     completion understands quotes better, and completion now works in certain
2721     unclosed $(... constructs.
2722
2723 p.  The arithmetic expansion code was fixed to not need the value of a
2724     variable being assigned a value (fixes the "ss=09; let ss=10" bug).
2725
2726 q.  Some changes were made to make exported environment creation faster.
2727
2728 r.  The html documentation will be installed into $(htmldir) if that variable
2729     has a value when `make install' is run.
2730
2731 s.  Fixed a bug that would cause the bashrc file to be sourced inappropriately
2732     when bash is started by sshd.
2733
2734 t.  The SSH_CLIENT environment variable is no longer auto-exported.
2735
2736 u.  A bug that caused redirections with (...) subshells to be performed in
2737     the wrong order was fixed.
2738
2739 v.  A bug that occasionally caused inappropriate expansion of assignment
2740     statements in compound array assignments was fixed.
2741
2742 w.  The code that parses the words in a compound array assignment was
2743     simplified considerably and should work better now.
2744
2745 x.  Fixes to the non-job-control code in nojobs.c to make it POSIX.2-compliant
2746     when a user attempts to retrieve the status of a terminated background
2747     process.
2748
2749 y.  Fixes to the `printf' builtin so that it doesn't try to expand all
2750     backslash escape sequences in the format string before parsing it for
2751     % format specifiers.
2752
2753 2.  Changes to Readline
2754
2755 a.  The history library tries to truncate the history file only if it is a
2756     regular file.
2757
2758 b.  A bug that caused _rl_dispatch to address negative array indices on
2759     systems with signed chars was fixed.
2760
2761 c.  rl-yank-nth-arg now leaves the history position the same as when it was
2762     called.
2763
2764 d.  Changes to the completion code to handle MS-DOS drive-letter:pathname
2765     filenames.
2766
2767 e.  Completion is now case-insensitive by default on MS-DOS.
2768
2769 f.  Fixes to the history file manipulation code for MS-DOS.
2770
2771 g.  Readline attempts to bind the arrow keys to appropriate defaults on MS-DOS.
2772
2773 h.  Some fixes were made to the redisplay code for better operation on MS-DOS.
2774
2775 i.  The quoted-insert code will now insert tty special chars like ^C.
2776
2777 j.  A bug was fixed that caused the display code to reference memory before
2778     the start of the prompt string.
2779
2780 k.  More support for __EMX__ (OS/2).
2781
2782 l.  A bug was fixed in readline's signal handling that could cause infinite
2783     recursion in signal handlers.
2784
2785 m.  A bug was fixed that caused the point to be less than zero when rl_forward
2786     was given a very large numeric argument.
2787
2788 n.  The vi-mode code now gets characters via the application-settable value
2789     of rl_getc_function rather than calling rl_getc directly.
2790
2791 3.  New Features in Bash
2792
2793 a.  The history builtin has a `-d offset' option to delete the history entry
2794     at position `offset'.
2795
2796 b.  The prompt expansion code has two new escape sequences: \j, the number of
2797     active jobs; and \l, the basename of the shell's tty device name.
2798
2799 c.  The `bind' builtin has a new `-x' option to bind key sequences to shell
2800     commands.
2801
2802 d.  There is a new shell option, no_empty_command_completion, which, when
2803     enabled, disables command completion when TAB is typed on an empty line.
2804
2805 e.  The `help' builtin has a `-s' option to just print a builtin's usage
2806     synopsys.
2807
2808 f.  There are several new arithmetic operators:  id++, id-- (variable
2809     post-increment/decrement), ++id, --id (variabl pre-increment/decrement),
2810     expr1 , expr2 (comma operator).
2811
2812 g.  There is a new ksh-93 style arithmetic for command:
2813         for ((expr1 ; expr2; expr3 )); do list; done
2814
2815 h.  The `read' builtin has a number of new options:
2816         -t timeout      only wait timeout seconds for input
2817         -n nchars       only read nchars from input instead of a full line
2818         -d delim        read until delim rather than newline
2819         -s              don't echo input chars as they are read
2820
2821 i.  The redirection code now handles several filenames specially:
2822     /dev/fd/N, /dev/stdin, /dev/stdout, and /dev/stderr, whether or
2823     not they are present in the file system.
2824
2825 j.  The redirection code now recognizes pathnames of the form
2826     /dev/tcp/host/port and /dev/udp/host/port, and tries to open a socket
2827     of the appropriate type to the specified port on the specified host.
2828
2829 k.  The ksh-93 ${!prefix*} expansion, which expands to the names of all
2830     shell variables whose names start with prefix, has been implemented.
2831
2832 l.  There is a new dynamic variable, FUNCNAME, which expands to the name of
2833     a currently-executing function.  Assignments to FUNCNAME have no effect.
2834
2835 m.  The GROUPS variable is no longer readonly; assignments to it are silently
2836     discarded.  This means it can be unset.
2837
2838 4.  New Features in Readline
2839
2840 a.  Parentheses matching is now always compiled into readline, and enabled
2841     or disabled when the value of the `blink-matching-paren' variable is
2842     changed.
2843
2844 b.  MS-DOS systems now use ~/_inputrc as the last-ditch inputrc filename.
2845
2846 c.  MS-DOS systems now use ~/_history as the default history file.
2847
2848 d.  history-search-{forward,backward} now leave the point at the end of the
2849     line when the string to search for is empty, like
2850     {reverse,forward}-search-history.
2851
2852 e.  history-search-{forward,backward} now leave the last history line found
2853     in the readline buffer if the second or subsequent search fails.
2854
2855 f.  New function for use by applications:  rl_on_new_line_with_prompt, used
2856     when an application displays the prompt itself before calling readline().
2857
2858 g.  New variable for use by applications:  rl_already_prompted.  An application
2859     that displays the prompt itself before calling readline() must set this to
2860     a non-zero value.
2861
2862 ------------------------------------------------------------------------------
2863 This document details the changes between this version, bash-2.03-release,
2864 and the previous version, bash-2.03-beta2.
2865
2866 1.  Changes to Bash
2867
2868 a.  A file descriptor leak in the `fc' builtin was fixed.
2869
2870 b.  A bug was fixed in the `read' builtin that caused occasional spurious
2871     failures when using `read -e'.
2872
2873 c.  The version code needed to use the value of the cpp variable
2874     CONF_MACHTYPE rather than MACHTYPE.
2875
2876 d.  A new test was added to exercise the command printing and copying code.
2877
2878 e.  A bug was fixed that caused `time' to be recognized as a reserved word
2879     if it was the first pattern in a `case' statement pattern list.
2880
2881 ------------------------------------------------------------------------------
2882 This document details the changes between this version, bash-2.03-beta2,
2883 and the previous version, bash-2.03-beta1.
2884
2885 1.  Changes to Bash
2886
2887 a.  Slight additions to support/shobj-conf, mostly for the benefit of AIX 4.2.
2888
2889 b.  config.{guess,sub} support added for the NEC SX4.
2890
2891 c.  Changed some of the cross-compiling sections of the configure macros in
2892     aclocal.m4 so that configure won't abort.
2893
2894 d.  Slight changes to how the HTML versions of the bash and readline manuals
2895     are generated.
2896
2897 e.  Fixed conditional command printing to avoid interpreting printf `%'-escapes
2898     in arguments to [[.
2899
2900 f.  Don't include the bash malloc on all variants of the alpha processor.
2901
2902 g.  Changes to configure to make --enable-profiling work on Solaris 2.x.
2903
2904 h.  Fixed a bug that manifested itself when shell functions were called
2905     between calls to `getopts'.
2906
2907 i.  Fixed pattern substitution so that a bare `#'as a pattern causes the
2908     replacement string to be prefixed to the search string, and a bare
2909     `%' causes the replacement string to be appended to the search string.
2910
2911 j.  Fixed a bug in the command execution code that caused child processes
2912     to occasionally have the wrong value for $!.
2913
2914 2.  Changes to Readline
2915
2916 a.  Added code to the history library to catch history substitutions using
2917     `&' without a previous history substitution or search having been
2918     performed.
2919
2920 3.  New Features in Bash
2921
2922 4.  New Features in Readline
2923
2924 a.  New bindable variable: `isearch-terminators'.
2925
2926 b.  New bindable function: `forward-backward-delete-char' (unbound by default).
2927
2928 ------------------------------------------------------------------------------
2929 This document details the changes between this version, bash-2.03-beta1,
2930 and the previous version, bash-2.03-alpha.
2931     
2932 1.  Changes to Bash
2933
2934 a.  A change was made to the help text for `{...}' to make it clear that a
2935     semicolon is required before the closing brace.
2936
2937 b.  A fix was made to the `test' builtin so that syntax errors cause test
2938     to return an exit status > 1.
2939
2940 c.  Globbing is no longer performed on assignment statements that appear as
2941     arguments to `assignment builtins' such as `export'.
2942
2943 d.  System-specific configuration changes were made for:  Rhapsody,
2944     AIX 4.2/gcc, BSD/OS 4.0.
2945
2946 e.  New loadable builtins: ln, unlink.
2947
2948 f.  Some fixes were made to the globbing code to handle extended glob patterns
2949     which immediately follow a `*'.
2950
2951 g.  A fix was made to the command printing code to ensure that redirections
2952     following compound commands have a space separating them from the rest
2953     of the command.
2954
2955 h.  The pathname canonicalization code was changed to produce fewer leading
2956     `//' sequences, since those are interpreted as network file system
2957     pathnames on some systems.
2958
2959 i.  A fix was made so that loops containing `eval' commands in commands passed
2960     to `bash -c' would not exit prematurely.
2961
2962 j.  Some changes were made to the job reaping code when the shell is not
2963     interactive, so the shell will retain exit statuses longer for examination
2964     by `wait'.
2965
2966 k.  A fix was made so that `jobs | command' works again.
2967
2968 l.  The erroneous compound array assignment var=((...)) is now a syntax error.
2969
2970 m.  A change was made to the dynamic loading code in `enable' to support
2971     Tenon's MachTen.
2972
2973 n.  A fix was made to the globbing code so that extended globbing patterns
2974     will correctly match `.' in a bracket expression.
2975
2976 2.  Changes to Readline
2977
2978 a.  A fix was made to the completion code in which a typo caused the wrong
2979     value to be passed to the function that computed the longest common
2980     prefix of the list of matches.
2981
2982 b.  The completion code now checks the value of rl_filename_completion_desired,
2983     which is set by application-supplied completion functions to indicate
2984     that filename completion is being performed, to decide whether or not to
2985     call an application-supplied `ignore completions' function.
2986
2987 3.  New Features in Bash
2988
2989 a.  A change was made to the startup file code so that any shell begun with
2990     the `--login' option, even non-interactive shells, will source the login
2991     shell startup files.
2992
2993 4.  New Features in Readline
2994
2995 a.  A new variable, rl_erase_empty_line, which, if set by an application using
2996     readline, will cause readline to erase, prompt and all, lines on which the
2997     only thing typed was a newline.
2998
2999 ------------------------------------------------------------------------------
3000 This document details the changes between this version, bash-2.03-alpha,
3001 and the previous version, bash-2.02.1-release.
3002
3003 1.  Changes to Bash
3004
3005 a.  System-specific configuration changes were made for: Irix 6.x, Unixware 7.
3006
3007 b.  The texi2dvi and texi2html scripts were updated to the latest versions
3008     from the net.
3009
3010 c.  The configure tests that determine which native type is 32 bits were
3011     changed to not require a compiled program.
3012
3013 d.  Fixed a bug in shell_execve that could cause memory to be freed twice
3014     after a failed exec.
3015
3016 e.  The `printf' test uses `diff -a' if it's available to prevent confusion
3017     due to the non-ascii output.
3018
3019 f.  Shared object configuration is now performed by a shell script,
3020     support/shobj-conf, which generates values to be substituted into
3021     makefiles by configure.
3022
3023 g.  Some changes were made to `ulimit' to avoid the use of RLIM_INVALID as a
3024     return value.
3025
3026 h.  Changes were made to `ulimit' to work around HPUX 9.x's peculiar
3027     handling of RLIMIT_FILESIZE.
3028
3029 i.  Some new loadable builtins were added: id, printenv, sync, whoami, push,
3030     mkdir.  `pushd', `popd', and `dirs' can now be built as regular or
3031     loadable builtins from the same source file.
3032
3033 j.  Changes were made to `printf' to handle NUL bytes in the expanded format
3034     string.
3035
3036 k.  The various `make clean' Makefile targets now descend into lib/sh.
3037
3038 l.  The `type' builtin was changed to use the internal `getopt' so that things
3039     like `type -ap' work as expected.
3040
3041 m.  There is a new configuration option, --with-installed-readline, to link
3042     bash with a locally-installed version of readline.  Only readline version
3043     4.0 and later releases can support this.  Shared and static libraries
3044     are supported.  The installed include files are used.
3045
3046 n.  There is a new autoconf macro used to find which basic type is 64 bits.
3047
3048 o.  Dynamic linking and loadable builtins should now work on SCO 3.2v5*,
3049     AIX 4.2 with gcc, Unixware 7, and many other systems using gcc, where
3050     the `-shared' options works correctly.
3051
3052 p.  A bug was fixed in the bash filename completion code that caused memory to
3053     be freed twice if a directory name containing an unset variable was
3054     completed and the -u option was set.
3055
3056 q.  The prompt expansion code now quotes the `$' in the `\$' expansion so it
3057     is not processed by subsequent parameter expansion.
3058
3059 r.  Fixed a parsing bug that caused a single or double quote after a `$$' to
3060     trigger ANSI C expansion or locale translation.
3061
3062 s.  Fixed a bug in the globbing code that caused quoted filenames containing
3063     no globbing characters to sometimes be incorrectly expanded.
3064
3065 t.  Changes to the default prompt strings if prompt string decoding is not
3066     compiled into the shell.
3067
3068 u.  Added `do', `then', `else', `{', and `(' to the list of keywords that may
3069     precede the `time' reserved word.
3070
3071 v.  The shell may now be cross-built for BeOS as well as cygwin32.
3072
3073 w.  The conditional command execution code now treats `=' the same as `=='
3074     for deciding when to perform pattern matching.
3075
3076 x.  The `-e' option no longer causes the shell to exit if a command exits
3077     with a non-zero status while running the startup files.
3078
3079 y.  The `printf' builtin no longer dumps core if a modifier is supplied in
3080     the format string without a conversion character (e.g. `%h').
3081
3082 z.  Array assignments of the form a=(...) no longer show up in the history
3083     list.
3084
3085 aa. The parser was fixed to obey the POSIX.2 rules for finding the closing
3086     `}' in a ${...} expression.
3087
3088 bb. The history file is now opened with mode 0600 rather than 0666, so bash
3089     no longer relies on the user's umask being set appropriately.
3090
3091 cc. Setting LANG no longer causes LC_ALL to be assigned a value; bash now
3092     relies on proper behavior from the C library.
3093
3094 dd. Minor changes were made to allow quoted variable expansions using
3095     ${...} to be completed correctly if there is no closing `"'.
3096
3097 ee. Changes were made to builtins/Makefile.in so that configuring the shell
3098     with `--enable-profiling' works right and builtins/mkbuiltins is
3099     generated.
3100
3101 2.  Changes to Readline
3102
3103 a.  The version number is now 4.0.
3104
3105 b.  There is no longer any #ifdef SHELL code in the source files.
3106
3107 c.  Some changes were made to the key binding code to fix memory leaks and
3108     better support Win32 systems.
3109
3110 d.  Fixed a silly typo in the paren matching code -- it's microseconds, not
3111     milliseconds.
3112
3113 e.  The readline library should be compilable by C++ compilers.
3114
3115 f.  The readline.h public header file now includes function prototypes for
3116     all readline functions, and some changes were made to fix errors in the
3117     source files uncovered by the use of prototypes.
3118
3119 g.  The maximum numeric argument is now clamped at 1000000.
3120
3121 h.  Fixes to rl_yank_last_arg to make it behave better.
3122
3123 i.  Fixed a bug in the display code that caused core dumps if the prompt
3124     string length exceeded 1024 characters.
3125
3126 j.  The menu completion code was fixed to properly insert a single completion
3127     if there is only one match.
3128
3129 k.  A bug was fixed that caused the display code to improperly display tabs
3130     after newlines.
3131
3132 3.  New Features in Bash
3133
3134 a.  New `shopt' option, `restricted_shell', indicating whether or not the
3135     shell was started in restricted mode, for use in startup files.
3136
3137 b.  Filename generation is now performed on the words between ( and ) in
3138     array assignments (which it probably should have done all along).
3139
3140 c.  OLDPWD is now auto-exported, as POSIX.2 seems to require.
3141
3142 d.  ENV and BASH_ENV are read-only variables in a restricted shell.
3143
3144 4.  New Features in Readline
3145
3146 a.  Many changes to the signal handling:
3147         o Readline now catches SIGQUIT and cleans up the tty before returning;
3148         o A new variable, rl_catch_signals, is available to application writers 
3149           to indicate to readline whether or not it should install its own
3150           signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP,
3151           SIGTTIN, and SIGTTOU;
3152         o A new variable, rl_catch_sigwinch, is available to application
3153           writers to indicate to readline whether or not it should install its
3154           own signal handler for SIGWINCH, which will chain to the calling
3155           applications's SIGWINCH handler, if one is installed;
3156         o There is a new function, rl_free_line_state, for application signal
3157           handlers to call to free up the state associated with the current
3158           line after receiving a signal;
3159         o There is a new function, rl_cleanup_after_signal, to clean up the
3160           display and terminal state after receiving a signal;
3161         o There is a new function, rl_reset_after_signal, to reinitialize the
3162           terminal and display state after an application signal handler
3163           returns and readline continues
3164
3165 b.  There is a new function, rl_resize_terminal, to reset readline's idea of
3166     the screen size after a SIGWINCH.
3167
3168 c.  New public functions: rl_save_prompt and rl_restore_prompt.  These were
3169     previously private functions with a `_' prefix.
3170
3171 d.  New function hook: rl_pre_input_hook, called just before readline starts
3172     reading input, after initialization.
3173
3174 e.  New function hook: rl_display_matches_hook, called when readline would
3175     display the list of completion matches.  The new function
3176     rl_display_match_list is what readline uses internally, and is available
3177     for use by application functions called via this hook.
3178
3179 f.  New bindable function, delete-char-or-list, like tcsh.
3180
3181 ------------------------------------------------------------------------------
3182 This document details the changes between this version, bash-2.02.1-release,
3183 and the previous version, bash-2.02-release.
3184
3185 1.  Changes to Bash
3186
3187 a.  A bug that caused the bash readline support to not compile unless aliases
3188     and csh-style history were configured into the shell was fixed.
3189
3190 b.  Fixed a bug that could cause a core dump when here documents contained
3191     more than 1000 characters.
3192
3193 c.  Fixed a bug that caused a CDPATH entry of "" to not be treated the same
3194     as the current directory when in POSIX mode.
3195
3196 d.  Fixed an alignment problem with the memory returned by the bash malloc,
3197     so returned memory is now 64-bit aligned.
3198
3199 e.  Fixed a bug that caused command substitutions executed within pipelines
3200     to put the terminal in the wrong process group.
3201
3202 f.  Fixes to support/config.sub for: alphas, SCO Open Server and Open Desktop,
3203     Unixware 2, and Unixware 7.
3204
3205 g.  Fixes to the pattern matching code to make it work correctly for eight-bit
3206     characters.
3207
3208 h.  Fixed a problem that occasionally caused the shell to display the wrong
3209     value for the new working directory when changing to a directory found
3210     in $CDPATH when in physical mode.
3211
3212 i.  Fixed a bug that caused core dumps when using conditional commands in
3213     shell functions.
3214
3215 j.  Fixed a bug that caused the printf builtin to loop forever if the format
3216     string did not consume any of the arguments.
3217
3218 k.  Fixed a bug in the parameter expansion code that caused "$@" to be
3219     incorrectly split if $IFS did not contain a space character.
3220
3221 l.  Fixed a bug that could cause a core dump when completing hostnames if
3222     the number of matching hostnames was an exact multiple of 16.
3223
3224 m.  Fixed a bug that caused the shell to fork too early when a command
3225     such as `%2 &' was given.
3226
3227 2.  Changes to Readline
3228
3229 a.  Fixed a problem with redisplay that showed up when the prompt string was
3230     longer than the screen width and the prompt contained invisible characters.
3231
3232 ------------------------------------------------------------------------------
3233 This document details the changes between this version, bash-2.02-release,
3234 and the previous version, bash-2.02-beta2.
3235
3236 1.  Changes to Bash
3237
3238 a.  A bug was fixed that caused the terminal process group to be set
3239     incorrectly when performing command substitution of builtins in a
3240     pipeline.
3241
3242 ------------------------------------------------------------------------------
3243 This document details the changes between this version, bash-2.02-beta2,
3244 and the previous version, bash-2.02-beta1.
3245
3246 1.  Changes to Bash
3247
3248 a.  Attempting to `wait' for stopped jobs now generates a warning message.
3249
3250 b.  Pipelines which exit due to SIGPIPE in non-interactive shells are now
3251     not reported if the shell is compiled -DDONT_REPORT_SIGPIPE.
3252
3253 c.  Some changes were made to builtins/psize.sh and support/bashbug.sh to
3254     attempt to avoid some /tmp file races and surreptitious file
3255     substitutions.
3256
3257 d.  Fixed a bug that caused the shell not to compile if configured with
3258     dparen arithmetic but without aliases.
3259
3260 e.  Fixed a bug that caused the input stream to be switched when assigning
3261     empty arrays with `bash -c'.
3262
3263 f.  A bug was fixed in the readline expansion glue code that caused bash to
3264     dump core when expanding lines with an unclosed single quote.
3265
3266 g.  A fix was made to the `cd' builtin so that using a non-empty directory
3267     from $CDPATH results in an absolute pathname of the new current working
3268     directory to be displayed after the current directory is changed.
3269
3270 h.  Fixed a bug in the variable assignment code that caused the shell to
3271     dump core when referencing an unset variable with `set -u' enabled in
3272     an assignment statement preceding a command.
3273
3274 i.  Fixed a bug in the exit trap code that caused reserved words to not be
3275     recognized under certain circumstances.
3276
3277 j.  Fixed a bug in the parameter pattern substitution code so that quote
3278     removal is performed.
3279
3280 k.  The shell should now configure correctly on Apple Rhapsody systems.
3281
3282 l.  The `kill' builtin now prints a usage message if it is not passed any
3283     arguments.
3284
3285 ------------------------------------------------------------------------------
3286 This document details the changes between this version, bash-2.02-beta1,
3287 and the previous version, bash-2.02-alpha1.
3288
3289 1.  Changes to Bash
3290
3291 a.  A few compilation bugs were fixed in the new extended globbing code.
3292
3293 b.  Executing arithmetic commands now sets the command name to `((' so
3294     error messages look right.
3295
3296 c.  Fixed some build problems with various configuration options.
3297
3298 d.  The `printf' builtin now aborts immediately if an illegal format
3299     character is encountered.
3300
3301 e.  The code that creates here-documents now behaves better if the file it's
3302     trying to create already exists for some reason.
3303
3304 f.  Fixed a problem with the extended globbing code that made patterns like
3305     `x+*' expand incorrectly.
3306
3307 g.  The prompt string expansion code no longer quotes tildes with backslashes.
3308
3309 h.  The bash getcwd() implementation in lib/sh/getcwd.c now behaves better in
3310     the presence of lstat(2) failures.
3311
3312 i.  Fixed a bug with strsub() that caused core dumps when executing `fc -s'.
3313
3314 j.  The mail checking code now ensures that it has a valid default mailpath.
3315
3316 k.  A bug was fixed that caused local variables to be unset inappropriately
3317     when sourcing a script from within another sourced script.
3318
3319 l.  A bug was fixed in the history saving code so that functions are saved
3320     in the history list correctly if `cmdhist' is enabled, but `lithist'
3321     is not.
3322
3323 m.  A bug was fixed that caused printf overflows when displaying error
3324     messages.
3325
3326 n.  It should be easier to build the loadble builtins in examples/loadables,
3327     though some manual editing of the generated Makefile is still required.
3328
3329 o.  The user's primary group is now always ${GROUPS[0]}.
3330
3331 p.  Some updates were made to support/config.guess from the GNU master copy.
3332
3333 q.  Some changes were made to the autoconf support for Solaris 2.6 large
3334     files.
3335
3336 r.  The `command' builtins now does the right thing when confstr(3) cannot
3337     find a value for _CS_PATH.
3338
3339 s.  Extended globbing expressions like `*.!(c)' are not history expanded if
3340     `extglob' is enabled.
3341
3342 t.  Using the `-P' option to `cd' will force the value that is assigned to
3343     PWD to not contain any symbolic links.
3344
3345 2.  Changes to Readline
3346
3347 a.  The code that prints completion listings now behaves better if one or
3348     more of the filenames contains non-printable characters.
3349
3350 b.  The time delay when showing matching parentheses is now 0.5 seconds.
3351
3352 ------------------------------------------------------------------------------
3353 This document details the changes between this version, bash-2.02-alpha1,
3354 and the previous version, bash-2.01.1-release.
3355
3356 1.  Changes to Bash
3357
3358 a.  OS-specific configuration changes for:  BSD/OS 3.x, Minix 2.x,
3359     Solaris 2.6, SINIX SVR4.
3360
3361 b.  Changes were made to the generated `info' files so that `install-info'
3362     works correctly.
3363
3364 c.  PWD is now auto-exported.
3365
3366 d.  A fix was made to the pipeline code to make sure that the shell forks
3367     to execute simple commands consisting solely of assignment statements.
3368
3369 e.  Changes to the test suite for systems with 14-character filenames.
3370
3371 f.  The default sizes of some internal hash tables have been made smaller
3372     to reduce the shell's memory footprint.
3373
3374 g.  The `((...))' arithmetic command is now executed directly instead of
3375     being translated into `let "..."'.
3376
3377 h.  Fixes were made to the expansion code so that "$*", "$@", "${array[@]}",
3378     and "${array[@]}" expand correctly when IFS does not contain a space
3379     character, is unset, or is set to NULL.
3380
3381 i.  The indirect expansion code (${!var}) was changed so that the only
3382     valid values of `var' are variable names, positional parameters, `#',
3383     `@', and `*'.
3384
3385 j.  An arithmetic expression error in a $((...)) expansion now causes a
3386     non-interactive shell running in posix mode to exit.
3387
3388 k.  Compound array assignment now splits the words within the parentheses
3389     on shell metacharacters like the parser would before expansing them
3390     and performing the assignment.  This is for compatibility with ksh-93.
3391
3392 l.  The internal shell backslash-quoting code (used in the output of `set'
3393     and completion) now quotes tildes if they appear at the start of the
3394     string or after a `=' or `:'.
3395
3396 m.  A couple of bugs with `shopt -o' were fixed.
3397
3398 n.  `bash +o' now displays the same output as `set +o' before starting an
3399     interactive shell.
3400
3401 o.  A bug that caused command substitution and the `eval' builtin to
3402     occasionally free memory twice when an error was encountered was fixed.
3403
3404 p.  The filename globbing code no longer requires read permission for a
3405     directory when the filename to be matched does not contain any globbing
3406     characters, as POSIX.2 specifies.
3407
3408 q.  A bug was fixed so that the job containing the last asynchronous
3409     process is not removed from the job table until a `wait' is executed
3410     for that process or another asynchronous process is started.  This
3411     satisfies a POSIX.2 requirement.
3412
3413 r.  A `select' bug was fixed so that a non-numeric user response is treated
3414     the same as a numeric response that is out of range.
3415
3416 s.  The shell no longer parses the value of SHELLOPTS from the environment
3417     if it is restricted, running setuid, or running in `privileged mode'.
3418
3419 t.  Fixes were made to enable large file support on systems such as
3420     Solaris 2.6, where the size of a file may be larger than can be held
3421     in an `int'.
3422
3423 u.  The filename hashing code was fixed to not add `./' to the beginning of
3424     filenames which already begin with `./'.
3425
3426 v.  The configure script was changed so that the GNU termcap library is not
3427     compiled in if `prefer-curses' has been specified.
3428
3429 w.  HISTCONTROL and HISTIGNORE are no longer applied to the second and
3430     subsequent lines of a multi-line command.
3431
3432 x.  A fix was made to `disown' so that it does a better job of catching
3433     out-of-range jobs.
3434
3435 y.  Non-interactive shells no longer report the status of processes terminated
3436     due to SIGINT, even if the standard output is a terminal.
3437
3438 z.  A bug that caused the output of `jobs' to have extra carriage returns
3439     was fixed.
3440
3441 aa. A bug that caused PIPESTATUS to not be set when builtins or shell
3442     functions were executed in the foreground was fixed.
3443
3444 bb. Bash now attempts to detect when it is being run by sshd, and treats
3445     that case identically to being run by rshd.
3446
3447 cc. A bug that caused `set -a' to export SHELLOPTS when one of the shell
3448     options was changed was fixed.
3449
3450 dd. The `kill' builtin now disallows empty or missing process id arguments
3451     instead of treating them as identical to `0', which means the current
3452     process.
3453
3454 ee. `var=value declare -x var' now behaves identically to
3455     `var=value export var'.  Similarly for `var=value declare -r var' and
3456     `var=value readonly var'.
3457
3458 ff. A few memory leaks were fixed.
3459
3460 gg. `alias' and `unalias' now print error messages when passed an argument
3461     that is not an alias for printing or deletion, even when the shell is
3462     not interactive, as POSIX.2 specifies.
3463
3464 hh. `alias' and `alias -p' now return a status of 0 when no aliases are
3465     defined, as POSIX.2 specifes.
3466
3467 ii. `cd -' now prints the pathname of the new working directory if the shell
3468     is interactive.
3469
3470 jj. A fix was made so that the code that binds $PWD now copes with getcwd()
3471     returning NULL.
3472
3473 kk. `unset' now checks whether or not a function name it's trying to unset
3474     is a valid shell identifier only when the shell is running in posix mode.
3475
3476 ll. A change was made to the code that generates filenames for here documents
3477     to make them less prone to name collisions.
3478
3479 mm. The parser was changed so that `time' is recognized as a reserved word
3480     only at the beginning of a pipeline.
3481
3482 nn. The pathname canonicalization code was changed so that `//' is converted
3483     into `/', but all other pathnames beginning with `//' are left alone, as
3484     POSIX.2 specifies.
3485
3486 oo. The `logout' builtin will no longer exit a non-interactive non-login
3487     shell.
3488
3489 2.  Changes to Readline
3490
3491 a.  Fixed a problem in the readline test program rltest.c that caused a core
3492     dump.
3493
3494 b.  The code that handles parser directives in inputrc files now displays
3495     more error messages.
3496
3497 c.  The history expansion code was fixed so that the appearance of the
3498     history comment character at the beginning of a word inhibits history
3499     expansion for that word and the rest of the input line.
3500
3501 3.  New Features in Bash
3502
3503 a.  A new version of malloc, based on the older GNU malloc, that has many
3504     changes, is more page-based, is more conservative with memory usage,
3505     and does not `orphan' large blocks when they are freed.
3506
3507 b.  A new version of gmalloc, based on the old GLIBC malloc, with many
3508     changes and range checking included by default.
3509
3510 c.  A new implementation of fnmatch(3) that includes full POSIX.2 Basic
3511     Regular Expression matching, including character classes, collating
3512     symbols, equivalence classes, and support for case-insensitive pattern
3513     matching.
3514
3515 d.  ksh-88 egrep-style extended pattern matching ([@+*?!](patlist)) has been
3516     implemented, controlled by a new `shopt' option, `extglob'.
3517
3518 e.  There is a new ksh-like `[[' compound command, which implements
3519     extended `test' functionality.
3520
3521 f.  There is a new `printf' builtin, implemented according to the POSIX.2
3522     specification.
3523
3524 g.  There is a new feature for command substitution: $(< filename) now expands
3525     to the contents of `filename', with any trailing newlines removed
3526     (equivalent to $(cat filename)).
3527
3528 h.  There are new tilde prefixes which expand to directories from the
3529     directory stack.
3530
3531 i.  There is a new `**' arithmetic operator to do exponentiation.
3532
3533 j.  There are new configuration options to control how bash is linked:
3534     `--enable-profiling', to allow bash to be profiled with gprof, and
3535     `--enable-static-link', to allow bash to be linked statically.
3536
3537 k.  There is a new configuration option, `--enable-cond-command', which
3538     controls whether or not the `[[' command is included.  It is on by
3539     default.
3540
3541 l.  There is a new configuration option, `--enable-extended-glob', which
3542     controls whether or not the ksh extended globbing feature is included.
3543     It is enabled by default.
3544
3545 m.  There is a new configuration #define in config.h.top that, when enabled,
3546     will cause all login shells to source /etc/profile and one of the user-
3547     specific login shell startup files, whether or not the shell is
3548     interactive.
3549
3550 n.  There is a new invocation option, `--dump-po-strings', to dump
3551     a shell script's translatable strings ($"...") in GNU `po' format.
3552
3553 o.  There is a new `shopt' option, `nocaseglob', to enable case-insensitive
3554     pattern matching when globbing filenames and using the `case' construct.
3555
3556 p.  There is a new `shopt' option, `huponexit', which, when enabled, causes
3557     the shell to send SIGHUP to all jobs when an interactive login shell
3558     exits.
3559
3560 q.  `bind' has a new `-u' option, which takes a readline function name as an
3561     argument and unbinds all key sequences bound to that function in a
3562     specified keymap.
3563
3564 r.  `disown' now has `-a' and `-r' options, to limit operation to all jobs
3565     and running jobs, respectively.
3566
3567 s.  The `shopt' `-p' option now causes output to be displayed in a reusable
3568     format.
3569
3570 t.  `test' has a new `-N' option, which returns true if the filename argument
3571     has been modified since it was last accessed.
3572
3573 u.  `umask' now has a `-p' option to print output in a reusable format.
3574
3575 v.  A new escape sequence, `\xNNN', has been added to the `echo -e' and $'...'
3576     translation code.  It expands to the character whose ascii code is NNN
3577     in hexadecimal.
3578
3579 w.  The prompt string expansion code has a new `\r' escape sequence.
3580
3581 x.  The shell may now be cross-compiled for the CYGWIN32 environment on
3582     a Unix machine.
3583
3584 4.  New Features in Readline
3585
3586 a.  There is now an option for `iterative' yank-last-arg handline, so a user
3587     can keep entering `M-.', yanking the last argument of successive history
3588     lines.
3589
3590 b.  New variable, `print-completions-horizontally', which causes completion
3591     matches to be displayed across the screen (like `ls -x') rather than up
3592     and down the screen (like `ls').
3593
3594 c.  New variable, `completion-ignore-case', which causes filename completion
3595     and matching to be performed case-insensitively.
3596
3597 d.  There is a new bindable command, `magic-space', which causes history
3598     expansion to be performed on the current readline buffer and a space to
3599     be inserted into the result.
3600
3601 e.  There is a new bindable command, `menu-complete', which enables tcsh-like
3602     menu completion (successive executions of menu-complete insert a single
3603     completion match, cycling through the list of possible completions).
3604
3605 f.  There is a new bindable command, `paste-from-clipboard', for use on Win32
3606     systems, to insert the text from the Win32 clipboard into the editing
3607     buffer.
3608
3609 g.  The key sequence translation code now understands printf-style backslash
3610     escape sequences, including \NNN octal escapes.  These escape sequences
3611     may be used in key sequence definitions or macro values.
3612
3613 h.  An `$include' inputrc file parser directive has been added.
3614
3615 ------------------------------------------------------------------------------
3616 This document details the changes between this version, bash-2.01.1-release,
3617 and the previous version, bash-2.01-release.
3618
3619 1.  Changes to Bash
3620
3621 a.  The select command was fixed to check the validity of the user's
3622     input more strenuously.
3623
3624 b.  A bug was fixed that prevented `time' from timing commands correctly
3625     when supplied as an argument to `bash -c'.
3626
3627 c.  A fix was made to the mail checking code to keep from adding the same
3628     mail file to the list of files to check multiple times when parsing
3629     $MAILPATH.
3630
3631 d.  Fixed an off-by-one error in the tilde expansion library.
3632
3633 e.  When using the compound array assignment syntax, the old value of
3634     the array is cleared before assigning the new value.
3635
3636 f.  Fixed a bug that could cause a core dump when a trap handler was reset
3637     to the default in the trap command associated with that signal.
3638
3639 g.  Fixed a bug in the locale code that occurred when assigning a value
3640     to LC_ALL.
3641
3642 h.  A change was made to the parser so that words of the form xxx=(...)
3643     are not considered compound assignment statements unless there are
3644     characters before the `='.
3645
3646 i.  A fix was made to the command tracing code to correctly quote each
3647     word of output.
3648
3649 j.  Some changes were made to the bash-specific autoconf tests to make them
3650     more portable.
3651
3652 k.  Completion of words with globbing characters now correctly quotes the
3653     result.
3654
3655 l.  The directory /var/spool/mail is now preferred to /usr/spool/mail when
3656     configure is deciding on the default mail directory.
3657
3658 m.  The brace completion code was fixed to not quote the `{' and `}'.
3659
3660 n.  Some fixes were made to make $RANDOM more random in subshells.
3661
3662 o.  System-specific changes were made to configure for: SVR4.2
3663
3664 p.  Changes were made so that completion of words containing globbing chars
3665     substitutes the result only if a single filename was matched.
3666
3667 q.  The window size is now recomputed after a job is stopped with SIGTSTP if
3668     the user has set `checkwinsize' with `shopt'.
3669
3670 r.  When doing substring expansion, out-of-range substring specifiers now
3671     cause nothing to be substituted rather than an expansion error.
3672
3673 s.  A fix was made so that you can no longer trap `SIGEXIT' or `SIGDEBUG' --
3674     only `EXIT' and `DEBUG' are accepted.
3675
3676 t.  The display of trapped signals now uses the signal number if signals
3677     for which bash does not know the name are trapped.
3678
3679 u.  A fix was made so that `bash -r' does not turn on restricted mode until
3680     after the startup files are executed.
3681
3682 v.  A bug was fixed that occasionally caused a core dump when a variable
3683     found in the temporary environment of export/declare/readonly had a
3684     null value.
3685
3686 w.  A bug that occasionally caused unallocated memory to be passed to free()
3687     when doing arithmetic substitution was fixed.
3688
3689 x.  A bug that caused a buffer overrun when expanding a prompt string
3690     containing `\w' and ${#PWD} exceeded PATH_MAX was fixed.
3691
3692 y.  A problem with the completion code that occasionally caused it to
3693     refer to a character before the beginning of the readline line buffer
3694     was fixed.
3695
3696 z.  A bug was fixed so that the `read' builtin restarts reads when
3697     interrupted by signals other than SIGINT.
3698
3699 aa. Fixed a bug that caused a command to be freed twice when there was
3700     an evaluation error in the `eval' command.
3701
3702 2.  Changes to Readline
3703
3704 a.  Added a missing `extern' to a declaration in readline.h that kept
3705     readline from compiling cleanly on some systems.
3706
3707 b.  The history file is now opened with mode 0600 when it is written for
3708     better security.
3709
3710 c.  Changes were made to the SIGWINCH handling code so that prompt redisplay
3711     is done better.
3712
3713 d.  ^G now interrupts incremental searches correctly.
3714
3715 e.  A bug that caused a core dump when the set of characters to be quoted
3716     when completing words was empty was fixed.
3717
3718 ------------------------------------------------------------------------------
3719 This document details the changes between this version, bash-2.01-release,
3720 and the previous version, bash-2.01-beta2.
3721
3722 1.  Changes to Bash
3723
3724 a.  The `distclean' target should remove the `printenv' executable if it
3725     has been created.
3726
3727 b.  The test suite was changed slightly to ensure that the error messages
3728     are printed in English.
3729
3730 c.  A bug that caused the shell to dump core when a filename containing a
3731     `/' was passed to `hash' was fixed.
3732
3733 d.  Pathname canonicalization now leaves a leading `//' intact, as POSIX.1
3734     requires.
3735
3736 e.  A memory leak when completing commands was fixed.
3737
3738 f.  A memory leak that occurred when checking the hash table for commands
3739     with relative paths was fixed.
3740
3741 ------------------------------------------------------------------------------
3742 This document details the changes between this version, bash-2.01-beta2,
3743 and the previous version, bash-2.01-beta1.
3744
3745 1.  Changes to Bash
3746
3747 a.  The `ulimit' builtin translates RLIM_INFINITY to the hard limit only if
3748     the current (soft) limit is less than or equal to the hard limit.
3749
3750 b.  Fixed a bug that caused the bash emulation of strcasecmp to produce
3751     incorrect results.
3752
3753 c.  A bug that caused memory to be freed twice when a trap handler resets
3754     the trap more than once was fixed.
3755
3756 d.  A bug that caused machines where sizeof (pointer) > sizeof (int) to
3757     fail (and possibly dump core) when trying to unwind-protect a null
3758     pointer was fixed.
3759
3760 e.  The startup files should not be run with job control enabled.  This fix
3761     allows SIGINT to once again interrupt startup file execution.
3762
3763 f.  Bash should not change the SIGPROF handler if it is set to something
3764     other than SIG_DFL.
3765
3766 g.  The completion code that provides bash-specific completions for readline
3767     now quotes characters that the readline code would treat as word break
3768     characters if they appear in a file name.
3769
3770 h.  The completion code now correctly quotes filenames containing a `!',
3771     even if the user attempted to use double quotes when attempting
3772     completion.
3773
3774 i.  A bug that caused the shell to dump core when `disown' was called without
3775     arguments and there was no current job was fixed.
3776
3777 j.  A construct like $((foo);bar) is now processed as a command substitution
3778     rather than as a bad arithmetic substitution.
3779
3780 k.  A couple of bugs that caused `fc' to not obey the `cmdhist' and `lithist'
3781     shell options when editing and re-executing a series of commands were
3782     fixed.
3783
3784 l.  A fix was made to the grammar -- the list of commands between `do' and
3785     `done' in the body of a `for' command should be treated the same as a
3786     while loop.
3787
3788 2.  Changes to Readline
3789
3790 a.  A couple of bugs that caused the history search functions to attempt to
3791     free a NULL pointer were fixed.
3792
3793 b.  If the C library provides setlocale(3), readline does not need to look
3794     at various environment variables to decide whether or not to go into
3795     eight-bit mode automatically -- just check whether the current locale
3796     is not `C' or `POSIX'.
3797
3798 c.  If the filename completion function finds that a directory was not closed
3799     by a previous (interrupted) completion, it closes the directory with
3800     closedir().
3801
3802 3.  New Features in Bash
3803
3804 a.  New bindable readline commands:  history-and-alias-expand-line and
3805     alias-expand-line.  The code was always in there, there was just no
3806     way to execute it.
3807
3808 ------------------------------------------------------------------------------
3809 This document details the changes between this version, bash-2.01-beta1,
3810 and the previous version, bash-2.01-alpha1.
3811
3812 1.  Changes to Bash
3813
3814 a.  Fixed a problem that could cause file descriptors used for process
3815     substitution to conflict with those used explicitly in redirections.
3816
3817 b.  Made it easier to regenerate configure if the user changes configure.in.
3818
3819 c.  ${GROUPS[0]} should always be the primary group, even on systems without
3820     multiple groups.
3821
3822 d.  Spelling correction is no longer enabled by default.
3823
3824 e.  Fixes to quoting problems in `bashbug'.
3825
3826 f.  OS-specific configuration changes were made for: Irix 6.
3827
3828 g.  OS-specific code changes were made for: QNX.
3829
3830 h.  A more meaningful message is now printed when the file in /tmp for a
3831     here document cannot be created.
3832
3833 i.  Many changes to the shell's variable initialization code to speed
3834     non-interactive startup.
3835
3836 j.  Changes to the non-job-control code so that it does not try to open
3837     /dev/tty.
3838
3839 k.  The output of `set' and `export' is once again sorted, as POSIX wants.
3840
3841 l.  Fixed a problem caused by a recursive call reparsing the value of
3842     $SHELLOPTS.
3843
3844 m.  The tilde code no longer calls getenv() when it's compiled as part of
3845     the shell, which should eliminate problems on systems that cannot
3846     redefine getenv(), like the NeXT OS.
3847
3848 n.  Fixed a problem that caused `bash -o' or `bash +o' to not list all
3849     the shell options.
3850
3851 o.  Fixed `ulimit' to convert RLIM_INFINITY to the appropriate hard limit
3852     only if the hard limit is greater than the current (soft) limit.
3853
3854 p.  Fixed a problem that arose when building bash in a different directory
3855     than the source and y.tab.[ch] were remade with something other than
3856     bison.  This came up most often on NetBSD.
3857
3858 q.  Fixed a problem with completion -- it thought that `pwd`/[TAB] indicated
3859     an unfinished command completion (`/), which generated errors.
3860
3861 r.  The bash special tilde expansions (~-, ~+) are now attempted before
3862     calling the standard tilde expansion code, which should eliminate the
3863     problems people have been seeing with this on Solaris 2.5.1.
3864
3865 s.  Added support for <stdarg.h> to places where it was missing.
3866
3867 t.  Changed the code that reads the output of a command substitution to not
3868     go through stdio.  This reduces the memory requirements and is faster.
3869
3870 u.  A number of changes to speed up export environment creation were made.
3871
3872 v.  A number of memory leaks were fixed as the result of running the test
3873     scripts through Purify.
3874
3875 w.  Fixed a bug that caused subshells forked to interpret executable
3876     scripts without a leading `#!' to not reinitialize the values of
3877     the shell options.
3878
3879 2.  Changes to Readline
3880
3881 a.  History library has less `#ifdef SHELL' code -- abstracted stuff out
3882     into application-specific function hooks.
3883
3884 b.  Readline no longer calls getenv() if it's compiled as part of the shell,
3885     which should eliminate problems on systems that cannot redefine getenv(),
3886     like the NeXT OS.
3887
3888 c.  Fixed translation of ESC when `untranslating' macro values.
3889
3890 d.  The region kill operation now fixes the mark if it ends up beyond the
3891     boundaries of the line after the region is deleted.
3892
3893 3.  New Features in Bash
3894
3895 a.  New argument for `configure':  `--with-curses'.  This can be used to
3896     override the selection of the termcap library on systems where it is
3897     deficient.
3898
3899 ------------------------------------------------------------------------------
3900 This document details the changes between this version, bash-2.01-alpha1,
3901 and the previous version, bash-2.0-release.
3902
3903 1.  Changes to Bash
3904
3905 a.  System-specific configuration changes for: FreeBSD, SunOS4, Irix,
3906     MachTen, QNX 4.2, Harris Night Hawk, SunOS5.
3907
3908 b.  System-specific code changes were made for: Linux, 4.4 BSD, QNX 4.2,
3909     HP-UX, AIX 4.2.
3910
3911 c.  A bug that caused the exec builtin to fail because the full pathname of
3912     the command could not be found was fixed.
3913
3914 d.  The code that performs output redirections is now more resistant to
3915     race conditions and possible security exploits.
3916
3917 e.  A bug that caused the shell to dump core when performing pattern
3918     substitutions on variable values was fixed.
3919
3920 f.  More hosts are now recognized by the auto-configuration mechanism
3921     (OpenBSD, QNX, others).
3922
3923 g.  Assignments to read-only variables that attempt to convert them to
3924     arrays are now errors.
3925
3926 h.  A bug that caused shell scripts using array assignments in POSIX mode
3927     to exit after the assignment was performed was fixed.
3928
3929 i.  The substring expansion code is now more careful about running off the
3930     ends of the expanded variable value.
3931
3932 j.  A bug that caused completion to fail if a backquoted command substitution
3933     appeared anywhere on the line was fixed.
3934
3935 k.  The `source' builtin no longer turns off history if it has been enabled
3936     in a non-interactive shell.
3937
3938 l.  A bug that caused the shell to crash when `disown' was given a pid
3939     instead of a job number was fixed.
3940
3941 m.  The `cd' spelling correction code will not try to change to `.' if no
3942     directory entries match a single-character argument.
3943
3944 n.  A bad variable name supplied to `declare', `export', or `readonly' no
3945     longer causes a non-interactive shell in POSIX mode to exit.
3946
3947 o.  Some fixes were made to the test suite to handle peculiarities of
3948     various Unix versions.
3949
3950 p.  The bash completion code now quotes characters that readline would
3951     treat as word breaks for completion but are not shell metacharacters.
3952
3953 q.  Bad options supplied at invocation now cause a usage message to be
3954     displayed.
3955
3956 r.  Fixes were made to the code that handles DEBUG traps so that the trap
3957     string is not freed inappropriately.
3958
3959 s.  Some changes were made to the bash debugger in examples/bashdb -- it
3960     should be closer to working now.
3961
3962 t.  A problem that caused the default filename used for mail checking to be
3963     wrong was fixed.
3964
3965 u.  A fix was made to the `echo' builtin so that NUL characters printed with
3966     `echo -e' do not cause the output to be truncated.
3967
3968 v.  A fix was made to the job control code so that the shell behaves better
3969     when monitor mode is enabled in a non-interactive shell.
3970
3971 w.  Bash no longer catches all of the terminating signals in a non-
3972     interactive shell until a trap is set on EXIT, which should result in
3973     quicker startup.
3974
3975 x.  A fix was made to the command timing code so that `time' can be used in
3976     a loop.
3977
3978 y.  A fix was made to the parser so that `((cmd); cmd2)' is now parsed as
3979     a nested subshell rather than strictly as an (erroneous) arithmetic
3980     command.
3981
3982 z.  A fix was made to the globbing code so that it correctly matches quoted
3983     filenames beginning with a `.'.
3984
3985 aa. A bug in `fc' that caused some multi-line commands to not be stored as
3986     one command in the history when they were re-executed after editing
3987     (with `fc -e') was fixed.
3988
3989 bb. The `ulimit' builtin now attempts to catch some classes of integer
3990     overflows.
3991
3992 cc. The command-oriented-history code no longer attempts to add `;'
3993     inappropriately when a newline appears while reading a $(...) command
3994     substitution.
3995
3996 dd. A bug that caused the shell to dump core when `help --' was executed
3997     was fixed.
3998
3999 ee. A bug that caused the shell to crash when an unset variable appeared
4000     in the body of a here document after `set -u' had been executed was
4001     fixed.
4002
4003 ff. Implicit input redirections from /dev/null for asynchronous commands
4004     are now handled better.
4005
4006 gg. A bug that caused the shell to fail to compile when configured with
4007     `--disable-readline' was fixed.
4008
4009 hh. The globbing code should now be interruptible.
4010
4011 ii. Bash now notices when the `kill' builtin is used to send SIGCONT to a
4012     stopped job and adjusts the data structures accordingly, as if `bg' had
4013     been executed instead.
4014
4015 jj. A bug that caused the shell to crash when mixing calls to `getopts'
4016     and `shift' on the same set of positional parameters was fixed.
4017
4018 kk. The command printing code now preserves the `-p' flag to `time'.
4019
4020 ll. The command printing code now handles here documents better when there
4021     are other redirections associated with the command.
4022
4023 mm. The special glibc environment variable (NNN_GNU_nonoption_argv_flags_)
4024     is no longer placed into the environment of executed commands -- users
4025     of glibc had too many problems with it.
4026
4027 nn. Reorganized the code that generates signames.h.  The signal_names list
4028     is now more complete but may be slightly different (SIGABRT is favored
4029     over SIGIOT, for example).  The preferred signal names are those
4030     listed in the POSIX.2 standard.
4031
4032 oo. `bashbug' now uses a filename shorter than 14 characters for its
4033     temporary file, and asks for confirmation before sending the bug
4034     report.
4035
4036 pp. A bug that caused TAB completion in vi editing mode to not be turned
4037     off when `set -o posix' was executed or back on when `set +o posix'
4038     was executed was fixed.
4039
4040 qq. A bug in the brace expansion code that caused brace expansions appearing
4041     in new-style $(...) command substitutions to be inappropriately expanded
4042     was fixed.
4043
4044 rr. A bug in the readline hook shell-expand-line that could cause memory to
4045     be inappropriately freed was fixed.
4046
4047 ss. A bug that caused some arithmetic expressions containing `&&' and `||'
4048     to be parsed with the wrong precedence has been fixed.
4049
4050 tt. References to unbound variables after `set -u' has been executed now
4051     cause the shell to exit immediately, as they should.
4052
4053 uu. A bug that caused the shell to exit inappropriately when `set -e' had
4054     been executed and a command's return status was being inverted with the
4055     `!' reserved word was fixed.
4056
4057 vv. A bug that could occasionally cause the shell to crash with a
4058     divide-by-zero error when timing a command was fixed.
4059
4060 ww. A bug that caused parameter pattern substitution to leave stray
4061     backslashes in the replacement string when the expression is in
4062     double quotes was fixed.
4063
4064 xx. The `break' and `continue' builtins now break out of all loops when an
4065     invalid count argument is supplied.
4066
4067 yy. Fixed a bug that caused PATH to be set to the empty string if
4068     `command -p' is executed with PATH unset.
4069
4070 zz. Fixed `kill -l signum' to print the signal name without the `SIG' prefix,
4071     as POSIX specifies.
4072
4073 aaa. Fixed a bug that caused the shell to crash while setting $SHELLOPTS
4074      if there were no shell options set.
4075
4076 bbb. Fixed `export -p' and `readonly -p' so that when the shell is in POSIX
4077      mode, their output is as POSIX.2 specifies.
4078
4079 ccc. Fixed a bug in `readonly' so that `readonly -a avar=(...)' actually
4080      creates an array variable.
4081
4082 ddd. Fixed a bug that prevented `time' from correctly timing background
4083      pipelines.
4084
4085 2.  Changes to Readline
4086
4087 a.  A bug that caused an extra newline to be printed when the cursor was on
4088     an otherwise empty line was fixed.
4089
4090 b.  An instance of memory being used after it was freed was corrected.
4091
4092 c.  The redisplay code now works when the prompt is longer than the screen
4093     width.
4094
4095 d.  `dump-macros' is now a bindable name, as it should have been all along.
4096
4097 e.  Non-printable characters are now expanded when displaying macros and
4098     their values.
4099
4100 f.  The `dump-variables' and `dump-macros' commands now output a leading
4101     newline if they're called as the result of a key sequence, rather
4102     than directly by an application.
4103
4104 3.  New Features in Bash
4105
4106 a.  There is a new builtin array variable: GROUPS, the set of groups to which
4107     the user belongs.  This is used by the test suite.
4108
4109 4.  New Features in Readline
4110
4111 a.  If a key sequence bound to `universal-argument' is read while reading a
4112     numeric argument started with `universal-argument', it terminates the
4113     argument but is otherwise ignored.  This provides a way to insert multiple
4114     instances of a digit string, and is how GNU emacs does it.
4115
4116 ------------------------------------------------------------------------------
4117 This document details the changes between this version, bash-2.0-release,
4118 and the previous version, bash-2.0-beta3.
4119
4120 1.  Changes to Bash
4121
4122 a.  Fix to the `getopts' builtin so that it does the right thing when a
4123     required option argument is not present.
4124
4125 b.  The completion code now updates the common prefix of matched names
4126     after FIGNORE processing is done, since any names that were removed
4127     may have changed the common prefix.
4128
4129 c.  Fixed a bug that made messages in MAILPATH entries not work correctly.
4130
4131 d.  Fixed a serious documentation error in the description of the new
4132     ${parameter:offset[:length]} expansion.
4133
4134 e.  Fixes to make parameter substring expansion ({$param:offset[:length]})
4135     work when within double quotes.
4136
4137 f.  Fixes to make ^A (CTLESC) survive an unquoted expansion of positional
4138     parameters.
4139
4140 g.  Corrected a misspelling of `unlimited' in the output of `ulimit'.
4141
4142 h.  Fixed a bug that caused executable scripts without a leading `#!' to
4143     occasionally pick up the wrong set of positional parameters.
4144
4145 i.  Linux systems now have a working `ulimit -v', using RLIMIT_AS.
4146
4147 j.  Updated config.guess so that many more machine types are recognized.
4148
4149 k.  Fixed a bug with backslash-quoted slashes in the ${param/pat[/sub]}
4150     expansion.
4151
4152 l.  If the shell is named `-su', and `-c command' is supplied, read and
4153     execute the login shell startup files even though the shell is not
4154     interactive.  This is to support the `-' option to `su'.
4155
4156 m.  Fixed a bug that caused core dumps when the DEBUG trap was ignored
4157     with `trap "" DEBUG' and a shell function was subsequently executed.
4158
4159 n.  Fixed a bug that caused core dumps in the read builtin when IFS was
4160     set to the null string and the input had leading whitespace.
4161
4162 2.  Changes to Readline
4163
4164 a.  Fixed a bug that caused a numeric argument of 1024 to be ignored when
4165     inserting text.
4166
4167 b.  Fixed the display code so that the numeric argument is displayed as it's
4168     being entered.
4169
4170 c.  Fixed the numeric argument reading code so that `M-- command' is
4171     equivalent to `M--1 command', as the prompt implies.
4172
4173 3.  New Features in Bash
4174
4175 a.  `ulimit' now sets both hard and soft limits and reports the soft limit
4176     by default (when neither -H nor -S is specified).  This is compatible
4177     with versions of sh and ksh that implement `ulimit'.
4178
4179 b.  Integer constants have been extended to base 64.
4180
4181 4.  New Features in Readline
4182
4183 a.  The `home' and `end' keys are now bound to beginning-of-line and
4184     end-of-line, respectively, if the corresponding termcap capabilities
4185     are present.
4186
4187 ------------------------------------------------------------------------------
4188 This document details the changes between this version, bash-2.0-beta3,
4189 and the previous version, bash-2.0-beta2.
4190
4191 1.  Changes to Bash
4192
4193 a.  System-specific changes for: AIX 4.2, SCO 3.2v[45], HP-UX.
4194
4195 b.  When in POSIX mode, variable assignments preceding a special builtin
4196     persist in the shell environment after the builtin completes.
4197
4198 c.  Changed all calls to getwd() to getcwd().  Improved check for systems
4199     where the libc getcwd() calls popen(), since that breaks on some
4200     systems when job control is being used.
4201
4202 d.  Fixed a bug that caused seg faults when executing scripts with the
4203     execute bit set but without a leading `#!'.
4204
4205 e.  The environment passed to executed commands is never sorted.
4206
4207 f.  A bug was fixed in the code that expands ${name[@]} to the number of
4208     elements in an array variable.
4209
4210 g.  A bug was fixed in the array compound assignment code ( A=( ... ) ).
4211
4212 h.  Window size changes now correctly propagate down to readline if
4213     the shopt `checkwinsize' option is enabled.
4214
4215 i.  A fix was made in the code that expands to the length of a variable
4216     value (${#var}).
4217
4218 j.  A fix was made to the command builtin so that it did not turn on the
4219     `no fork' flag inappropriately.
4220
4221 k.  A fix was made to make `set -n' work more reliably.
4222
4223 l.  A fix was made to the job control initialization code so that the
4224     terminal process group is set to the shell's process group if the
4225     shell changes its own process group.
4226
4227 2.  Changes to Readline
4228
4229 a.  System-specific changes for: SCO 3.2v[45].
4230
4231 b.  The behavior of the vi-mode `.' when redoing an `i' command was changed
4232     to insert the text previously inserted by the `i' command rather than
4233     simply entering insert mode.
4234
4235 3.  New features in Bash
4236
4237 a.  There is a new version of the autoload function package, in
4238     examples/functions/autoload.v2, that uses arrays and provides more
4239     functionality.
4240
4241 b.  Support for LC_COLLATE and locale-specific sorting of the results of
4242     pathname expansion if strcoll() is available.
4243
4244 4.  New Features in Readline
4245
4246 a.  Support for locale-specific sorting of completion possibilities if
4247     strcoll() is available.
4248
4249 ------------------------------------------------------------------------------
4250 This document details the changes between this version, bash-2.0-beta2,
4251 and the previous version, bash-2.0-beta1.
4252
4253 1.  Changes to Bash
4254
4255 a.  `pushd -' is once again equivalent to `pushd $OLDPWD'.
4256
4257 b.  OS-specific changes for: SCO 3.2v[45].
4258
4259 c.  A change was made to the fix for the recently-reported security hole
4260     when reading characters with octal value 255 to make it work better on
4261     systems with restartable system calls when not using readline.
4262
4263 d.  Some changes were made to the test suite so that it works if you
4264     configure bash with --enable-usg-echo-default.
4265
4266 e.  A fix was made to the parsing of conditional arithmetic expressions.
4267
4268 f.  Illegal arithmetic bases now cause an arithmetic evaluation error rather
4269     than being silently reset.
4270
4271 g.  Multiple arithmetic bases now cause an arithmetic evaluation error
4272     instead of being ignored.
4273
4274 h.  A fix was made to the evaluation of ${param?word} to conform to POSIX.2.
4275
4276 i.  A bug that sometimes caused array indices to be evaluated twice (which
4277     would cause errors when they contained assignment statements) was fixed.
4278
4279 j.  `ulimit' was rewritten to avoid problems with getrlimit(2) returning
4280     unsigned values and to simplify the code.
4281
4282 k.  A bug in the command-oriented-history code that caused it to sometimes
4283     put semicolons after right parens inappropriately was fixed.
4284
4285 l.  The values inserted into the prompt by the \w and \W escape sequences
4286     are now quoted to prevent further expansion.
4287
4288 m.  An interactive shell invoked as `sh' now reads and executes commands
4289     from the file named by $ENV when it starts up.  If it's a login shell,
4290     it does this after reading /etc/profile and ~/.profile.
4291
4292 n.  The file named by $ENV is never read by non-interactive shells.
4293
4294 2.  Changes to Readline
4295
4296 a.  A few changes were made to hide some macros and functions that should not
4297     be public.
4298
4299 b.  An off-by-one error that caused seg faults in the history expansion code
4300     was fixed.
4301
4302 3.  New Features in Bash
4303
4304 a.  The ksh-style ((...)) arithmetic command was implemented.  It is exactly
4305     identical to let "...".  This is controlled by a new option to configure,
4306     `--enable-dparen-arithmetic', which is on by default.
4307
4308 b.  There is a new #define available in config.h.top: SYS_BASH_LOGOUT.  If
4309     defined to a filename, bash reads and executes commands from that file
4310     when a login shell exits.  It's commented out by default.
4311
4312 c.  `ulimit' has a `-l' option that reports the maximum amount of data that
4313     may be locked into memory on 4.4BSD-based systems.
4314
4315 ------------------------------------------------------------------------------
4316 This document details the changes between this version, bash-2.0-beta1,
4317 and the previous version, bash-2.0-alpha4.
4318
4319 1.  Changes to Bash
4320
4321 a.  A bug that sometimes caused traps to be ignored on signals the
4322     shell treats specially was fixed.
4323
4324 b.  The internationalization code was changed to track the values of
4325     LC_* variables and call setlocale() as appropriate.  The TEXTDOMAIN
4326     and TEXTDOMAINDIR variables are also tracked; changes cause calls
4327     to textdomain() and bindtextdomain(), if available.
4328
4329 c.  A bug was fixed that sometimes caused double-quoted strings to be
4330     parsed incorrectly.
4331
4332 d.  Changes were made so that the siglist code compiles correctly on
4333     Solaris 2.5.
4334
4335 e.  Added `:' to the set of characters that cause word breaks for the
4336     completion code so that pathnames in assignments to $PATH can be
4337     completed.
4338
4339 f.  The `select' command was fixed to print $PS3 to stderr.
4340
4341 g.  Fixed an error in the manual page section describing the effect that
4342     setting and unsetting GLOBIGNORE has on the setting of the `dotglob'
4343     option.
4344
4345 h.  The time conversion code now uses CLK_TCK rather than CLOCKS_PER_SEC
4346     on systems without gettimeofday() and resources.
4347
4348 i.  The getopt static variables are now initialized each time a subshell
4349     is started, so subshells using `getopts' work right.
4350
4351 j.  A sign-extension bug that caused a possible security hole was fixed.
4352
4353 k.  The parser now reads characters between backquotes within a double-
4354     quoted string as a single word, so double quotes in the backquoted
4355     string don't terminate the enclosing double-quoted string.
4356
4357 l.  A bug that caused `^O' to work incorrectly when typed as the first
4358     thing to an interactive shell was fixed.
4359
4360 m.  A rarely-exercised off-by-one error in the code that quotes variable
4361     values was fixed.
4362
4363 n.  Some memory and file descriptor leaks encountered when running a
4364     shell script that is executable but does not have a leading `#!'
4365     were plugged.
4366
4367 2.  Changes to Readline
4368
4369 a.  A bug that sometimes caused incorrect results when trying to read
4370     typeahead on systems without FIONREAD was fixed.
4371
4372 3.  New Features in Bash
4373
4374 a.  The command timing code now uses the value of the TIMEFORMAT variable
4375     to format and display timing statistics.
4376
4377 b.  The `time' reserved word now accepts a `-p' option to force the
4378     POSIX.2 output format.
4379
4380 c.  There are a couple of new and updated scripts to convert csh startup
4381     files to bash format.
4382
4383 d.  There is a new builtin array variable: BASH_VERSINFO.  The various
4384     members hold the parts of the version information in BASH_VERSION,
4385     plus the value of MACHTYPE.
4386
4387 4.  New Features in Readline
4388
4389 a.  Setting LANG to `en_US.ISO8859-1' now causes readline to enter
4390     eight-bit mode.
4391
4392 ------------------------------------------------------------------------------
4393 This document details the changes between this version, bash-2.0-alpha4,
4394 and the previous version, bash-2.0-alpha3.
4395
4396 1.  Changes to Bash
4397
4398 a.  There is better detection of rsh connections on Solaris 2.
4399
4400 b.  Assignments to read-only variables preceding a command name are now
4401     variable assignment errors.  Variable assignment errors cause
4402     non-interactive shells running in posix mode to exit.
4403
4404 c.  The word tokenizer was rewritten to handle nested quotes and pairs
4405     ('', "", ``, ${...}, $(...), $[...], $'...', $"...", <(...), >(...))
4406     correctly.  Some of the parameter expansion code was updated as a
4407     consequence.
4408
4409 d.  A fix was made to `test' when given three arguments so that a binary
4410     operator is checked for first, before checking that the first argument
4411     is `!'.
4412
4413 e.  2''>/dev/null is no longer equivalent to 2>/dev/null.
4414
4415 f.  Parser error messages were regularized, and in most cases the name of
4416     the shell script being read by a non-interactive shell is not printed
4417     twice.
4418
4419 g.  A fix was made to the completion code so that it no longer removes the
4420     text the user typed in some cases.
4421
4422 h.  The special glibc `getopt' environment variable is no longer put into
4423     the environment on machines with small values of ARG_MAX.
4424
4425 i.  The expansion of ${...} now follows the POSIX.2 rules for finding the
4426     closing `}'.
4427
4428 j.  The shell no longer displays spurious status messages for background
4429     jobs in shell scripts that complete successfully when the script is
4430     run from a terminal.
4431
4432 k.  `shopt -o' now correctly updates $SHELLOPTS.
4433
4434 l.  A bug that caused the $PATH searching code to return a non-executable
4435     file even when an executable file with the same name appeared later in
4436     $PATH was fixed.
4437
4438 m.  The shell now does tilde expansions on unquoted `:~' in assignment
4439     statements when not in posix mode.
4440
4441 n.  Variable assignment errors when a command consists only of assignments
4442     now cause non-interactive shells to exit when in posix mode.
4443
4444 o.  If the variable in a `for' or `select' command is read-only, or not a
4445     legal shell identifier, a variable assignment error occurs.
4446
4447 p.  `test' now handles `-a' and `-o' as binary operators when three arguments
4448     are supplied, and correctly parses `( word )' as equivalent to `word'.
4449
4450 q.  `test' was fixed so that file names of the form /dev/fd/NN mean the same
4451     thing on all systems, even Linux.
4452
4453 r.  Fixed a bug in the globbing code that caused patterns with multiple
4454     consecutive `*'s to not be matched correctly.
4455
4456 s.  Fixed a bug that caused $PS2 to not be printed when an interactive shell
4457     not using readline is reading a here document.
4458
4459 t.  Fixed a bug that caused history expansion to be performed inappropriately
4460     when a single-quoted string spanned more than one line.
4461
4462 u.  `getopts' now checks that the variable name passed by the user as the
4463     second argument is a legal shell identifier and that the variable is
4464     not read-only.
4465
4466 v.  Fixed `getopts' to obey POSIX.2 rules for setting $OPTIND when it
4467     encounters an error.
4468
4469 w.  Fixed `set' to display variable values in a form that can be re-read.
4470
4471 x.  Fixed a bug in the code that keeps track of whether or not local variables
4472     have been declared at the current level of function nesting.
4473
4474 y.  Non-interactive shells in posix mode now exit if the name in a function
4475     declaration is not a legal identifier.
4476
4477 z.  The job control code now ignores stopped children when the shell is not
4478     interactive.
4479
4480 aa. The `cd' builtin no longer attempts spelling correction on the directory
4481     name if the shell is not interactive, regardless of the setting of the
4482     `cdspell' option.
4483
4484 bb. Some OS-specific changes were made for SCO 3.2v[45] and AIX 4.2.
4485
4486 cc. `time' now prints its output to stderr, as POSIX.2 specifies.
4487
4488 2.  Fixes to Readline
4489
4490 a.  After printing possible completions, all lines of a multi-line prompt
4491     are redisplayed.
4492
4493 b.  Some changes were made to the terminal handling code in rltty.c to
4494     work around AIX 4.2 bugs.
4495
4496 3.  New Features in Bash
4497
4498 a.  There is a new loadable builtin: sprintf, with calling syntax
4499                 sprintf var format [args]
4500     This provides an easy way to simulate ksh left- and right-justified
4501     variable values.
4502
4503 b.  The expansions of \h and \H in prompt strings were swapped.  \h now
4504     expands to the hostname up to the first `.', as in bash-1.14.
4505
4506 4.  New Features in Readline
4507
4508 a.  The bash-1.14 behavior when ^M is typed while doing an incremental
4509     search was restored.  ^J may now be used to terminate the search without
4510     accepting the line.
4511
4512 b.  There is a new bindable variable: disable-completion.  This inhibits
4513     word completion and causes the completion character to be inserted as
4514     if it had been bound to self-insert.
4515
4516 ------------------------------------------------------------------------------
4517 This document details the changes between this version, bash-2.0-alpha3,
4518 and the previous version, bash-2.0-alpha2.
4519
4520 There is now a file `COMPAT' included in the distribution that lists the
4521 user-visible incompatibilities between 1.14 and 2.0.
4522
4523 1. Changes to Bash
4524
4525 a. Some work was done so that word splitting of the rhs of assignment
4526    statements conforms more closely to historical practice.
4527
4528 b. A couple of errant memory frees were fixed.
4529
4530 c. A fix was made to the test builtin so it recognizes `<' and `>' as
4531    binary operators.
4532
4533 d. The GNU malloc in lib/malloc/malloc.c now scrambles memory as it's
4534    allocated and freed.  This is to catch callers that refer to freed
4535    memory or assume something about newly-allocated memory.
4536
4537 e. Fixed a problem with conversion to 12-hour time in the prompt
4538    expansion code.
4539
4540 f. Fixed a problem with configure's argument parsing order.  Now you can
4541    correctly turn on specific options after using --enable-minimal-config.
4542
4543 g. The configure script now automatically disables the use of GNU malloc
4544    on systems where it's appropriate (better than having people read the
4545    NOTES file and do it manually).
4546
4547 h. There are new prompt expansions (\v and \V) to insert version information
4548    into the prompt strings.
4549
4550 i. The default prompt string now includes the version number.
4551
4552 j. Most of the builtins that take no options were changed to use the
4553    internal getopt so they can produce proper error messages for -?
4554    and incorrect options.
4555
4556 k. Some system-specific changes were made for SVR4.2 and Solaris 2.5.
4557
4558 l. Bash now uses PATH_MAX instead of MAXPATHLEN and NAME_MAX instead of
4559    MAXNAMLEN.
4560
4561 m. A couple of problems caused by uninitialized variables were fixed.
4562
4563 n. There are a number of new loadable builtin examples: logname, basename,
4564    dirname, tty, pathchk, tee, head, and rmdir.  All of these conform to
4565    POSIX.2.
4566
4567 o. Bash now notices changes in TZ and calls tzset() if present, so
4568    changing TZ will alter the time printed by prompt expansions.
4569
4570 p. The source was reorganized a bit so I don't have to wait so long for
4571    some files to compile, and to facilitate the creation of a `shell
4572    library' at some future point.
4573
4574 q. Bash no longer turns off job control if called as `sh', since the
4575    POSIX.2 spec includes job control as a standard feature.
4576
4577 r. `bash -o posix' now works as intended.
4578
4579 s. Fixed a problem with the completion code: when completing a filename
4580    that contained globbing characters, if show-all-if-ambiguous was set,
4581    the completion code would remove the user's text.
4582
4583 t. Fixed ulimit so that (hopefully) the full range of limits is available
4584    on HPUX systems.
4585
4586 u. A new `shopt' option (`hostcomplete') enables and disables hostname
4587    completion.
4588
4589 v. The shell no longer attempts to save the history on an abort(),
4590    which is usually called by programming_error().
4591
4592 w. The `-s' option to `fc' was changed to echo the command to be executed
4593    to stderr instead of stdout.
4594
4595 x. If the editor invoked by `fc -e' exits with a non-zero status, no
4596    commands are executed.
4597
4598 y. Fixed a bug that made the shopt `histverify' option work incorrectly.
4599
4600 z. There is a new variable `MACHTYPE' whose value is the GNU-style
4601    `cpu-company-system' system description as set by configure.  (The
4602    values of MACHTYPE and HOSTTYPE should really be swapped.)
4603
4604 aa. The `ulimit' builtin now allows the maximum virtual memory size to be
4605     set via setrlimit(2) if RLIMIT_VMEM is defined.
4606
4607 bb. `bash -nc 'command'' no longer runs `command'.
4608
4609 2. Changes to Readline
4610
4611 a. Fixed a typo in the code that checked for FIONREAD in input.c.
4612
4613 b. Fixed a bug in the code that outputs keybindings, so things like C-\
4614    are quoted properly.
4615
4616 c. Fixed a bug in the inputrc file parsing code to handle the problems
4617    caused by inputrc files created from the output of `bind -p' in
4618    previous versions of bash.  The problem was due to the bug fixed
4619    in item b above.
4620
4621 d. Readline no longer turns off the terminal's meta key, and turns it on
4622    once the first time it's called.
4623
4624 ------------------------------------------------------------------------------
4625 This file documents the changes between this version, bash-2.0-alpha2,
4626 and the previous version, bash-2.0-alpha.
4627
4628 1. Changes to Bash
4629
4630 a. The shell no longer thinks directories are executable.
4631
4632 b. `disown' has a new option, `h', which inhibits the resending of SIGHUP
4633    but does not remove the job from the jobs table.
4634
4635 c. The varargs functions in error.c now use ANSI-C `stdarg' if available.
4636
4637 d. The build process now treats the `build version' in .build as local to
4638    the build directory, so different versions built from the same source
4639    tree have different `build versions'.
4640
4641 e. Some problems with the grammar have been fixed. (It used `list' in a few
4642    productions where `compound_list' was needed.  A `list' must be terminated
4643    with a newline or semicolon; a `compound_list' need not be.)
4644
4645 f. A fix was made to keep `wait' from hanging when waiting for all background
4646    jobs.
4647
4648 g. `bash --help' now writes its output to stdout, like the GNU Coding Standards
4649    specify, and includes the machine type (the value of MACHTYPE).
4650
4651 h. `bash --version' now prints more information and exits successfully, like
4652    the GNU Coding Standards specify.
4653
4654 i. The output of `time' and `times' now prints fractional seconds with three
4655    places after the decimal point.
4656
4657 j. A bug that caused process substitutions to screw up the pipeline printed
4658    by `jobs' was fixed.
4659
4660 k. Fixes were made to the code that implements $'...' and $"..." so they
4661    work as documented.
4662
4663 l. The process substitution code now opens named pipes for reading with
4664    O_NONBLOCK to avoid hanging.
4665
4666 m. Fixes were made to the trap code so the shell cleans up correctly if the
4667    trap command contains a `return' and we're executing a function or
4668    sourcing a script with `.'.
4669
4670 n. Fixes to doc/Makefile.in so that it doesn't try to remake all of the
4671    documentation (ps, dvi, etc.) on a `make install'.
4672
4673 o. Fixed an auto-increment error that caused bash -c args to sometimes dump
4674    core.
4675
4676 p. Fixed a bug that caused $HISTIGNORE to fail when the history line
4677    contained globbing characters.
4678
4679 2. Changes to Readline
4680
4681 a. There is a new string variable, rl_library_version, available for use by
4682    applications.  The current value is "2.1".
4683
4684 b. A bug encountered when expand-tilde was enabled and file completion was
4685    attempted on a word beginning with `~/' was fixed.
4686
4687 c. A slight change was made to the incremental search termination behavior.
4688    ESC still terminates the search, but if input is pending or arrives
4689    within 0.1 seconds (on systems with select(2)), it is used as a prefix
4690    character.  This is intented to allow users to terminate searches with
4691    the arrow keys and get the behavior they expect.