3d71f176ba33c81642fcc5287229c668056ec92f
[platform/upstream/bash.git] / CHANGES
1 This document details the changes between this version, bash-4.0-release,
2 and the previous version, bash-4.0-rc1.
3
4 1.  Changes to Bash
5
6 a.  Changed the message printed when setlocale(3) fails to only include the
7     strerror error text if the call changes errno.
8
9 b.  Changed trap command execution to reset the line number before running a
10     trap (except DEBUG and RETURN traps).
11
12 c.  Fixed behavior of case-modifiying word expansions to not work on
13     individual words within a variable's value.
14
15 d.  Fixed a bug that caused mapfile to not be interruptible when run in an
16     interactive shell.
17
18 e.  Fixed a bug that caused mapfile to not run callbacks for the first line
19     read.
20
21 f.  Fixed a bug that caused mapfile to not honor EOF typed in an interactive
22     shell.
23
24 g.  Fixed the coprocess reaping code to not run straight from a signal handler.
25
26 h.  Fixed a bug that caused printf -b to ignore the first % conversion specifier
27     in the format string on 64-bit systems.
28
29 i.  Fixed a bug that caused incorrect word splitting when `:', `=', or `~'
30     appeared in $IFS.
31
32 j.  Fixed a bug that caused data corruption in the programmable completion code
33     when a shell function called from a completion aborted execution.
34
35 k.  Fixed a bug that caused the CPU usage reported by the `time' builtin to be
36     capped at 100%.
37
38 l.  Changed behavior of shell when -e option is in effect to reflect consensus
39     of Posix shell standardization working group.
40
41 m.  Fixed a bug introduced in bash-4.0-alpha that caused redirections to not
42     be displayed by `type' or `declare' when appearing in functions under
43     certain circumstances.
44
45 2.  Changes to Readline
46
47 a.  Fixed a bug that caused !(...) extended glob patterns to inhibit later
48     history expansion.
49
50 b.  Reworked the signal handling to avoid calling disallowed functions from a
51     signal handler.
52
53 3.  New Features in Bash
54
55 a.  `readarray' is now a synonym for `mapfile'.
56 ------------------------------------------------------------------------------
57 This document details the changes between this version, bash-4.0-rc1,
58 and the previous version, bash-4.0-beta2.
59
60 1.  Changes to Bash
61
62 a.  Fixed a bug that caused parsing errors when a $()-style command
63     substitution was follwed immediately by a quoted newline.
64
65 b.  Fixed a bug that caused extended shell globbing patterns beginning with
66     `*(' to not work when used with pattern substitution word expansions.
67  
68 ------------------------------------------------------------------------------
69 This document details the changes between this version, bash-4.0-beta2,
70 and the previous version, bash-4.0-beta.
71
72 1.  Changes to Bash
73
74 a.  Fixed a bug that caused failed word expansions to set $? but not
75     PIPESTATUS.
76
77 b.  Changed filename completion to quote the tilde in a filename with a
78     leading tilde that exists in the current directory.
79
80 c.  Fixed a bug that caused a file descriptor leak when performing
81     redirections attached to a compound command.
82
83 d.  Fixed a bug that caused expansions of $@ and $* to not exit the shell if
84     the -u option was enabled and there were no posititional parameters.
85
86 e.  Fixed a bug that resulted in bash not terminating immediately if a
87     terminating signal was received while performing output.
88
89 f.  Fixed a bug that caused the shell to crash after creating 256 process
90     substitutions during word completion.
91
92 2.  Changes to Readline
93
94 a.  Fixed a bug that caused redisplay errors when using prompts with invisible
95     characters and numeric arguments to a command in a multibyte locale.
96
97 b.  Fixed a bug that caused redisplay errors when using prompts with invisible
98     characters spanning more than two physical screen lines.
99
100 ------------------------------------------------------------------------------
101 This document details the changes between this version, bash-4.0-beta,
102 and the previous version, bash-4.0-alpha.
103
104 1.  Changes to Bash
105
106 a.  Fixed a typo that caused a variable to be used before initialization
107     while parsing Posix-style command substitutions.
108
109 b.  Fixed a bug that caused stray ^? when the expansion of a parameter used
110     as part of a pattern removal expansion is empty, but part of a non-
111     empty string.
112
113 c.  Fixed a bug that could cause strings not converted to numbers by strtol
114     to be treated as if the conversion had been successful.
115
116 d.  The `return' builtin now accepts no options and requires a `--' before
117     a negative return value, as Posix requires.
118
119 e.  Fixed a bug that caused local variables to be created with the empty
120     string for a value rather than no value.
121
122 f.  Changed behavior so the shell now acts as if it received an interrupt
123     when a pipeline is killed by SIGINT while executing a list.
124
125 g.  Fixed a bug that caused `declare var' and `typeset var' to initialize
126     `var' to the empty string.
127
128 h.  Changed `bind' builtin to print a warning but proceed if invoked when
129     line editing is not active.
130
131 i.  Fixed a bug that caused the shell to exit when the `errexit' option is
132     set and a command in a pipeline returns a non-zero exit status.
133
134 j.  Fixed a bug that caused the shell to not run the exit trap in a command
135     run with `bash -c' under some circumstances.
136
137 k.  Fixed a bug that caused parser errors to occasionally not set $? when
138     running commands with `eval'.
139
140 l.  Fixed a bug that caused stray control characters when evaluating compound
141     array assignments containing $'\x7f' escapes.
142
143 m.  Fixed a bug that caused redirections involving file descriptor 10 as the
144     target to behave incorrectly.
145
146 n.  Fixed a bug that could cause memory to be freed multiple times when
147     assigning to COMP_WORDBREAKS.
148
149 o.  Fixed a bug that could cause NULL pointer dereferences when COMP_WORDBREAKS
150     was unset.
151
152 2.  Changes to Readline
153
154 3.  New Features in Bash
155
156 a.  A value of 0 for the -t option to `read' now returns success if there is
157     input available to be read from the specified file descriptor.
158
159 b.  CDPATH and GLOBIGNORE are ignored when the shell is running in privileged
160     mode.
161
162 c.  New bindable readline functions shell-forward-word and shell-backward-word,
163     which move forward and backward words delimited by shell metacharacters
164     and honor shell quoting.
165
166 d.  New bindable readline functions shell-backward-kill-word and shell-kill-word
167     which kill words backward and forward, but use the same word boundaries
168     as shell-forward-word and shell-backward-word.
169
170 4.  New Features in Readline
171
172 a.  If the kernel supports it, readline displays special characters
173     corresponding to a keyboard-generated signal when the signal is received.
174
175 ------------------------------------------------------------------------------
176 This document details the changes between this version, bash-4.0-alpha,
177 and the previous version, bash-3.2-release.
178
179 1.  Changes to Bash
180
181 a.  Fixed several bugs in old-style `` command substitution parsing, including
182     comment parsing and quoted string handling.
183
184 b.  Fixed problems parsing arguments to the [[ command's =~ regular expression
185     matching operator:  metacharacter and whitespace parsing.
186
187 c.  Fixed a bug that caused the shell to inappropriately reuse high-numbered
188     file descriptors it used internally.
189
190 d.  Fixed a bug in pattern replacement word expansions that caused a `/' as
191     the first character of an expanded pattern to be mistaken for a global
192     replacement specifier.
193
194 e.  Fixed several problems with the asprintf and snprintf replacement functions
195     that caused hangs and crashes.
196
197 f.  Fixed a bug in the calculation of the current and previous job that caused
198     it to refer to incorrect jobs.
199
200 g.  Fixed a bug in the check for the validity of a hashed command pathname that
201     caused unnecessary hash table deletions and additions.
202
203 h.  Fixed a bug that caused child processes to inherit the wrong value for $!.
204
205 i.  Fixed a bug that caused `.' to fail to read and execute commands from non-
206     regular files such as devices or named pipes.
207
208 j.  Fixed a bug in printf formatting for the %x and %X expansions that occurred
209     on some systems.
210
211 k.  Fixed a bug that caused the shell to crash when creating temporary files if
212     $TMPDIR named a non-writable directory.
213
214 l.  Fixed a bug that caused the shell to ignore $TMPDIR when creating temporary
215     files under some circumstances.
216
217 m.  Fixed a bug that caused named pipes created by process substitution to not
218     be cleaned up.
219
220 n.  Fixed a bug that caused HISTTIMEFORMAT to not be honored when it appeared
221     in the initial shell environment.
222
223 o.  Fixed several bugs in the expansion of $* and $@ (quoted and unquoted)
224     when IFS is null or contains non-whitespace characters; the same changes
225     apply to arrays subscripted with * or @.
226
227 p.  Fixed several problems with pattern substitution expansions on the
228     positional parameters and arrays subscripted with * or @ that occurred
229     when $IFS was set to the empty string.
230
231 q.  Made a change to the default locale initialization code that should
232     result in better behavior from the locale-aware library functions.
233
234 r.  Fixed a bug that caused compacting the jobs list to drop jobs.
235
236 s.  Fixed a bug that caused jumps back to the top-level processing loop from
237     a builtin command to leave the shell in an inconsistent state.
238
239 t.  Fixed a bug that caused characters that would be escaped internally to be
240     doubled when escaped with a backslash.
241
242 u.  Fixed the initialization of mailboxes to not cause maildirs to be read
243     (and stat(2) called for every message file) at shell startup.
244
245 v.  Fixed a bug that caused the shell to not display $PS2 when the read builtin
246     reads a line continued with a backslash.
247
248 w.  Fixed a bug that caused errors in word splitting when $IFS contained
249     characters used for internal quoting.
250
251 x.  Fixed bugs that caused problems with output from shell builtins not being
252     completely displayed on some systems.
253
254 y.  Fixed a bug that caused output to be lost when a redirection is acting on
255     the shell's output file descriptor.
256
257 z.  Fixed bugs caused by shell builtins not checking for all write errors.
258
259 aa. Fixed a problem that caused the shell to dump core if expansions on the
260     pattern passed to the pattern removal word expansions resulted in expansion
261     errors.
262
263 bb. Fixed a bug that caused bash to loop infinitely after creating and
264     waiting for 4096 jobs.
265
266 cc. Fixed a bug that caused bash to lose the status of a background job under
267     certain circumstances.
268
269 dd. Fixed a bug that caused bash to not look in the temporary environment
270     when performing variable lookup under certain circumstances.
271
272 ee. Fixed a bug that caused bash to close file descriptors greater than 10
273     when they were used in redirections.
274
275 ff. Fixed a problem that caused the shell to attempt to read from the standard
276     input when called as `bash -i script'.
277
278 gg. Fixed a memory leak and variable initialization problems when the -v option
279     was supplied to `printf' that could cause incorrect results.
280
281 hh. Fixed a bug that caused the `read' builtin to count bytes when the -n option
282     was supplied, rather than (possibly multibyte) characters.
283
284 ii. Fixed a bug when displaying a function due to not converting the function
285     to an external form.
286
287 jj. Changed job control initialization to ensure that the shell has a tty
288     as its controlling terminal before enabling job control.
289
290 kk. Fixed a bug with the `test' builtin that caused it to misinterpret
291     arguments beginning with `-' but containing more than one character.
292
293 ll. Fixed bug that could cause the shell to dump core in certain cases where
294     a command sets the SIGINT disposition to the default.
295
296 mm. Fixed a bug in the pattern replacement (affecting both word expansion
297     and the `fc' builtin) that occurred when the pattern and replacement
298     strings were empty.
299
300 nn. Fixed a bug that caused an arithmetic evaluation error to disable all
301     further evaluation.
302
303 oo. Fixed a bug in pathname expansion that caused it to interpret backslashes
304     in the pathname as quoting characters.
305
306 pp. Fixed a bug in the replacement getcwd() implementation that could cause
307     memory to be overwritten.
308
309 qq. When in Posix mode, the `ulimit' builtin now uses a block size of 512 for
310     the `-c' and `-f' options.
311
312 rr. Brace expansion now allows process substitutions to pass through unchanged.
313
314 ss. Fixed a problem in the command name completion code to avoid quoting
315     escaped special characters twice when the command name begins with a tilde.
316
317 tt. Fixed a problem in the printf builtin that resulted in single-byte
318     output for the "'" escape, even when using multibyte characters.
319
320 uu. Fixed a bug that caused the failure exit status to be lost when redirections
321     attached to a compound command failed.
322
323 vv. Fixed a bug that caused the internal random number generator to not be
324     re-seeded correctly when creating a subshell.
325
326 ww. Fixed a bug that could cause the bash replacement getcwd to overwrite
327     memory.
328
329 xx. Fixed a bug that caused the shell to not receive SIGINT if it was sent
330     while the shell was waiting for a command substitution to terminate, and
331     make sure the exit status is correct when it does.
332
333 yy. Fixed a bug that resulted in the second and subsequent children spawned
334     by a shell begun to run a command substitution being placed into the
335     wrong process group.
336
337 zz. Fixed a bug that caused the results of successful tilde expansion to be
338     subject to pathname expansion and word splitting.
339
340 aaa. Fixed a bug that could cause the shell to hang if it encountered an
341      error that caused it to jump back to the top processing loop during a
342      command substitution or `eval' command.
343
344 bbb. Fixed a bug that caused the `read' builtin to use the tty's attributes
345      instead of those of the file descriptor passed with the -u option when
346      processing the -n and -d options.
347
348 ccc. Fixed a bug that caused incorrect expansion of ${array[@]:foo} if the
349      first character of $IFS was not whitespace.
350
351 ddd. Fixed a bug that occurred when scanning for the ending delimiter of a
352      ${parameter/pat/sub} expansion.
353
354 eee. Fixed a bug that caused the shell to inappropriately expand command
355      substitutions in words when expanding directory names for completion.
356
357 fff. Fixed a bug that caused the `fc' builtin to look too far back in the
358      history list under certain circumstances.
359
360 ggg. Fixed a bug that caused a shell running in Posix mode to search $PWD for
361      a file specified as an argument to source/. when the file was not found
362      in $PATH.
363
364 hhh. Fixed a bug that caused the shell to modify the case of a command word
365      found via command completion when the shell was performing case-
366      insensitive completion.
367
368 iii. Fixed a bug that caused the shell to search $PATH for an argument to
369      source/. even when it contained a `/'.
370
371 jjj. Fixed a bug that caused brace expansion to misorder expansions when the
372      locale did not have a collating order like aAbBcC...zZ.
373
374 kkk. Fixed a bug that did not allow `set +o history' to have any effect when
375      run in a startup file or from a sourced file.
376
377 lll. Fixed a bug with the precedence of the ?: conditional arithmetic operator.
378
379 mmm. Fixed a bug that caused side effects of temporary variable assignments
380      to persist in the shell environment.
381
382 nnn. Fixed a bug that caused the terminal to be left in non-canonical mode
383      when using editing commands that invoke the an editor on the current
384      command line.
385
386 ooo. Fixed a bug that caused globbing characters and characters in $IFS to not
387      be quoted appropriately when displaying assignment statements.
388
389 ppp. Fixed a bug that caused the `-e' option to be inherited when sourcing a
390      file or evaluating a command with `eval' even if the return value of the
391      command was supposed to be ignored.
392
393 qqq. Fixed a bug that caused the shell to attempt to created variables with
394      invalid names if such names appeared in the initial environment.
395
396 rrr. Fixed a bug with quote removal in strings where the final character is a
397      backslash.
398
399 sss. Fixed a bug that caused the effects of special variables to persist even
400      when the variables were unset as part of the shell reinitializing itself
401      to execute a shell script.
402
403 ttt. Fixed a bug that caused the history to not be saved after `history -c' or
404      `history -d' was executed until a sufficient number of commands had been
405      saved to the history.
406
407 uuu. Bash now parses command substitutions according to Posix rules: parsing
408      the command contained in $() to find the closing delimiter.
409
410 vvv. Fixed a bug that caused traps on SIGCHLD set in a SIGCHLD handler to
411      not persist.
412
413 www. Fixed a bug that didn't allow SIGCHLD to interrupt the `wait' builtin
414      as Posix specifies.
415
416 xxx. Invalid numeric arguments to shell builtins no longer cause the shell to
417      short-circuit any executing compound command.
418
419 yyy. Fixed a bug that caused the exit status to be lost when `break' was
420      used to short-circuit a loop's execution.
421
422 zzz. Fixed a bug that caused stray ^? characters to be left in expansions of
423      "${array[*]}".
424
425 aaaa. Bash now prints better error messages for here documents terminated by
426       EOF and for identifying the incorrect token in an invalid arithmetic
427       expression.
428
429 bbbb. Fixed a bug in the variable length word expansion that caused it to
430       incorrectly calculate the number of multibyte characters.
431
432 cccc. Fixed a race condition that could result in the top-level shell setting
433       the terminal's process group to an incorrect value if the process
434       group was changed by a child of a child of the shell.
435
436 dddd. Fixed a bug that caused here documents belonging to commands within a
437       compound command to be displayed in a syntactially-incorrect form, which
438       prevented them from being re-read as input.
439
440 eeee. The shell displays more warnings about failures to set the locale.
441
442 ffff. Fixed a bug that caused the body of a here-document to not be saved to
443       the history list.
444
445 gggg. Fixed a bug that caused configure to incorrectly conclude that FreeBSD
446       had /dev/fd available, resulting in problems with process substitution.
447
448 2.  Changes to Readline
449
450 a.  Fixed a number of redisplay errors in environments supporting multibyte 
451     characters.
452
453 b.  Fixed bugs in vi command mode that caused motion commands to inappropriately
454     set the mark.
455
456 c.  When using the arrow keys in vi insertion mode, readline allows movement
457     beyond the current end of the line (unlike command mode).
458
459 d.  Fixed bugs that caused readline to loop when the terminal has been taken
460     away and reads return -1/EIO.
461
462 e.  Fixed bugs in redisplay occurring when displaying prompts containing
463     invisible characters.
464
465 f.  Fixed a bug that caused the completion append character to not be reset to
466     the default after an application-specified completion function changed it.
467
468 g.  Fixed a problem that caused incorrect positioning of the cursor while in
469     emacs editing mode when moving forward at the end of a line while using
470     a locale supporting multibyte characters.
471
472 h.  Fixed an off-by-one error that caused readline to drop every 511th
473     character of buffered input.
474
475 i.  Fixed a bug that resulted in SIGTERM not being caught or cleaned up.
476
477 j.  Fixed redisplay bugs caused by multiline prompts with invisible characters
478     or no characters following the final newline.
479
480 k.  Fixed redisplay bug caused by prompts consisting solely of invisible
481     characters.
482
483 l.  Fixed a bug in the code that buffers characters received very quickly in
484     succession which caused characters to be dropped.
485
486 m.  Fixed a bug that caused readline to reference uninitialized data structures
487     if it received a SIGWINCH before completing initialzation.
488
489 n.  Fixed a bug that caused the vi-mode `last command' to be set incorrectly
490     and therefore unrepeatable.
491
492 o.  Fixed a bug that caused readline to disable echoing when it was being used
493     with an output file descriptor that was not a terminal.
494
495 p.  Readline now blocks SIGINT while manipulating internal data structures
496     during redisplay.
497
498 q.  Fixed a bug in redisplay that caused readline to segfault when pasting a
499     very long line (over 130,000 characters).
500
501 r.  Fixed bugs in redisplay when using prompts with no visible printing
502     characters.
503
504 3.  New Features in Bash
505
506 a.  When using substring expansion on the positional parameters, a starting
507     index of 0 now causes $0 to be prefixed to the list.
508
509 b.  The `help' builtin now prints its columns with entries sorted vertically
510     rather than horizontally.
511
512 c.  There is a new variable, $BASHPID, which always returns the process id of
513     the current shell.
514
515 d.  There is a new `autocd' option that, when enabled, causes bash to attempt
516     to `cd' to a directory name that is supplied as the first word of a
517     simple command.
518
519 e.  There is a new `checkjobs' option that causes the shell to check for and
520     report any running or stopped jobs at exit.
521
522 f.  The programmable completion code exports a new COMP_TYPE variable, set to
523     a character describing the type of completion being attempted.
524
525 g.  The programmable completion code exports a new COMP_KEY variable, set to
526     the character that caused the completion to be invoked (e.g., TAB).
527
528 h.  If creation of a child process fails due to insufficient resources, bash
529     will try again several times before reporting failure.
530
531 i.  The programmable completion code now uses the same set of characters as
532     readline when breaking the command line into a list of words.
533
534 j.  The block multiplier for the ulimit -c and -f options is now 512 when in
535     Posix mode, as Posix specifies.
536
537 k.  Changed the behavior of the read builtin to save any partial input received
538     in the specified variable when the read builtin times out.  This also
539     results in variables specified as arguments to read to be set to the empty
540     string when there is no input available.  When the read builtin times out,
541     it returns an exit status greater than 128.
542
543 l.  The shell now has the notion of a `compatibility level', controlled by
544     new variables settable by `shopt'.  Setting this variable currently
545     restores the bash-3.1 behavior when processing quoted strings on the rhs
546     of the `=~' operator to the `[[' command.
547
548 m.  The `ulimit' builtin now has new -b (socket buffer size) and -T (number
549     of threads) options.
550
551 n.  The -p option to `declare' now displays all variable values and attributes
552     (or function values and attributes if used with -f).
553
554 o.  There is a new `compopt' builtin that allows completion functions to modify
555     completion options for existing completions or the completion currently
556     being executed.
557
558 p.  The `read' builtin has a new -i option which inserts text into the reply
559     buffer when using readline.
560
561 q.  A new `-E' option to the complete builtin allows control of the default
562     behavior for completion on an empty line.
563
564 r.  There is now limited support for completing command name words containing
565     globbing characters.
566
567 s.  Changed format of internal help documentation for all builtins to roughly
568     follow man page format.
569
570 t.  The `help' builtin now has a new -d option, to display a short description,
571     and a -m option, to print help information in a man page-like format.
572
573 u.  There is a new `mapfile' builtin to populate an array with lines from a
574     given file.
575
576 v.  If a command is not found, the shell attempts to execute a shell function
577     named `command_not_found_handle', supplying the command words as the
578     function arguments.
579
580 w.  There is a new shell option: `globstar'.  When enabled, the globbing code
581     treats `**' specially -- it matches all directories (and files within
582     them, when appropriate) recursively.
583
584 x.  There is a new shell option: `dirspell'.  When enabled, the filename
585     completion code performs spelling correction on directory names during
586     completion.
587
588 y.  The `-t' option to the `read' builtin now supports fractional timeout
589     values.
590
591 z.  Brace expansion now allows zero-padding of expanded numeric values and
592     will add the proper number of zeroes to make sure all values contain the
593     same number of digits.
594
595 aa. There is a new bash-specific bindable readline function: `dabbrev-expand'.
596     It uses menu completion on a set of words taken from the history list.
597
598 bb. The command assigned to a key sequence with `bind -x' now sets two new
599     variables in the environment of the executed command:  READLINE_LINE_BUFFER
600     and READLINE_POINT.  The command can change the current readline line
601     and cursor position by modifying READLINE_LINE_BUFFER and READLINE_POINT,
602     respectively.
603
604 cc. There is a new >>& redirection operator, which appends the standard output
605     and standard error to the named file.
606
607 dd. The parser now understands `|&' as a synonym for `2>&1 |', which redirects
608     the standard error for a command through a pipe.
609
610 ee. The new `;&' case statement action list terminator causes execution to
611     continue with the action associated with the next pattern in the
612     statement rather than terminating the command.
613
614 ff. The new `;;&' case statement action list terminator causes the shell to
615     test the next set of patterns after completing execution of the current
616     action, rather than terminating the command.
617
618 gg. The shell understands a new variable: PROMPT_DIRTRIM.  When set to an
619     integer value greater than zero, prompt expansion of \w and \W  will
620     retain only that number of trailing pathname components and replace
621     the intervening characters with `...'.
622
623 hh. There are new case-modifying word expansions: uppercase (^[^]) and
624     lowercase (,[,]).  They can work on either the first character or
625     array element, or globally.  They accept an optional shell pattern
626     that determines which characters to modify.  There is an optionally-
627     configured feature to include capitalization operators.
628
629 ii. The shell provides associative array variables, with the appropriate
630     support to create, delete, assign values to, and expand them.
631
632 jj. The `declare' builtin now has new -l (convert value to lowercase upon
633     assignment) and -u (convert value to uppercase upon assignment) options.
634     There is an optionally-configurable -c option to capitalize a value at
635     assignment.
636
637 kk. There is a new `coproc' reserved word that specifies a coprocess: an
638     asynchronous command run with two pipes connected to the creating shell.
639     Coprocs can be named.  The input and output file descriptors and the
640     PID of the coprocess are available to the calling shell in variables
641     with coproc-specific names.
642
643 4.  New Features in Readline
644
645 a.  A new variable, rl_sort_completion_matches; allows applications to inhibit
646     match list sorting (but beware: some things don't work right if
647     applications do this).
648
649 b.  A new variable, rl_completion_invoking_key; allows applications to discover
650     the key that invoked rl_complete or rl_menu_complete.
651
652 c.  The functions rl_block_sigint and rl_release_sigint are now public and
653     available to calling applications who want to protect critical sections
654     (like redisplay).
655
656 d.  The functions rl_save_state and rl_restore_state are now public and
657     available to calling applications; documented rest of readline's state
658     flag values.
659
660 e.  A new user-settable variable, `history-size', allows setting the maximum
661     number of entries in the history list.
662
663 f.  There is a new implementation of menu completion, with several improvements
664     over the old; the most notable improvement is a better `completions
665     browsing' mode.
666
667 g.  The menu completion code now uses the rl_menu_completion_entry_function
668     variable, allowing applications to provide their own menu completion
669     generators.
670
671 h.  There is support for replacing a prefix  of a pathname with a `...' when
672     displaying possible completions.  This is controllable by setting the
673     `completion-prefix-display-length' variable.  Matches with a common prefix
674     longer than this value have the common prefix replaced with `...'.
675
676 i.  There is a new `revert-all-at-newline' variable.  If enabled, readline will
677     undo all outstanding changes to all history lines when `accept-line' is
678     executed.
679
680 ------------------------------------------------------------------------------
681 This document details the changes between this version, bash-3.2-release,
682 and the previous version, bash-3.2-beta.
683
684 1.  Changes to Bash
685
686 a.  Fixed a bug that caused the temporary environment passed to a command to
687     affect the shell's environment under certain circumstances.
688
689 b.  Fixed a bug in the printf builtin that caused the %q format specifier to
690     ignore empty string arguments.
691
692 c.  Improved multibyte character environment detection at configuration time.
693
694 d.  Fixed a bug in the read builtin that left spurious escape characters in the
695     input after processing backslashes when assigning to an array variable.
696
697 2.  Changes to Readline
698
699 a.  Fixed a redisplay bug that occurred in multibyte-capable locales when the
700     prompt was one character longer than the screen width.
701 ------------------------------------------------------------------------------
702 This document details the changes between this version, bash-3.2-beta,
703 and the previous version, bash-3.2-alpha.
704
705 1.  Changes to Bash
706
707 a.  Changed the lexical analyzer to treat locale-specific blank characters as
708     white space.
709
710 b.  Fixed a bug in command printing to avoid confusion between redirections and
711     process substitution.
712
713 c.  Fixed problems with cross-compiling originating from inherited environment
714     variables.
715
716 d.  Added write error reporting to printf builtin.
717
718 e.  Fixed a bug in the variable expansion code that could cause a core dump in
719     a multi-byte locale.
720
721 f.  Fixed a bug that caused substring expansion of a null string to return
722     incorrect results.
723
724 g.  BASH_COMMAND now retains its previous value while executing commands as the
725     result of a trap, as the documentation states.
726
727 2.  Changes to Readline
728
729 a.  Fixed a bug with prompt redisplay in a multi-byte locale to avoid redrawing
730     the prompt and input line multiple times.
731
732 b.  Fixed history expansion to not be confused by here-string redirection.
733
734 c.  Readline no longer treats read errors by converting them to newlines, as
735     it does with EOF.  This caused partial lines to be returned from readline().
736
737 ------------------------------------------------------------------------------
738 This document details the changes between this version, bash-3.2-alpha,
739 and the previous version, bash-3.1-release.
740
741 1.  Changes to Bash
742
743 a.  Fixed a source bug that caused the minimal configuration to not compile.
744
745 b.  Fixed memory leaks in error handling for the `read' builtin.
746
747 c.  Changed the [[ and (( compound commands to set PIPESTATUS with their exit
748     status.
749
750 d.  Fixed some parsing problems with compound array assignments.
751
752 e.  Added additional configuration changes for: NetBSD (incomplete multibyte
753     character support)
754
755 f.  Fixed two bugs with local array variable creation when shadowing a variable
756     of the same name from a previous context.
757
758 g.  Fixed the `read' builtin to restore the correct set of completion functions
759     if a timeout occurs.
760
761 h.  Added code to defer the initialization of HISTSIZE (and its stifling of the
762     history list) until the history file is loaded, allowing a startup file to
763     override the default value.
764
765 i.  Tightened up the arithmetic expression parsing to produce better error
766     messages when presented with invalid operators.
767
768 j.  Fixed the cross-compilation support to build the signal list at shell
769     invocation rather than compile time if cross-compiling.
770
771 k.  Fixed multibyte support for non-gcc compilers (or compilers that do not
772     allow automatic array variable sizing based on a non-constant value).
773
774 l.  Several fixes to the code that manages the list of terminated jobs and
775     their exit statuses, and the list of active and recently-terminated jobs
776     to avoid pid aliasing/wraparound and allocation errors.
777
778 m.  Fixed a problem that allowed scripts to die due to SIGINT while waiting
779     for children, even when started in the background or otherwise ignoring
780     SIGINT.
781
782 n.  Fixed a bug that caused shells invoked as -/bin/bash from not being
783     recognized as login shells.
784
785 o.  Fixed a problem that caused shells in the background to give the terminal
786     to a process group other than the foreground shell process group.
787
788 p.  Fixed a problem with extracting the `varname' in ${#varname}.
789
790 q.  Fixed the code that handles SIGQUIT to not exit immediately -- thereby
791     calling functions that may not be called in a signal handler context --
792     but set a flag and exit afterward (like SIGINT).
793
794 r.  Changed the brace expansion code to skip over braces that don't begin a
795     valid matched brace expansion construct.
796
797 s.  Fixed `typeset' and `declare' to not require that their shell function
798     operands to be valid shell identifiers.
799
800 t.  Changed `test' to use access(2) with a temporary uid/euid swap when testing
801     file attributes and running setuid, and access(2) in most other cases.
802
803 u.  Changed completion code to not attempt command name completion on a line
804     consisting solely of whitespace when no_empty_command_completion is set.
805
806 v.  The `hash' builtin now prints nothing in posix mode when the hash table is
807     empty, and prints a message to that effect to stdout instead of stderr
808     when not in posix mode.
809
810 w.  Fixed a bug in the extended pattern matching code that caused it to fail to
811     match periods with certain patterns.
812
813 x.  Fixed a bug that caused the shell to dump core when performing filename
814     generation in directories with thousands of files.
815
816 y.  Returned to the original Bourne shell rules for parsing ``:  no recursive
817     parsing of embedded quoted strings or ${...} constructs.
818
819 z.  The inheritence of the DEBUG, RETURN, and ERR traps is now dependent only
820     on the settings of the `functrace' and `errtrace' shell options, rather
821     than whether or not the shell is in debugging mode.
822
823 aa. Fixed a problem with $HOME being converted to ~ in the expansion of
824     members of the DIRSTACK array.
825
826 bb. Fixed a problem with quoted arguments to arithmetic expansions in certain
827     constructs.
828
829 cc. The command word completion code now no longer returns matching directories
830     while searching $PATH.
831
832 dd. Fixed a bug with zero-padding and precision handling in snprintf()
833     replacement.
834
835 ee. Fixed a bug that caused the command substitution code not to take embedded
836     shell comments into account.
837
838 ff. Fixed a bug that caused $((...);(...)) to be misinterpreted as an
839     arithmetic substitution.
840
841 gg. Fixed a bug in the prompt expansion code that inappropriately added a
842     \001 before a \002 under certain circumstances.
843
844 hh. Fixed a bug that caused `unset LANG' to not properly reset the locale
845     (previous versions would set the locale back to what it was when bash
846     was started rather than the system's "native" locale).
847
848 ii. Fixed a bug that could cause file descriptors > 10 to not be closed even
849     when closed explicitly by a script.
850
851 jj. Fixed a bug that caused single quotes to be stripped from ANSI-C quoting
852     inside double-quoted command substitutions.
853
854 kk. Fixed a bug that could cause core dumps when `return' was executed as the
855     last element of a pipeline inside a shell function.
856
857 ll. Fixed a bug that caused DEBUG trap strings to overwrite commands stored in
858     the jobs list.
859
860 2.  Changes to Readline
861
862 a.  Fixed a problem that caused segmentation faults when using readline in
863     callback mode and typing consecutive DEL characters on an empty line.
864
865 b.  Fixed several redisplay problems with multibyte characters, all having to
866     do with the different code paths and variable meanings between single-byte
867     and multibyte character redisplay.
868
869 c.  Fixed a problem with key sequence translation when presented with the
870     sequence \M-\C-x.
871
872 d.  Fixed a problem that prevented the `a' command in vi mode from being
873     undone and redone properly.
874
875 e.  Fixed a problem that prevented empty inserts in vi mode from being undone
876     properly.
877
878 f.  Fixed a problem that caused readline to initialize with an incorrect idea
879     of whether or not the terminal can autowrap.
880
881 g.  Fixed output of key bindings (like bash `bind -p') to honor the setting of
882     convert-meta and use \e where appropriate.
883
884 h.  Changed the default filename completion function to call the filename
885     dequoting function if the directory completion hook isn't set.  This means
886     that any directory completion hooks need to dequote the directory name,
887     since application-specific hooks need to know how the word was quoted,
888     even if no other changes are made.
889
890 i.  Fixed a bug with creating the prompt for a non-interactive search string
891     when there are non-printing characters in the primary prompt.
892
893 j.  Fixed a bug that caused prompts with invisible characters to be redrawn
894     multiple times in a multibyte locale.
895
896 k.  Fixed a bug that could cause the key sequence scanning code to return the
897     wrong function.
898
899 l.  Fixed a problem with the callback interface that caused it to fail when
900     using multi-character keyboard macros.
901
902 m.  Fixed a bug that could cause a core dump when an edited history entry was
903     re-executed under certain conditions.
904
905 n.  Fixed a bug that caused readline to reference freed memory when attmpting
906     to display a portion of the prompt.
907
908 3.  New Features in Bash
909
910 a.  Changed the parameter pattern replacement functions to not anchor the
911     pattern at the beginning of the string if doing global replacement - that
912     combination doesn't make any sense.
913
914 b.  When running in `word expansion only' mode (--wordexp option), inhibit
915     process substitution.
916
917 c.  Loadable builtins now work on MacOS X 10.[34].
918
919 d.  Shells running in posix mode no longer set $HOME, as POSIX requires.
920
921 e.  The code that checks for binary files being executed as shell scripts now
922     checks only for NUL rather than any non-printing character.
923
924 f.  Quoting the string argument to the [[ command's  =~ operator now forces
925     string matching, as with the other pattern-matching operators.
926
927 4.  New Features in Readline
928
929 a.  Calling applications can now set the keyboard timeout to 0, allowing
930     poll-like behavior.
931
932 b.  The value of SYS_INPUTRC (configurable at compilation time) is now used as
933     the default last-ditch startup file.
934
935 c.  The history file reading functions now allow windows-like \r\n line
936     terminators.
937
938 ------------------------------------------------------------------------------
939 This document details the changes between this version, bash-3.1-release,
940 and the previous version, bash-3.1-rc2.
941
942 1.  Changes to Readline
943
944 a.  Several changes to the multibyte redisplay code to fix problems with
945     prompts containing invisible characters.
946
947 ------------------------------------------------------------------------------
948 This document details the changes between this version, bash-3.1-rc2,
949 and the previous version, bash-3.1-rc1.
950
951 1.  Changes to Bash
952
953 a.  Fixed a bug that caused a DEBUG trap to overwrite a command string that's
954     eventually attached to a background job.
955
956 b.  Changed some code so that filenames with leading tildes with spaces in the
957     name aren't tilde-expanded by the bash completion code.
958
959 c.  Fixed a bug that caused the pushd builtin to fail to change to
960     directories with leading `-'.
961
962 d.  Fixed a small memory leak in the programmable completion code.
963
964 2.  Changes to Readline
965
966 a.  Fixed a redisplay bug caused by moving the cursor vertically to a line
967     with invisible characters in the prompt in a multibyte locale.
968
969 b.  Fixed a bug that could cause the terminal special chars to be bound in the
970     wrong keymap in vi mode.
971
972 3.  New Features in Bash
973
974 a.  If compiled for strict POSIX conformance, LINES and COLUMNS may now
975     override the true terminal size.
976
977 4.  New Features in Readline
978
979 a.  A new external application-controllable variable that allows the LINES
980     and COLUMNS environment variables to set the window size regardless of
981     what the kernel returns.
982
983 ------------------------------------------------------------------------------
984 This document details the changes between this version, bash-3.1-rc1,
985 and the previous version, bash-3.1-beta1.
986
987 1.  Changes to Bash
988
989 a.  Fixed a bug that could cause core dumps due to accessing the current
990     pipeline while in the middle of modifying it.
991
992 b.  Fixed a bug that caused pathnames with backslashes still quoting characters
993     to be passed to opendir().
994
995 c.  Command word completion now obeys the setting of completion-ignore-case.
996
997 d.  Fixed a problem with redirection that caused file descriptors greater than
998     2 to be inappropriately marked as close-on-exec.
999
1000 e.  In Posix mode, after `wait' is called to wait for a particular process
1001     explicitly, that process is removed from the list of processes known to
1002     the shell, and subsequent attempts to wait for it return errors.
1003
1004 f.  Fixed a bug that caused extended pattern matching to incorrectly scan
1005     backslash-escaped pattern characters.
1006
1007 g.  Fixed a synchronization problem that could cause core dumps when handling
1008     a SIGWINCH.
1009
1010 h.  Fixed a bug that caused an unmatched backquote to be accepted without an
1011     error when processing here documents.
1012
1013 i.  Fixed a small memory leak in the `cd' builtin.
1014
1015 j.  Fix for MacOS X so it gets the values for the HOSTTYPE, MACHTYPE, and
1016     OSTYPE variables at build time, to support universal binaries.
1017
1018 k.  Fixed a bug that could cause an exit trap to return the exit status of
1019     the trap command rather than the status as it was before the trap was
1020     run as the shell's exit status.
1021
1022 2.  New Features in Bash
1023
1024 3.  Changes to Readline
1025
1026 a.  Fixed a bug that caused reversing the incremental search direction to
1027     not work correctly.
1028
1029 b.  Fixed the vi-mode `U' command to only undo up to the first time insert mode
1030     was entered, as Posix specifies.
1031
1032 c.  Fixed a bug in the vi-mode `r' command that left the cursor in the wrong
1033     place.
1034
1035 4.  New Features in Readline
1036
1037 a.  New application-callable auxiliary function, rl_variable_value, returns
1038     a string corresponding to a readline variable's value.
1039
1040 b.  When parsing inputrc files and variable binding commands, the parser
1041     strips trailing whitespace from values assigned to boolean variables
1042     before checking them.
1043
1044
1045 ------------------------------------------------------------------------------
1046 This document details the changes between this version, bash-3.1-beta1,
1047 and the previous version, bash-3.1-alpha1.
1048
1049 1.  Changes to Bash
1050
1051 a.  Added some system-specific signal names.
1052
1053 b.  Fixed a typo in the ulimit builtin to make `x' the right option to
1054     maniuplate the limit on file locks.
1055
1056 c.  Fixed a problem with using += to append to index 0 of an array variable
1057     when not using subscript syntax.
1058
1059 d.  A few changes to configure.in to remove calls to obsolete or outdated
1060     macros.
1061
1062 e.  Make sure changes to variables bash handles specially (e.g., LC_ALL) are
1063     made when the variable is set in the temporary environment to a command.
1064
1065 f.  Make sure changes to variables bash handles specially (e.g., LC_ALL) are
1066     made when the variable is modified using `printf -v'.
1067
1068 g.  The export environment is now remade on cygwin when HOME is changed, so
1069     DLLs bash is linked against pick up the new value.  This fixes problems
1070     with tilde expansion when linking against and already-installed readline.
1071
1072 h.  Small fix to the logic for performing tilde expansion in posix mode, so
1073     expansion on the right-hand side of an assignment statement takes place.
1074
1075 i.  Fixed a bug that prevented redirections associated with a shell function
1076     from being executed when in a subshell.
1077
1078 j.  Fixed `source' and `.' builtins to not require an executable file when
1079     searching $PATH for a file to source.
1080
1081 k.  Fixed a bug that caused incorrect word splitting in a function when IFS
1082     was declared local, then unset.
1083
1084 l.  Fixed a problem with the `kill' builtin that prevented sending signals
1085     to a process group under certain circumstances when providing a pid < 0.
1086
1087 m.  When in POSIX mode, `pwd' now checks that the value it prints is the same
1088     directory as `.', even when displaying $PWD.
1089
1090 n.  Fixed a problem with the `read' builtin when reading a script from standard
1091     input and reading data from the same file.
1092
1093 o.  Fixed a problem with the `type' and `command' builtins that caused absolute
1094     pathnames to be displayed incorrectly.
1095
1096 p.  Some changes to the `bg' builtin for POSIX conformance.
1097
1098 q.  The `fc' builtin now removes the `fc' command that caused it to invoke an
1099     editor on specified history entries from the history entirely, rather than
1100     simply ignoring it.
1101
1102 r.  When in POSIX mode, the `v' command in vi editing mode simply invokes vi
1103     on the current command, rather than checking $FCEDIT and $EDITOR.
1104
1105 s.  Fixed a small memory leak in the pathname canonicalization code.
1106
1107 t.  Fixed a bug that caused the expanded value of a $'...' string to be
1108     incorrectly re-quoted if it occurred within a double-quoted ${...}
1109     parameter expansion.
1110
1111 u.  Restored default emacs-mode key binding of M-TAB to dynamic-complete-history.
1112
1113 v.  Fixed a bug that caused core dumps when interrupting loops running builtins
1114     on some systems.
1115
1116 w.  Make sure that some of the functions bash provides replacements for are
1117     not cpp defines.
1118
1119 x.  The code that scans embedded commands for the parser (`...` and $(...)) is
1120     now more aware of embedded comments and their effect on quoted strings.
1121
1122 y.  Changed the `-n' option to the `history' builtin to not reset the number of
1123     history lines read in the current session after reading the new lines from
1124     the history file if the history is being appended when it is written to
1125     the file, since the appending takes care of the problem that the adjustment
1126     was intended to solve.
1127
1128 z.  Improved the error message displayed when a shell script fails to execute
1129     because the environment and size of command line arguments are too large.
1130
1131 aa. A small fix to make sure that $HISTCMD is evaluated whenever the shell is
1132     saving commands to the history list, not just when HISTSIZE is defined.
1133
1134 2.  Changes to Readline
1135
1136 a.  The `change-case' command now correctly changes the case of multibyte
1137     characters.
1138
1139 b.  Changes to the shared library construction scripts to deal with Windows
1140     DLL naming conventions for Cygwin.
1141
1142 c.  Fixed the redisplay code to avoid core dumps resulting from a poorly-timed
1143     SIGWINCH.
1144
1145 d.  Fixed the non-incremental search code in vi mode to dispose of any current
1146     undo list when copying a line from the history into the current editing
1147     buffer.
1148
1149 e.  The variable assignment code now ignores whitespace at the end of lines
1150     when assigning to boolean variables.
1151
1152 f.  The `C-w' binding in incremental search now understands multibyte
1153     characters.
1154
1155 3.  New Features in Bash
1156
1157 a.  A new configuration option, `--enable-strict-posix-default', which will
1158     build bash to be POSIX conforming by default.
1159
1160 4.  New Features in Readline
1161
1162 a.  If the rl_completion_query_items is set to a value < 0, readline never
1163     asks the user whether or not to view the possible completions.
1164
1165 ------------------------------------------------------------------------------
1166 This document details the changes between this version, bash-3.1-alpha1,
1167 and the previous version, bash-3.0-release.
1168
1169 1.  Changes to Bash
1170
1171 a.  Fixed a bug that caused bash to crash if referencing an unset local array.
1172
1173 b.  Fixed a problem that caused tilde expansion to not be performed before
1174     attempting globbing word completion.
1175
1176 c.  Fixed an incompatibility so that a first argument to trap that's a valid
1177     signal number will be trated as a signal rather than a command to execute.
1178
1179 d.  Fixed ${#word} expansion to correctly compute the length of a string
1180     containing multibyte characters.
1181
1182 e.  Fixed a bug that caused bash to not pass the correct flags for signal
1183     disposition to child processes.
1184
1185 f.  Fixed a bug that caused `fc -l' to list one too many history entries.
1186
1187 g.  Some fixes to `fc' for POSIX conformance.
1188
1189 h.  Some fixes to job status display for POSIX conformance.
1190
1191 i.  Fixed a bug that caused `command -v' to display output if a command was not
1192     found -- it should be silent.
1193
1194 j.  In POSIX mode, `type' and `command -[vV]' do not report non-executable
1195     files, even if the shell will attempt to execute them.
1196
1197 k.  Fixed a bug that caused the `==' operator to the [[ command to not attempt
1198     extended pattern matching.
1199
1200 l.  Fixed the brace expansion code to handle characters whose value exceeds 128.
1201
1202 m.  Fixed `printf' to handle strings with a leading `\0' whose length is
1203     non-zero.
1204
1205 n.  Fixed a couple of problems with brace expansion where `${' was handled
1206     incorrectly.
1207
1208 o.  Fixed off-by-one error when calculating the upper bound of `offset' when
1209     processing the ${array[@]:offset:length} expansion.
1210
1211 p.  System-specific configuration changes for: FreeBSD 5.x, Interix, MacOS X
1212     10.4, Linux 2.4+ kernels, Linux 3.x kernels, Dragonfly BSD, QNX 6.x,
1213     Cygwin
1214
1215 q.  Fixed a bug that caused the shell to ignore the status of the rightmost
1216     command in a pipeline when the `pipefail' option was enabled.
1217
1218 r.  Fixed a completion bug that caused core dumps when expanding a directory
1219     name.
1220
1221 s.  Fixed a bug that prevented `hash -d' from removing commands from the hash
1222     table.
1223
1224 t.  Fixed word splitting to avoid really bad quadratic performance when
1225     expanding long lists.
1226
1227 u.  Fixed a bug that caused negative offsets in substring expansion to use the
1228     wrong values.
1229
1230 v.  Fixed a bug in printf that caused it to not return failure on write errors.
1231
1232 w.  Fixed a bug that caused commands in subshells to not be properly timed.
1233
1234 x.  The shell parser no longer attempts to parse a compound assignment specially
1235     unless in a position where an assignment statement is acceptable or parsing
1236     arguments to a builtin that accepts assignment statements.
1237
1238 y.  Fixed a problem that caused a `case' statement to be added to the history
1239     incorrectly as a single command if the `case word' was on one line and the
1240     `in' on another.
1241
1242 z.  Fixed a problem that caused internal shell quoting characters to be
1243     incorrectly quoted with backslashes under some circumstances.
1244
1245 aa. The shell now performs correct word splitting when IFS contains multibyte
1246     characters.
1247
1248 bb. The mail checking code now resets the cached file information if the size
1249     drops to 0, even if the times don't change.
1250
1251 cc. A completed command name that is found in $PATH as well as the name of a
1252     directory in the current directory no longer has a slash appended in certain
1253     circumstances:  a single instance found in $PATH when `.' is not in $PATH,
1254     and multiple instances found in $PATH, even when `.' is in $PATH.
1255
1256 dd. Incorporated tilde expansion into the word expansion code rather than as a
1257     separately-called function, fixing some cases where it was performed
1258     inappropriately (e.g., after the second `=' in an assignment statement or
1259     in a double-quoted parameter expansion).
1260
1261 ee. Fixed several bugs encountered when parsing compound assignment statements,
1262     so that compound assignments appearing as arguments to builtins are no
1263     longer double-expanded.
1264
1265 ff. Fixed a bug in the command execution code that caused asynchronous commands
1266     containing command substitutions to not put the terminal in the wrong
1267     process group.
1268
1269 gg. Bash now handles the case where the WCONTINUED flag causes waitpid() to
1270     return -1/EINVAL at runtime as well as configuration time.
1271
1272 hh. Fixed parser to generate an error when the pipeline `argument' to `!' or
1273     `time' is NULL.
1274
1275 ii. The shell now takes a little more care when manipulating file descriptors
1276     greater than 9 with the `exec' builtin.
1277
1278 jj. Fixed a bug that caused variable assignments preceding the `command' builtin
1279     preceding a special builtin to be preserved after the command completed in
1280     POSIX mode.
1281
1282 kk. Fixed a bug that allowed variables beginning with a digit to be created.
1283
1284 ll. Fixed a bug that caused a \<newline> to be removed when parsing a $'...'
1285     construct.
1286
1287 mm. A shell whose name begins with `-' will now be a restricted shell if the
1288     remainder of the name indicates it should be restricted.
1289
1290 nn. Fixed a bug that could cause a core dump if FUNCNAME were changed or unset
1291     during a function's execution.
1292
1293 oo. Fixed a bug that caused executing a `return' in a function to not execute
1294     a RETURN trap.  The RETURN trap is inherited by shell functions only if
1295     function tracing is globally enabled or has been enabled for that function.
1296
1297 pp. Fixed cases where var[@] was not handled exactly like var, when var is a
1298     scalar variable.
1299
1300 qq. Fixed a bug that caused the first character after a SIGINT to be discarded
1301     under certain circumstances.
1302
1303 rr. Fixed exit status code so that a suspended job returns 128+signal as its
1304     exit status (preventing commands after it in `&&' lists from being
1305     executed).
1306
1307 ss. Fixed a bug that caused the shell parser state to be changed by executing
1308     a shell function as a result of word completion.
1309
1310 tt. Fixed a long-standing bug that caused '\177' characters in variable
1311     values to be discarded when expanded in double-quoted strings.
1312
1313 uu. Fixed a bug that caused $RANDOM to be re-seeded multiple times in a
1314     subshell environment.
1315
1316 vv. Extensive changes to the job management code to avoid the pid-reuse and
1317     pid-aliasing problems caused by retaining the exit status of too many jobs,
1318     but still retain as many background job statuses as POSIX requires.
1319
1320 ww. Fixed a parser bug in processing \<newline> that caused things like
1321
1322                 ((echo 5) \
1323                  (echo 6))
1324
1325     to not work correctly.
1326
1327 xx. `pwd -P' now sets $PWD to a directory name containing no symbolic links
1328     when in posix mode, as POSIX requires.
1329
1330 yy. In posix mode, bash no longer sets $PWD to a name containing no symbolic
1331     links if a directory is chosen from $CDPATH.
1332
1333 zz. The word splitting code now treats an IFS character that is not space,
1334     tab, or newline and any adjacent IFS white space as a single delimiter, as
1335     SUSv3/XPG6 require.
1336
1337 aaa. The `read' builtin now checks whether or not the number of fields read is
1338      exactly the same as the number of variables instead of just assigning the
1339      rest of the line (minus any trailing IFS white space) to the last
1340      variable.  This is what POSIX/SUS/XPG all require.
1341
1342 bbb. Fixed a bug that caused `read' to always check whether or not fd 0 was a
1343      pipe, even when reading from another file descriptor.
1344
1345 ccc. Fixed a bug that caused short-circuiting of execution even if the return
1346      value was being inverted.
1347
1348 ddd. Fixed a bug that caused a core dump while decoding \W escapes in PS1 if
1349      PWD was unset.
1350
1351 eee. Fixed a bug in `read' that counted internal quoting characters for the
1352      purposes of `read -n'.
1353
1354 fff. Fixed a bug so that a function definition in a pipeline causes a child
1355      process to be forked at the right time.
1356
1357 ggg. Bash will not attempt to link against a readline library that doesn't
1358      have rl_gnu_readline_p == 1.
1359
1360 hhh. Fixed a bug that caused `read' to consume one too many characters when
1361      reading a fixed number of characters and the Nth character is a backslash.
1362
1363 iii. Fixed a bug that caused `unset' on variables in the temporary environment
1364      to leave them set when `unset' completed.
1365
1366 jjj. Fixed a bug that caused bash to close fd 2 if an `exec' failed and the
1367      shell didn't exit.
1368
1369 kkk. The completion code is more careful to not turn `/' or `///' into `//',
1370      for those systems on which `//' has special meaning.
1371
1372 lll. Fixed a bug that caused command substitution in asynchronous commands to
1373      close the wrong file descriptors.
1374
1375 mmm. The shell no longer prints status messages about terminated background
1376      processes unless job control is active.
1377
1378 nnn. Fixed a bug that prevented multiple consecutive invocations of `history -s'
1379      from adding all the commands to the history list.
1380
1381 ooo. Added a couple of changes to make arithmetic expansion more consistent in
1382      all its contexts (still not perfect).
1383
1384 ppp. Fixed a bug that caused the parser to occasionally not find the right
1385      terminating "`" in an old-style command substitution.
1386
1387 qqq. Fixed a bug that caused core dumps when the shell was reading its non-
1388      interactive input from fd 0 and fd 0 was duplicated and restored using a
1389      combination of `exec' (to save) and redirection (to restore).
1390
1391 rrr. Fixed a problem that caused loops in sourced scripts to not be cleaned
1392      up properly when a `return' is executed.
1393
1394 sss. Change internal command substitution completion function to append a slash
1395      to directory names in the command.
1396
1397 2.  Changes to Readline
1398
1399 a.  Fixed a bug that caused multiliine prompts to be wrapped and displayed
1400     incorrectly.
1401
1402 b.  Fixed a bug that caused ^P/^N in emacs mode to fail to display the current
1403     line correctly.
1404
1405 c.  Fixed a problem in computing the number of invisible characters on the first
1406     line of a prompt whose length exceeds the screen width.
1407
1408 d.  Fixed vi-mode searching so that failure preserves the current line rather
1409     than the last line in the history list.
1410
1411 e.  Fixed the vi-mode `~' command (change-case) to have the correct behavior at
1412     end-of-line when manipulating multibyte characters.
1413
1414 f.  Fixed the vi-mode `r' command (change-char) to have the correct behavior at
1415     end-of-line when manipulating multibyte characters.
1416
1417 g.  Fixed multiple bugs in the redisplay of multibyte characters:  displaying
1418     prompts longer than the screen width containing multibyte characters, 
1419
1420 h.  Fix the calculation of the number of physical characters in the prompt
1421     string when it contains multibyte characters.
1422
1423 i.  A non-zero value for the `rl_complete_suppress_append' variable now causes
1424     no `/' to be appended to a directory name.
1425
1426 j.  Fixed forward-word and backward-word to work when words contained
1427     multibyte characters.
1428
1429 k.  Fixed a bug in finding the delimiter of a `?' substring when performing
1430     history expansion in a locale that supports multibyte characters.
1431
1432 l.  Fixed a memory leak caused by not freeing the timestamp in a history entry.
1433
1434 m.  Fixed a bug that caused "\M-x" style key bindings to not obey the setting
1435     of the `convert-meta' variable.
1436
1437 n.  Fixed saving and restoring primary prompt when prompting for incremental
1438     and non-incremental searches; search prompts now display multibyte
1439     characters correctly.
1440
1441 o.  Fixed a bug that caused keys originally bound to self-insert but shadowed
1442     by a multi-character key sequence to not be inserted.
1443
1444 p.  Fixed code so rl_prep_term_function and rl_deprep_term_function aren't
1445     dereferenced if NULL (matching the documentation).
1446
1447 q.  Extensive changes to readline to add enough state so that commands
1448     requiring additional characters (searches, multi-key sequences, numeric
1449     arguments, commands requiring an additional specifier character like
1450     vi-mode change-char, etc.) work without synchronously waiting for
1451     additional input.
1452
1453 r.  Lots of changes so readline builds and runs on MinGW.
1454
1455 s.  Readline no longer tries to modify the terminal settings when running in
1456     callback mode.
1457
1458 t.  The Readline display code no longer sets the location of the last invisible
1459     character in the prompt if the \[\] sequence is empty.
1460
1461 3.  New Features in Bash
1462
1463 a.  Bash now understands LC_TIME as a special variable so that time display
1464     tracks the current locale.
1465
1466 b.  BASH_ARGC, BASH_ARGV, BASH_SOURCE, and BASH_LINENO are no longer created
1467     as `invisible' variables and may not be unset.
1468
1469 c.  In POSIX mode, if `xpg_echo' option is enabled, the `echo' builtin doesn't
1470     try to interpret any options at all, as POSIX requires.
1471
1472 d.  The `bg' builtin now accepts multiple arguments, as POSIX seems to specify.
1473
1474 e.  Fixed vi-mode word completion and glob expansion to perform tilde
1475     expansion.
1476
1477 f.  The `**' mathematic exponentiation operator is now right-associative.
1478
1479 g.  The `ulimit' builtin has new options: -i (max number of pending signals),
1480     -q (max size of POSIX message queues), and -x (max number of file locks).
1481
1482 h.  A bare `%' once again expands to the current job when used as a job
1483     specifier.
1484
1485 i.  The `+=' assignment operator (append to the value of a string or array) is
1486     now supported for assignment statements and arguments to builtin commands
1487     that accept assignment statements.
1488
1489 j.  BASH_COMMAND now preserves its value when a DEBUG trap is executed.
1490
1491 k.  The `gnu_errfmt' option is enabled automatically if the shell is running
1492     in an emacs terminal window.
1493
1494 l.  New configuration option:  --single-help-strings.  Causes long help text
1495     to be written as a single string; intended to ease translation.
1496
1497 m.  The COMP_WORDBREAKS variable now causes the list of word break characters
1498     to be emptied when the variable is unset.
1499
1500 n.  An unquoted expansion of $* when $IFS is empty now causes the positional
1501     parameters to be concatenated if the expansion doesn't undergo word
1502     splitting.
1503
1504 o.  Bash now inherits $_ from the environment if it appears there at startup.
1505
1506 p.  New shell option: nocasematch.  If non-zero, shell pattern matching ignores
1507     case when used by `case' and `[[' commands.
1508
1509 q.  The `printf' builtin takes a new option: -v var.  That causes the output
1510     to be placed into var instead of on stdout.
1511
1512 r.  By default, the shell no longer reports processes dying from SIGPIPE.
1513
1514 s.  Bash now sets the extern variable `environ' to the export environment it
1515     creates, so C library functions that call getenv() (and can't use the
1516     shell-provided replacement) get current values of environment variables.
1517
1518 4.  New Features in Readline
1519
1520 a.  The key sequence sent by the keypad `delete' key is now automatically
1521     bound to delete-char.
1522
1523 b.  A negative argument to menu-complete now cycles backward through the
1524     completion list.
1525
1526 c.  A new bindable readline variable:  bind-tty-special-chars.  If non-zero,
1527     readline will bind the terminal special characters to their readline
1528     equivalents when it's called (on by default).
1529
1530 d.  New bindable command: vi-rubout.  Saves deleted text for possible
1531     reinsertion, as with any vi-mode `text modification' command; `X' is bound
1532     to this in vi command mode.
1533
1534 ------------------------------------------------------------------------------
1535 This document details the changes between this version, bash-3.0-release,
1536 and the previous version, bash-3.0-rc1.
1537
1538 1.  Changes to Bash
1539
1540 a.  Fixed a boundary overrun that could cause segmentation faults when the
1541     completion code hands an incomplete construct to the word expansion
1542     functions.
1543
1544 b.  Changed posix mode behavior so that an error in a variable assignment
1545     preceding a special builtin causes a non-interactive shell to exit.
1546
1547 c.  Change the directory expansion portion of the completion code to not
1548     expand embedded command substitutions if the directory name appears in
1549     the file system.
1550
1551 d.  Fixed a problem that caused `bash -r' to turn on restrictions before
1552     reading the startup files.
1553
1554 e.  Fixed a problem with the default operation of the `umask' builtin.
1555
1556 2.  Changes to Readline
1557
1558 a.  Fixed a problem with readline saving the contents of the current line
1559     before beginning a non-interactive search.
1560
1561 b.  Fixed a problem with EOF detection when using rl_event_hook.
1562
1563 c.  Fixed a problem with the vi mode `p' and `P' commands ignoring numeric
1564     arguments.
1565
1566 ------------------------------------------------------------------------------
1567 This document details the changes between this version, bash-3.0-rc1,
1568 and the previous version, bash-3.0-beta1.
1569
1570 1.  Changes to Bash
1571
1572 a.  Fixed a bug that caused incorrect behavior when referecing element 0 of
1573     an array using $array, element 0 was unset, and `set -u' was enabled.
1574
1575 b.  System-specific changes for: SCO Unix 3.2, Tandem.
1576
1577 c.  Fixed a bug that caused inappropriate word splitting when a variable was
1578     expanded within a double-quoted string that also included $@.
1579
1580 d.  Fixed a bug that caused `pwd' to not display anything in physical mode
1581     when the file system had changed underneath the shell.
1582
1583 e.  Fixed a bug in the pre- and post- increment and decrement parsing in the
1584     expression evaluator that caused errors when the operands and corresponding
1585     operators were separated by whitespace.
1586
1587 f.  Fixed a bug that caused `history -p' to add an entry to the history list,
1588     counter to the documentation.  (Keeps the history expansions invoked by
1589     emacs-mode command line editing from doing that as well.)
1590
1591 g.  Fixed a bug that could cause a core dump if `cd' is asked to print out a
1592     pathname longer than PATH_MAX characters.
1593
1594 h.  Fixed a bug that caused jobs to be put into the wrong process group under
1595     some circumstances after enabling job control with `set -m'.
1596
1597 i.  `unalias' now  returns failure if no alias name arguments are supplied.
1598
1599 j.  Documented the characters not allowed to appear in an alias name.
1600
1601 k.  $* is no longer expanded as if in double quotes when it appears in the
1602     body of a here document, as the SUS seems to require.
1603
1604 l.  The `bashbug' script now uses a directory in $TMPDIR for exclusive
1605     access rather than trying to guess how the underlying OS provides for
1606     secure temporary file creation.
1607
1608 m.  Fixed a few problems with `cd' and `pwd' when asked to operate on pathnames
1609     longer than PATH_MAX characters.
1610
1611 n.  Fixed a memory leak caused when creating multiple local array variables
1612     with identical names.
1613
1614 o.  Fixed a problem with calls to getcwd() so that bash now operates better
1615     when the full pathname to the current directory is longer than PATH_MAX
1616     bytes.
1617
1618 p.  The `trap' builtin now reports an error if a single non-signal argument
1619     is specified.
1620
1621 q.  Fixed a bug that caused `umask' to not work correctly when presented
1622     with a mask of all 0s.
1623
1624 r.  When `getopts' reaches the end of options, OPTARG is unset, as POSIX
1625     appears to specify.
1626
1627 s.  Interactive mode now depends on whether or not stdin and stderr are
1628     connected to a tty; formerly it  was stdin and stdout.  POSIX requires
1629     this.
1630
1631 t.  Fixed vi-mode completion to work more as POSIX specifies (e.g., doing the
1632     right kind of filename generation).
1633
1634 2.  Changes to Readline
1635
1636 a.  Fixed a problem that could cause readline to refer to freed memory when
1637     moving between history lines while doing searches.
1638
1639 b.  Improvements to the code that expands and displays prompt strings
1640     containing multibyte characters.
1641
1642 c.  Fixed a problem with vi-mode not correctly remembering the numeric argument
1643     to the last `c'hange command for later use with `.'.
1644
1645 d.  Fixed a bug in vi-mode that caused multi-digit count arguments to work
1646     incorrectly.
1647
1648 e.  Fixed a problem in vi-mode that caused the last text modification command
1649     to not be remembered across different command lines.
1650
1651 f.  Fixed problems with changing characters and changing case at the end of
1652     the line.
1653
1654 3.  New Features in Bash
1655
1656 a.  The `jobs', `kill', and `wait' builtins now accept job control notation
1657     even if job control is not enabled.
1658
1659 b.  The historical behavior of `trap' that allows a missing `action' argument
1660     to cause each specified signal's handling to be reset to its default is
1661     now only supported when `trap' is given a single non-option argument.
1662
1663 4.  New Features in Readline
1664
1665 a.  When listing completions, directories have a `/' appended if the
1666     `mark-directories' option has been enabled.
1667
1668 ------------------------------------------------------------------------------
1669 This document details the changes between this version, bash-3.0-beta1,
1670 and the previous version, bash-3.0-alpha.
1671
1672 1.  Changes to Bash
1673
1674 a.  Fixes to build correctly when arrays are not compiled into the shell.
1675
1676 b.  Fixed command substitution to run any exit trap defined in the command
1677     substitution before returning; the exit trap is not inherited from the
1678     calling shell.
1679
1680 c.  Fixes to process group synchronization code so that every child process
1681     attempts to set the terminal's process group; fixes some synchronization
1682     problems on Linux kernels that schedule the child to always run before
1683     the parent.
1684
1685 d.  Fixed processing of octal and hex constants in printf builtin for POSIX.2
1686     compliance.
1687
1688 e.  Fixed a couple of core dumps in the pattern removal code.
1689
1690 f.  Fixes to the array subrange extraction code to deal better with sparse
1691     arrays.
1692
1693 g.  Parser errors and other errors that result in the shell exiting now cause
1694     the exit trap to be run.
1695
1696 h.  Change the command substitution completion functions to not append any
1697     closing quote, because it would be inserted a closing "`" or ")".
1698
1699 i.  Fix history initialization so assignments to $histchars made in startup
1700     files are honored.
1701
1702 j.  If an exit trap does not contain a call to `exit', the shell now uses
1703     the exit status of the last command executed before the trap as the exit
1704     status of the shell.
1705
1706 k.  The parser now prompts with $PS2 if it reads a newline while parsing a
1707     compound array assignment statement.
1708
1709 l.  When performing a compound array assignment, the parser doesn't treat
1710     words of the form [index]=value as assignments if they're the result of
1711     expansions.
1712
1713 m.  Fixed a bug that caused `return' executed in a trap command to make the
1714     shell think it was still running the trap.
1715
1716 n.  Fixed the value of errno set by the pathname canonicalization functions.
1717
1718 o.  Changed the grammar so that `time' alone on a line times a null command
1719     rather than being a syntax error.
1720
1721 p.  The pattern substitution code no longer performs quote removal on the
1722     pattern before trying to match it, as the pattern removal functions do.
1723
1724 q.  Fixed a bug that could cause core dumps when checking whether a quoted
1725     command name was being completed.
1726
1727 r.  Fixes to the pattern removal and pattern replacement expansions to deal
1728     with multibyte characters better (and faster).
1729
1730 s.  Fix to the substring expansion (${param:off[:len]}) to deal with (possibly
1731     multibyte) characters instead of raw bytes.
1732
1733 t.  Fixed a bug that caused some key bindings set in an inputrc to be ignored
1734     at shell startup.
1735
1736 u.  Fixed a bug that caused unsetting a local variable within a function to
1737     not work correctly.
1738
1739 v.  Fixed a bug that caused invalid variables to be created when using
1740     `read -a'.
1741
1742 w.  Fixed a bug that caused "$@" to expand incorrectly when used as the right
1743     hand side of a parameter expansion such as ${word:="$@"} if the first
1744     character of $IFS was not a space.
1745
1746 x.  Fixed a slight cosmetic problem when printing commands containing a
1747     `>&word' redirection.
1748
1749 y.  Fixed a problem that could cause here documents to not be created correctly
1750     if the system temporary directory did not allow writing.
1751
1752 2.  Changes to Readline
1753
1754 a.  Change to history expansion functions to treat `^' as equivalent to word
1755     one, as the documention states.
1756
1757 b.  Some changes to the display code to improve display and redisplay of
1758     multibyte characters.
1759
1760 c.  Changes to speed up the multibyte character redisplay code.
1761
1762 d.  Fixed a bug in the vi-mode `E' command that caused it to skip over the
1763     last character of a word if invoked while point was on the word's
1764     next-to-last character.
1765
1766 e.  Fixed a bug that could cause incorrect filename quoting when
1767     case-insensitive completion was enabled and the word being completed
1768     contained backslashes quoting word break characters.
1769
1770 f.  Fixed a bug in redisplay triggered when the prompt string contains
1771     invisible characters.
1772
1773 g.  Fixed some display (and other) bugs encountered in multibyte locales
1774     when a non-ascii character was the last character on a line.
1775
1776 h.  Fixed some display bugs caused by multibyte characters in prompt strings.
1777
1778 i.  Fixed a problem with history expansion caused by non-whitespace characters
1779     used as history word delimiters.
1780
1781 3.  New Features in Bash
1782
1783 a.  printf builtin understands two new escape sequences:  \" and \?.
1784
1785 b.  `echo -e' understands two new escape sequences:  \" and \?.
1786
1787 c.  The GNU `gettext' package and libintl have been integrated; the shell's
1788     messages can be translated into different languages.
1789
1790 d.  The `\W' prompt expansion now abbreviates $HOME as `~', like `\w'.
1791
1792 e.  The error message printed when bash cannot open a shell script supplied
1793     as argument 1 now includes the name of the shell, to better identify
1794     the error as coming from bash.
1795
1796 4.  New Features in Readline
1797
1798 a.  New application variable, rl_completion_quote_character, set to any
1799     quote character readline finds before it calls the application completion
1800     function.
1801
1802 b.  New application variable, rl_completion_suppress_quote, settable by an
1803     application completion function.  If set to non-zero, readline does not
1804     attempt to append a closing quote to a completed word.
1805
1806 c.  New application variable, rl_completion_found_quote, set to a non-zero
1807     value if readline determines that the word to be completed is quoted.
1808     Set before readline calls any application completion function.
1809
1810 d.  New function hook, rl_completion_word_break_hook, called when readline
1811     needs to break a line into words when completion is attempted.  Allows
1812     the word break characters to vary based on position in the line.
1813
1814 e.  New bindable command: unix-filename-rubout.  Does the same thing as
1815     unix-word-rubout, but adds `/' to the set of word delimiters.
1816
1817 ------------------------------------------------------------------------------
1818 This document details the changes between this version, bash-3.0-alpha,
1819 and the previous version, bash-2.05b-release.
1820
1821 1.  Changes to Bash
1822
1823 a.  Fixes so that the shell will compile without some of the default options
1824     defined.
1825
1826 b.  Fixed an error message that did not pass enough arguments to printf.
1827
1828 c.  Fixed a bug that caused input redirection to a builtin inside a script
1829     being read from standard input to result in the rest of the already-
1830     read and buffered script to be discarded.
1831
1832 d.  Fixed a bug that caused subshell initialization to close the file
1833     descriptor from which the shell was reading a script under certain
1834     circumstances.
1835
1836 e.  Fixed a bug that caused the shell to not advance a string pointer over
1837     a null wide character when doing string operations.
1838
1839 f.  Fixed the internal logout code so that shells that time out waiting for
1840     input (using $TMOUT) run ~/.bash_logout.
1841
1842 g.  Portability and configuration changes for: cygwin, HP/UX, GNU/FreeBSD.
1843
1844 h.  The parser no longer adds implicit double quotes to ((...)) arithmetic
1845     commands.
1846
1847 i.  The ((...)) arithmetic command evaluation code was fixed to not dump core
1848     when the expanded string is null.
1849
1850 j.  The ((...)) arithmetic command evaluation code was fixed to not perform
1851     variable assignments while expanding the expression.
1852
1853 k.  Fixed a bug that caused word splitting to be performed incorrectly when
1854     IFS is set, but null.
1855
1856 l.  Fixed a bug in brace expansion that caused a quoted `$' preceding an
1857     open brace to inhibit brace expansion.
1858
1859 m.  Fixed a bug that caused a leading `-' in the shell's name to cause it to
1860     not be recognized as a restricted shell.
1861
1862 n.  Fixed a bug in the arithmetic evaluation code that could cause longjmps
1863     to an invalid location and result in a core dump.
1864
1865 o.  Fixed a bug in the calculation of how many history lines are new in a
1866     single shell session when reading new history lines from a file with
1867     `history -n'.
1868
1869 p.  Fixed a bug in pathname canonicalization that caused the shell to dump
1870     core when presented with a pathname longer than PATH_MAX.
1871
1872 q.  Fixed the parser so that it doesn't try to compare a char variable to
1873     EOF, which fails when chars are unsigned.
1874
1875 r.  Fixed a bug in the simple command execution code that caused occasional
1876     core dumps.
1877
1878 s.  The shell does a better job of saving any partial parsing state during
1879     operations which cause a command to be executed while a line is being
1880     entered and parsed.
1881
1882 t.  The completion code now splits words more like the expansion code when
1883     $IFS is used to split.
1884
1885 u.  The locale code does a better job of recomputing the various locale
1886     variable values when LC_ALL is unset.
1887
1888 v.  The programmable completion code does a better job of dequoting expanded
1889     word lists before comparing them against the word to be matched.
1890
1891 w.  The shell no longer seg faults if the expanded value of $PS4 is null
1892     and `set -x' is enabled.
1893
1894 x.  Fixed a bug that caused core dumps when a here string expanded to NULL.
1895
1896 y.  The mail checking code now makes sure the mailbox is bigger before
1897     reporting the existence of new mail.
1898
1899 z.  The parser does not try to expand $'...' and $"..." when the appear
1900     within double quotes unless the `extquote' option has been enabled with
1901     `shopt'.  For backwards compatibility, it is enabled by default.
1902
1903 aa. Fixed a bug that caused `for x; do ...' and `select x; do ... to use
1904     $@ instead of "$@" for the implicit list of arguments.
1905
1906 bb. Fixed a bug that caused a subshell of a restricted shell (e.g., one
1907     spawned to execute a pipeline) to not exit immediately if attempting
1908     to use a command containing a slash.
1909
1910 cc. Fixed a problem with empty replacements for a pattern that doesn't match
1911     when performing ${param/word/} expansion.
1912
1913 dd. Word expansions performed while expanding redirections no longer search
1914     a command's temporary environment to expand variable values.
1915
1916 ee. Improvements to the alias expansion code when expanding subsequent words
1917     because an aliase's value ends with a space.
1918
1919 ff. `cd -' now prints the current working directory after a successful chdir
1920     even when the shell is not interactive, as the standard requires.
1921
1922 gg. The shell does a better job of ensuring a child process dies of SIGINT
1923     before resending SIGINT to itself.
1924
1925 hh. The arithmetic expansion variable assignment code now does the right
1926     thing when assigning to `special' variables like OPTIND.
1927
1928 ii. When history expansion verification is enabled, the bash readline helper
1929     functions that do history expansion on the current line don't print
1930     the results.
1931
1932 jj. Fixed bugs with multiple consecutive alias expansion when one of the
1933     expansions ends with a space.
1934
1935 kk. Fixed a problem in the programmable completion code that could cause core
1936     dumps when trying to initialize a set of possible completions from a
1937     list of variables.
1938
1939 ll. The \[ and \] escape characters are now ignored when decoding the prompt
1940     string if the shell is started with editing disabled.
1941
1942 mm. Fixed a bug that could leave extra characters in a string when doing
1943     quoted null character removal.
1944
1945 nn. Command substitution and other subshell operations no longer reset the
1946     line number (aids the bash debugger).
1947
1948 oo. Better line number management when executing simple commands, conditional
1949     commands, for commands, and select commands.
1950
1951 pp. The globbing code now uses malloc, with its better failure properties,
1952     rather than alloca().
1953
1954 qq. Fixed a bug that caused expansions like #{a[2]:=value} to create the
1955     appropriate array element instead of a variable named `a[2]'.
1956
1957 rr. Fixed a bug in the handling of a `?(...)' pattern immediately following
1958     a `*' when extglob is enabled.
1959
1960 ss. Fixed a bug that caused a `return' invoked in an exit trap when exit is
1961     invoked in a function to misbehave.
1962
1963 tt. Fixed a bug that caused CTLESC and CTLNUL characters to not be escaped
1964     by the internal shell string quoting functions.
1965
1966 uu. Fixed a bug that caused quoted null characters in an expanded word list
1967     to be inappropriately assigned to an array variable when using `read -a'.
1968
1969 vv. Fixed a bug that caused redirections accompanying a null command to persist
1970     in the current shell.
1971
1972 ww. Fixed a bug that caused the prompt to be printed when the shell was
1973     expanding a multiline alias.
1974
1975 xx. Fixed a bug that resulted in core dumps when the completion for a command
1976     changed the compspec.
1977
1978 yy. Fixed a bug that caused evaluation of programmable completions to print
1979     notifications of completed jobs.
1980
1981 zz. Bash now disables line editing when $EMACS == `t' and $TERM == `dumb'
1982     (which is what emacs shell windows do).
1983
1984 aaa. In posix mode, `kill -l' causes signal names to be displayed without
1985      a leading `SIG'.
1986
1987 bbb. Clear error flag on standard output so it doesn't persist across multiple
1988      builtin commands.
1989
1990 ccc. In posix mode, `alias' displays alias values without the leading `alias',
1991      so the output cannot be used as subsequent input.
1992
1993 ddd. In posix mode, the `trap' builtin doesn't check whether or not its
1994      first argument is a signal specification and revert the signal handling
1995      to its original disposition if it is.
1996
1997 eee. Fixed several bugs in the handling of "$*" and "${array[*]}" by the
1998      pattern substitution and removal expansions.
1999
2000 fff. Fixed several problems with the handling of ${array[@]}, ${array[*]},
2001      $@, and $* by the indirect variable expansion code.
2002
2003 ggg. Fixed a bug that did not allow `time' to be aliased.
2004
2005 hhh. Improved the mail checking code so it won't check (and possibly cause an
2006      NFS file system mount) until MAILPATH or MAIL is given a value -- there
2007      is no default if DEFAULT_MAIL_DIRECTORY is not defined at compile time.
2008      (It is computed by configure, but can be #undef'd in config-bot.h.)
2009
2010 iii. If the `chkwinsize' option is enabled, the shell checks for window size
2011      changes if a child process exits due to a signal.
2012
2013 jjj. Removed the attempts to avoid adding a slash at the end of a completed
2014      executable name if there was a directory with the same name in the
2015      current directory.
2016
2017 kkk. Fixed PATH lookup code so it treats the permission bits separately for
2018      owner, group, and other, rather than checking them all.
2019
2020 lll. Fixed the locale code to reset the parser's idea of the character class
2021      <blank>, which controls how it splits tokens, when the locale changes.
2022
2023 mmm. The shell now binds its special readline functions and key bindings only
2024      if the user's inputrc file has not already bound them.
2025
2026 nnn. The shell now reports on processes that dump core due to signals when
2027      invoked as `-c command'.
2028
2029 2.  Changes to Readline
2030
2031 a.  Fixes to avoid core dumps because of null pointer references in the
2032     multibyte character code.
2033
2034 b.  Fix to avoid infinite recursion caused by certain key combinations.
2035
2036 c.  Fixed a bug that caused the vi-mode `last command' to be set incorrectly.
2037
2038 d.  Readline no longer tries to read ahead more than one line of input, even
2039     when more is available.
2040
2041 e.  Fixed the code that adjusts the point to not mishandle null wide
2042     characters.
2043
2044 f.  Fixed a bug in the history expansion `g' modifier that caused it to skip
2045     every other match.
2046
2047 g.  Fixed a bug that caused the prompt to overwrite previous output when the
2048     output doesn't contain a newline and the locale supports multibyte
2049     characters.  This same change fixes the problem of readline redisplay
2050     slowing down dramatically as the line gets longer in multibyte locales.
2051
2052 h.  History traversal with arrow keys in vi insertion mode causes the cursor
2053     to be placed at the end of the new line, like in emacs mode.
2054
2055 i.  The locale initialization code does a better job of using the right
2056     precedence and defaulting when checking the appropriate environment
2057     variables.
2058
2059 j.  Fixed the history word tokenizer to handle <( and >( better when used as
2060     part of bash.
2061
2062 k.  The overwrite mode code received several bug fixes to improve undo.
2063
2064 l.  Many speedups to the multibyte character redisplay code.
2065
2066 m.  The callback character reading interface should not hang waiting to read
2067     keyboard input.
2068
2069 n.  Fixed a bug with redoing vi-mode `s' command.
2070
2071 o.  The code that initializes the terminal tracks changes made to the terminal
2072     special characters with stty(1) (or equivalent), so that these changes
2073     are reflected in the readline bindings.  New application-callable function
2074     to make it work:  rl_tty_unset_default_bindings().
2075
2076 p.  Fixed a bug that could cause garbage to be inserted in the buffer when
2077     changing character case in vi mode when using a multibyte locale.
2078
2079 q.  Fixed a bug in the redisplay code that caused problems on systems
2080     supporting multibyte characters when moving between history lines when the
2081     new line has more glyphs but fewer bytes.
2082
2083 r.  Undo and redo now work better after exiting vi insertion mode.
2084
2085 s.  Make sure system calls are restarted after a SIGWINCH is received using
2086     SA_RESTART.
2087
2088 t.  Improvements to the code that displays possible completions when using
2089     multibyte characters.
2090
2091 u.  Fixed a problem when parsing nested if statements in inputrc files.
2092
2093 v.  The completer now takes multibyte characters into account when looking for
2094     quoted substrings on which to perform completion.
2095
2096 w.  The history search functions now perform better bounds checking on the
2097     history list.
2098
2099 3.  New Features in Bash
2100
2101 a.  ANSI string expansion now implements the \x{hexdigits} escape.
2102
2103 b.  There is a new loadable `strftime' builtin.
2104
2105 c.  New variable, COMP_WORDBREAKS, which controls the readline completer's
2106     idea of word break characters.
2107
2108 d.  The `type' builtin no longer reports on aliases unless alias expansion
2109     will actually be performed.    
2110
2111 e.  HISTCONTROL is now a colon-separated list of values, which permits
2112     more extensibility and backwards compatibility.
2113
2114 f.  HISTCONTROL may now include the `erasedups' option, which causes all lines
2115     matching a line being added to be removed from the history list.
2116
2117 g.  `configure' has a new `--enable-multibyte' argument that permits multibyte
2118     character support to be disabled even on systems that support it.
2119
2120 h.  New variables to support the bash debugger:  BASH_ARGC, BASH_ARGV,
2121     BASH_SOURCE, BASH_LINENO, BASH_SUBSHELL, BASH_EXECUTION_STRING,
2122     BASH_COMMAND
2123
2124 i.  FUNCNAME has been changed to support the debugger: it's now an array
2125     variable.
2126
2127 j.  for, case, select, arithmetic commands now keep line number information
2128     for the debugger.
2129
2130 k.  There is a new `RETURN' trap executed when a function or sourced script
2131     returns (not inherited child processes; inherited by command substitution
2132     if function tracing is enabled and the debugger is active).
2133
2134 l.  New invocation option:  --debugger.  Enables debugging and turns on new
2135     `extdebug' shell option.
2136
2137 m.  New `functrace' and `errtrace' options to `set -o' cause DEBUG and ERR
2138     traps, respectively, to be inherited by shell functions.  Equivalent to
2139     `set -T' and `set -E' respectively.  The `functrace' option also controls
2140     whether or not the DEBUG trap is inherited by sourced scripts.
2141
2142 n.  The DEBUG trap is run before binding the variable and running the action
2143     list in a `for' command, binding the selection variable and running the
2144     query in a `select' command, and before attempting a match in a `case'
2145     command.
2146
2147 o.  New `--enable-debugger' option to `configure' to compile in the debugger
2148     support code.
2149
2150 p.  `declare -F' now prints out extra line number and source file information
2151     if the `extdebug' option is set.
2152
2153 q.  If `extdebug' is enabled, a non-zero return value from a DEBUG trap causes
2154     the next command to be skipped, and a return value of 2 while in a
2155     function or sourced script forces a `return'.
2156
2157 r.  New `caller' builtin to provide a call stack for the bash debugger.
2158
2159 s.  The DEBUG trap is run just before the first command in a function body is
2160     executed, for the debugger.
2161
2162 t.  `for', `select', and `case' command heads are printed when `set -x' is
2163     enabled.
2164
2165 u.  There is a new {x..y} brace expansion, which is shorthand for {x.x+1,
2166     x+2,...,y}.  x and y can be integers or single characters; the sequence
2167     may ascend or descend; the increment is always 1.
2168
2169 v.  New ksh93-like ${!array[@]} expansion, expands to all the keys (indices)
2170     of array.
2171
2172 w.  New `force_fignore' shopt option; if enabled, suffixes specified by
2173     FIGNORE cause words to be ignored when performing word completion even
2174     if they're the only possibilities.
2175
2176 x.  New `gnu_errfmt' shopt option; if enabled, error messages follow the `gnu
2177     style' (filename:lineno:message) format.
2178
2179 y.  New `-o bashdefault' option to complete and compgen; if set, causes the
2180     whole set of bash completions to be performed if the compspec doesn't
2181     result in a match.
2182
2183 z.  New `-o plusdirs' option to complete and compgen; if set, causes directory
2184     name completion to be performed and the results added to the rest of the
2185     possible completions.
2186
2187 aa. `kill' is available as a builtin even when the shell is built without
2188     job control.
2189
2190 bb. New HISTTIMEFORMAT variable; value is a format string to pass to
2191     strftime(3).  If set and not null, the `history' builtin prints out
2192     timestamp information according to the specified format when displaying
2193     history entries.  If set, bash tells the history library to write out
2194     timestamp information when the history file is written.
2195
2196 cc. The [[ ... ]] command has a new binary `=~' operator that performs
2197     extended regular expression (egrep-like) matching.
2198
2199 dd. `configure' has a new `--enable-cond-regexp' option (enabled by default)
2200     to enable the =~ operator and regexp matching in [[ ... ]].
2201
2202 ee. Subexpressions matched by the =~ operator are placed in the new
2203     BASH_REMATCH array variable.
2204
2205 ff. New `failglob' option that causes an expansion error when pathname
2206     expansion fails to produce a match.
2207
2208 gg. New `set -o pipefail' option that causes a pipeline to return a failure
2209     status if any of the processes in the pipeline fail, not just the last
2210     one.
2211
2212 4.  New Features in Readline
2213
2214 a.  History expansion has a new `a' modifier equivalent to the `g' modifier
2215     for compatibility with the BSD csh.
2216
2217 b.  History expansion has a new `G' modifier equivalent to the BSD csh `g'
2218     modifier, which performs a substitution once per word.
2219
2220 c.  All non-incremental search operations may now undo the operation of
2221     replacing the current line with the history line.
2222
2223 d.  The text inserted by an `a' command in vi mode can be reinserted with
2224     `.'.
2225
2226 e.  New bindable variable, `show-all-if-unmodified'.  If set, the readline
2227     completer will list possible completions immediately if there is more
2228     than one completion and partial completion cannot be performed.
2229
2230 f.  There is a new application-callable `free_history_entry()' function.
2231
2232 g.  History list entries now contain timestamp information; the history file
2233     functions know how to read and write timestamp information associated
2234     with each entry.
2235
2236 h.  Four new key binding functions have been added:
2237
2238         rl_bind_key_if_unbound()
2239         rl_bind_key_if_unbound_in_map()
2240         rl_bind_keyseq_if_unbound()
2241         rl_bind_keyseq_if_unbound_in_map()
2242
2243 ------------------------------------------------------------------------------
2244 This document details the changes between this version, bash-2.05b-release,
2245 and the previous version, bash-2.05b-beta2.
2246
2247 1.  Changes to Bash
2248
2249 a.  Fixed an off-by-one error in the function that translates job
2250     specifications.
2251
2252 b.  Note that we're running under Emacs and disable line editing if
2253     $EMACS == `t'.
2254
2255 ------------------------------------------------------------------------------
2256 This document details the changes between this version, bash-2.05b-beta2,
2257 and the previous version, bash-2.05b-beta1.
2258
2259 1.  Changes to Bash
2260
2261 a.  Fixed the /= and %= arithmetic operators to catch division by zero.
2262
2263 b.  Added putenv, setenv, unsetenv to getenv replacement for completeness.
2264
2265 c.  Fixed a bug that could cause the -O expand_aliases invocation option
2266     to not take effect.
2267
2268 d.  Fixed a problem with process substitution that resulted in incorrect
2269     behavior when the number of process substitutions in an individual
2270     command approached 64.
2271
2272 2.  Changes to Readline
2273
2274 a.  Fixed a problem with backward-char-search when on a system with support
2275     for multibyte characters when running in a locale without any multibyte
2276     characters.
2277
2278 ------------------------------------------------------------------------------
2279 This document details the changes between this version, bash-2.05b-beta1,
2280 and the previous version, bash-2.05b-alpha1.
2281
2282 1.  Changes to Bash
2283
2284 a.  Fixed a problem when parsing a POSIX.2 character class name while
2285     evaluating a bracket expression containing multibyte characters.
2286
2287 b.  Changed the help text for `bind' to make it clear that any command
2288     that may be placed in ~/.inputrc is a valid argument to `bind'.
2289
2290 c.  Added `help' builtin entries for `((', `[[', and arithmetic for.
2291
2292 d.  malloc updated again:
2293         o slightly better overflow and underflow detection by putting the
2294           chunk size at the beginning and end of the chunk and making
2295           sure they match in free/realloc
2296         o partial page allocated to make things page-aligned no longer
2297           completely wasted
2298         o block coalescing now enabled by default
2299         o splitting and coalescing enabled for 32-byte chunks, the most
2300           common size requested
2301         o fixed a problem that resulted in spurious underflow messages and
2302           aborts
2303         o bin sizes are precomputed and stored in an array rather than
2304           being computed at run time
2305         o malloc will return memory blocks back to the system if the block
2306           being freed is at the top of the heap and of sufficient size to
2307           make it worthwhile
2308         o malloc/free/realloc now inline memset instead of calling the
2309           libc function; uses Duff's device for good performance
2310
2311 e.  Check for getservent(); make the service name completion code dependent
2312     on its presence.
2313
2314 f.  Changed the readline callback that executes a command bound to a key
2315     sequence to not save the executed command on the history list and to
2316     save and restore the parsing state.
2317
2318 g.  Changes to lib/sh/snprintf.c:  fixed some bugs in the `g' and `G'
2319     floating point format display; implemented the "'" flag character
2320     that turns on thousands' grouping; fixed behavior on systems where
2321     MB_CUR_MAX does not evaluate to a constant.
2322
2323 h.  The `unset' builtin no longer returns a failure status when asked to
2324     unset a previously-unset variable or function.
2325
2326 i.  Changes to the build system to make it easier to cross-compile bash
2327     for different systems.
2328
2329 j.  Added `,' to  the characters that are backslash-escaped during filename
2330     completion, to avoid problems with complete-into-braces and RCS filenames
2331     containing commas.
2332
2333 k.  Some changes to the multibyte character support code to avoid many calls
2334     to strlen().
2335
2336 l.  Bash now correctly honors setting LANG to some value when LC_ALL does not
2337     already have a value.
2338
2339 m.  Fixed a bug that could cause SIGSEGV when processing nested traps with
2340     trap handlers.
2341
2342 n.  The `source/.' builtin now restores the positional parameters when it
2343     returns unless they were changed using the `set' builtin during the file's
2344     execution.
2345
2346 o.  Fixed a bug that caused a syntax error when a command was terminated by
2347     EOF.
2348
2349 2.  New Features in Bash
2350
2351 a.  There is now support for placing the long help text into separate files
2352     installed into ${datadir}/bash.  Not enabled by default; can be turned
2353     on with `--enable-separate-helpfiles' option to configure.
2354
2355 b.  All builtins that take operands accept a `--' pseudo-option, except
2356     `echo'.
2357
2358 c.  The `echo' builtin now accepts \0xxx (zero to three octal digits following
2359     the `0') in addition to \xxx (one to three octal digits) for SUSv3/XPG6/
2360     POSIX.1-2001 compliance.
2361
2362 3.  Changes to Readline
2363
2364 a.  Fixed a small problem in _rl_insert_char with multibyte characters.
2365
2366 b.  Fixes from IBM for line wrapping problems when using multibyte characters.
2367
2368 c.  Fixed a problem which caused the display to be messed up when the last
2369     line of a multi-line prompt (possibly containing invisible characters)
2370     was longer than the screen width.
2371
2372 d.  Fixed a problem with the vi-mode `r' command that ocurred on systems with
2373     support for multibyte characters when running in a locale without any
2374     multibyte characters.
2375
2376 ------------------------------------------------------------------------------
2377 This document details the changes between this version, bash-2.05b-alpha1,
2378 and the previous version, bash-2.05a-release.
2379
2380 1.  Changes to Bash
2381
2382 a.  Some changes to work around inlining differences between compilers.
2383
2384 b.  Added more prototypes for internal shell typedefs, to catch argument
2385     passing errors when using pointers to functions.
2386
2387 c.  The `cd' builtin now fails in posix mode when a valid directory cannot be
2388     constructed from a relative pathname argument and the $PWD using pathname
2389     canonicalization, and the -P option has not been supplied.  Previously,
2390     the shell would attempt to use what the user typed, leading to weird
2391     values for $PWD and discrepancies between the value of $PWD and the
2392     actual working directory.
2393
2394 d.  The `cd' builtin now resets $PWD when canonicalization fails but a chdir
2395     to the pathname passed as an argument succeeds (when not in posix mode).
2396
2397 e.  The `fc' builtin has been fixed, as POSIX requires, to use the closest
2398     history position in range when given an out-of-range argument.
2399
2400 f.  The history file loading code was changed to allow lines to be saved in
2401     the history list from the shell startup files.
2402
2403 g.  `history -s args' now works better in compound commands.
2404
2405 h.  The tilde expansion code was fixed to better recognize when it's being
2406     invoked in an assignment context, which enables expansion after `='
2407     and `:'.
2408
2409 i.  Fixed the command name completion code so a slash is no longer appended
2410     to a single match if there happens to be a directory with that name in
2411     $PWD.
2412
2413 j.  Fixed compound array assignment to no longer perform alias expansion, to
2414     allow reserved words as array members, and to not produce extra output
2415     when the `-v' option had been enabled.
2416
2417 k.  Fixed the programmable completion code to better handle newlines in lists
2418     of possible completions (e.g., `complete -W').
2419
2420 l.  Removed the reserved words from the `bash-builtins' manual page.
2421
2422 m.  Parser error reporting now attempts to do a better job of identifying the
2423     token in error rather than doing straight textual analysis.
2424
2425 n.  Fixes for Inf/NaN, locales, wide/multibyte characters and zero-length
2426     arguments in the library snprintf(3) replacement.
2427
2428 o.  `read -e' no longer does command name completion on the first word on
2429     the line being read.
2430
2431 p.  `select' now returns failure if the read of the user's selection fails.
2432
2433 q.  Fixed a bug that could cause a core dump when setting $PIPESTATUS.
2434
2435 r.  Fixes to not allocate so many job slots when the shell is running a loop
2436     with job control enabled in a subshell of an interactive shell.
2437
2438 s.  Fixed a bug in the trap code that caused traps to be inherited by
2439     command substitutions in some cases.
2440
2441 t.  Fixed a bug that could cause alias expansion to inappropriately expand
2442     the word following the alias.
2443
2444 u.  Fixed a bug in the `kill' builtin that mishandled negative pid arguments.
2445
2446 v.  The parser is less lenient when parsing assignment statements where the
2447     characters before the `=' don't comprise a valid identifier.
2448
2449 w.  The arithmetic expression evaluation code now honors the setting of the
2450     `-u' option when expanding variable names.
2451
2452 x.  Fixed the arithmetic evaluation code to allow array subscripts to be
2453     assigned (`let b[7]=42') and auto-incremented and auto-decremented
2454     (e.g., b[7]++).
2455
2456 y.  Reimplemented the existing prompt string date and time expansions using
2457     strftime(3), which changed the output of \@ in some locales.
2458
2459 z.  Fixed a bug that could cause a core dump when a special shell variable
2460     (like RANDOM) was converted to an array with a variable assignment.
2461
2462 aa. Fixed a bug that would reset the handler for a signal the user had
2463     trapped to a function that would exit the shell when setting the exit
2464     trap in a non-interactive shell.
2465
2466 bb. Changed the execve(2) wrapper code to check whether or not a failing
2467     command is a directory before looking at whether a `#!' interpreter
2468     failed for some reason.
2469
2470 cc. Fixed a bug in the command printing code so it no longer inserts a `;'
2471     after a newline, which produces a syntax error when reused as input.
2472
2473 dd. The code that expands $PS4 no longer inherits the `-x' flag.
2474
2475 ee. The bash-specific completion functions may now take advantage of the
2476     double-TAB and M-?  features of the standard readline completion
2477     functions.
2478
2479 ff. The mail checking code no longer prints a message if the checked file's
2480     size has not increased, even if the access time is less than the modification time.
2481
2482 gg. Rewrote the variable symbol table code: there is now a stack of
2483     contexts, each possibly including a separate symbol table; there can
2484     be more than one temporary environment supplied to nested invocations
2485     of `./source'; the temporary environments no longer require so much
2486     special-case code; shell functions now handle the temporary environment
2487     and local variables more consistently; function scope exit is faster now
2488     that the entire symbol table does not have to be traversed to dispose of
2489     local variables; it is now easier to push vars from the temporary
2490     environment to the shell's variable table in posix mode; some duplicated
2491     code has been removed.
2492
2493 hh. Regularized the error message printing code; builtin_error is now called
2494     more consistently, and common error message strings are handled by small
2495     functions.  This should make eventual message translation easier.
2496
2497 ii. Error messages now include the line number in a script when the shell
2498     is not interactive.
2499
2500 jj. Array subscript expansion now takes place even when the array variable is
2501     unset, so side effects will take place.
2502
2503 kk. Fixed a bug in the SICGHLD child-reaping code so that it won't find
2504     jobs already marked as terminated if the OS reuses pids quickly enough.
2505
2506 ll. Fixed a bug that could cause a signal to not interrupt the `wait'
2507     builtin while it was waiting for a background process to terminate.
2508
2509 mm. A couple of changes to make it easier for multiple shells to share history
2510     files using `history -n', `history -r', and `history -w'.
2511
2512 nn. The `getopts' builtin always increments OPTIND to point to the next
2513     option to be handled when an option is returned, whether it's valid
2514     or not, as POSIX 1003.x-2001 requires.
2515
2516 oo. Changed some parts of the expansion code to avoid allocating and
2517     immediately freeing memory without using the results for anything.
2518
2519 pp. The shell now keeps track of $IFS internally, updating its internal map
2520     each time the variable is assigned a new value (or at local scope exit).
2521     This saves thousands of hash lookups for IFS, which, while individually
2522     cheap, add up.
2523
2524 qq. Rewrote the hash table code:  searching and insertion are much faster now,
2525     and it uses a better string hashing function; augmented the function
2526     interface to simplify other parts of the code and remove duplicated code
2527
2528 rr. The shell now uses a simple, generic `object cache' for allocating and
2529     caching words and word lists, which were the major users of
2530     malloc/free.
2531
2532 ss. Fixed the assignment statement parsing code to allow whitespace and
2533     newlines in subscripts when performing array element assignment.
2534
2535 tt. The shell now issues many fewer calls to sigprocmask and other signal
2536     masking system calls.
2537
2538 uu. Fixed the `test' and conditional command file comparison operators to
2539     work right when one file has a non-positive timestamp and the other
2540     does not exist.
2541
2542 vv. Fixed some cases where the special characters '\001' and '\177' in the
2543     values of variables or positional parameters caused incorrect expansion
2544     results.
2545
2546 2.  Changes to Readline
2547
2548 a.  Fixed output of comment-begin character when listing variable values.
2549
2550 b.  Added some default key bindings for common escape sequences produced by
2551     HOME and END keys.
2552
2553 c.  Fixed the mark handling code to be more emacs-compatible.
2554
2555 d.  A bug was fixed in the code that prints possible completions to keep it
2556     from printing empty strings in certain circumstances.
2557
2558 e.  Change the key sequence printing code to print ESC as M\- if ESC is a
2559     meta-prefix character -- it's easier for users to understand than \e.
2560
2561 f.  Fixed unstifle_history() to return values that match the documentation.
2562
2563 g.  Fixed the event loop (rl_event_hook) to handle the case where the input
2564     file descriptor is invalidated.
2565
2566 h.  Fixed the prompt display code to work better when the application has a
2567     custom redisplay function.
2568
2569 i.  Changes to make reading and writing the history file a little faster, and
2570     to cope with huge history files without calling abort(3) from xmalloc.
2571
2572 j.  The vi-mode `S' and `s' commands are now undone correctly.
2573
2574 3.  New Features in Bash
2575
2576 a.  If set, TMOUT is the default timeout for the `read' builtin.
2577
2578 b.  `type' has two new options:  `-f' suppresses shell function lookup, and
2579     `-P' forces a $PATH search.
2580
2581 c.  New code to handle multibyte characters.
2582
2583 d.  `select' was changed to be more ksh-compatible, in that the menu is
2584     reprinted each time through the loop only if REPLY is set to NULL.
2585     The previous behavior is available as a compile-time option.
2586
2587 e.  `complete -d' and `complete -o dirnames' now force a slash to be
2588     appended to names which are symlinks to directories.
2589
2590 f.  There is now a bindable edit-and-execute-command readline command,
2591     like the vi-mode `v' command, bound to C-xC-e in emacs mode.
2592
2593 g.  Added support for ksh93-like [:word:] character class in pattern matching.
2594
2595 h.  The  $'...' quoting construct now expands \cX to Control-X.
2596
2597 i.  A new \D{...} prompt expansion; passes the `...' to strftime and inserts
2598     the result into the expanded prompt.
2599
2600 j.  The shell now performs arithmetic in the largest integer size the
2601     machine supports (intmax_t), instead of long.
2602
2603 k.  If a numeric argument is supplied to one of the bash globbing completion
2604     functions, a `*' is appended to the word before expansion is attempted.
2605
2606 l.  The bash globbing completion functions now allow completions to be listed
2607     with double tabs or if `show-all-if-ambiguous' is set.
2608
2609 m.  New `-o nospace' option for `complete' and `compgen' builtins; suppresses
2610     readline's appending a space to the completed word.
2611
2612 n.  New `here-string' redirection operator:  <<< word.
2613
2614 o.  When displaying variables, function attributes and definitions are shown
2615     separately, allowing them to be re-used as input (attempting to re-use
2616     the old output would result in syntax errors).
2617
2618 p.  There is a new configuration option `--enable-mem-scramble', controls
2619     bash malloc behavior of writing garbage characters into memory at
2620     allocation and free time.
2621
2622 q.  The `complete' and `compgen' builtins now have a new `-s/-A service'
2623     option to complete on names from /etc/services.
2624
2625 r.  `read' has a new `-u fd' option to read from a specified file descriptor.
2626
2627 s.  Fix the completion code so that expansion errors in a directory name
2628     don't cause a longjmp back to the command loop.
2629
2630 t.  Fixed word completion inside command substitution to work a little more
2631     intuitively.
2632
2633 u.  The `printf' %q format specifier now uses $'...' quoting to print the
2634     argument if it contains non-printing characters.
2635
2636 v.  The `declare' and `typeset' builtins have a new `-t' option.  When applied
2637     to functions, it causes the DEBUG trap to be inherited by the named
2638     function.  Currently has no effect on variables.
2639
2640 w.  The DEBUG trap is now run *before* simple commands, ((...)) commands,
2641     [[...]] conditional commands, and for ((...)) loops.
2642
2643 x.  The expansion of $LINENO inside a shell function is only relative to the
2644     function start if the shell is interactive -- if the shell is running a
2645     script, $LINENO expands to the line number in the script.  This is as
2646     POSIX-2001 requires.
2647
2648 y.  The bash debugger in examples/bashdb has been modified to work with the
2649     new DEBUG trap semantics, the command set has been made more gdb-like,
2650     and the changes to $LINENO make debugging functions work better.  Code
2651     from Gary Vaughan.
2652
2653 z.  New [n]<&word- and [n]>&word- redirections from ksh93 -- move fds (dup
2654     and close).
2655
2656 aa. There is a new `-l' invocation option, equivalent to `--login'.
2657
2658 bb. The `hash' builtin has a new `-l' option to list contents in a reusable
2659     format, and a `-d' option to remove a name from the hash table.
2660
2661 4.  New Features in Readline
2662
2663 a.  Support for key `subsequences':  allows, e.g., ESC and ESC-a to both
2664     be bound to readline functions.  Now the arrow keys may be used in vi
2665     insert mode.
2666
2667 b.  When listing completions, and the number of lines displayed is more than
2668     the screen length, readline uses an internal pager to display the results.
2669     This is controlled by the `page-completions' variable (default on).
2670
2671 c.  New code to handle editing and displaying multibyte characters.
2672
2673 d.  The behavior introduced in bash-2.05a of deciding whether or not to
2674     append a slash to a completed name that is a symlink to a directory has
2675     been made optional, controlled by the `mark-symlinked-directories'
2676     variable (default is the 2.05a behavior).
2677
2678 e.  The `insert-comment' command now acts as a toggle if given a numeric
2679     argument:  if the first characters on the line don't specify a
2680     comment, insert one; if they do, delete the comment text
2681
2682 f.  New application-settable completion variable:
2683     rl_completion_mark_symlink_dirs, allows an application's completion
2684     function to temporarily override the user's preference for appending
2685     slashes to names which are symlinks to directories.
2686
2687 g.  New function available to application completion functions:
2688     rl_completion_mode, to tell how the completion function was invoked
2689     and decide which argument to supply to rl_complete_internal (to list
2690     completions, etc.).
2691
2692 h.  Readline now has an overwrite mode, toggled by the `overwrite-mode'
2693     bindable command, which could be bound to `Insert'.
2694
2695 i.  New application-settable completion variable:
2696     rl_completion_suppress_append, inhibits appending of
2697     rl_completion_append_character to completed words.
2698
2699 j.  New key bindings when reading an incremental search string:  ^W yanks
2700     the currently-matched word out of the current line into the search
2701     string; ^Y yanks the rest of the current line into the search string,
2702     DEL or ^H deletes characters from the search string.
2703
2704 ------------------------------------------------------------------------------
2705 This document details the changes between this version, bash-2.05a-release,
2706 and the previous version, bash-2.05a-rc1.
2707
2708 1.  Changes to Bash
2709
2710 a.  Fixed the `printf' builtin so that the variable name supplied as an
2711     argument to a %n conversion must be a valid shell identifier.
2712
2713 b.  Improved the random number generator slightly.
2714
2715 c.  Changes to configuration to not put -I/usr/include into $CFLAGS, since
2716     it messes up some includes.
2717
2718 d.  Corrected description of POSIXLY_CORRECT in man page and info manual.
2719
2720 e.  Fixed a couple of cases of incorrect function prototypes that sneaked
2721     through and caused compilation problems.
2722
2723 f.  A few changes to avoid potential core dumps in the programmable completion
2724     code.
2725
2726 g.  Fixed a configure problem that could cause a non-existent file to show
2727     up in LIBOBJS.
2728
2729 h.  Fixed a configure problem that could cause siglist.o to not be built when
2730     required.
2731
2732 i.  Changes to the strtoimax and strtoumax replacement functions to work
2733     around buggy compilers.
2734
2735 j.  Fixed a problem with the snprintf replacement function that could
2736     potentially cause a core dump.
2737
2738 2.  Changes to Readline
2739
2740 a.  Fixed a locale-specific problem in the vi-mode `goto mark' command.
2741
2742 b.  Fixed Makefile to not put -I/usr/include into CFLAGS, since it can cause
2743     include file problems.
2744
2745 ------------------------------------------------------------------------------
2746 This document details the changes between this version, bash-2.05a-rc1,
2747 and the previous version, bash-2.05a-beta1.
2748
2749 1.  Changes to Bash
2750
2751 a.  Fixed the snprintf replacement to correctly implement the `alternate form'
2752     of the %g and %G conversions.
2753
2754 b.  Fixed snprintf to correctly handle the optional precision with the %g and
2755     %G conversions.
2756
2757 c.  Fixed the arithmetic evaluation code to correct the values of `@' and `_'
2758     when translating base-64 constants (they were backwards).
2759
2760 d.  New library functions for formatting long and long long ints.
2761
2762 e.  Fixed a few places where negative array subscripts could have occurred,
2763     mostly as the result of systems using signed characters.
2764
2765 f.  Fixed a few places that assumed a pid_t was no wider than an int.
2766
2767 g.  Fixed the `maildir' mail checking code to work on systems where a
2768     `struct stat' doesn't include an `st_blocks' member.
2769
2770 h.  Fixed snprintf to make `unsigned long long' conversion formats (%llu)
2771     work better.
2772
2773 i.  Fixed snprintf to not print a sign when asked to do an unsigned conversion.
2774
2775 j.  Made configure changes to avoid compiling empty source files in lib/sh.
2776
2777 k.  New replacement functions (if necessary) for strtoull, strtoll, strtoimax,
2778     strtoumax.
2779
2780 l.  The `printf' builtin now handles the `ll' and `j' length modifiers
2781     directly, since they can affect the type and width of the argument
2782     passed to printf(3).
2783
2784 m.  Renamed a number of the bash-specific autoconf macros in aclocal.m4 to
2785     have more sytematic naming, with accompanying changes to configure.in.
2786
2787 n.  Fixed snprintf to handle long doubles and the %a/%A conversions by
2788     falling back to sprintf, as long as sprintf supports them.
2789
2790 o.  Fixed return value from vsnprintf/snprintf to be the number of characters
2791     that would have been printed, even if that number exceeds the buffer
2792     size passed as an argument.
2793
2794 p.  Bash no longer attempts to define its own versions of some ctype macros
2795     if they are implemented as functions in libc but not as macros in
2796     <ctype.h>.
2797
2798 q.  Changed the variable printing code (used by `set', `export', etc.) to
2799     not use the $'...' syntax when in posix mode, since that caused
2800     interoperability problems with other shells (most notably with autoconf).
2801     When not in posix mode, it uses $'...' if the string to be printed
2802     contains non-printing characters and regular single quotes otherwise.
2803
2804 r.  snprintf now recognizes the %F conversion.
2805
2806 s.  Fixed a bug that could cause the wrong status to be returned by a shell
2807     function when the shell is compiled without job control and a null
2808     command containing a command substutition was executed in the function.
2809
2810 t.  When in posix mode, the default value for MAILCHECK is 600.
2811
2812 u.  Bash only initializes FUNCNAME, GROUPS, and DIRSTACK as special variables
2813     if they're not in the initial environment.
2814
2815 v.  If SECONDS appears in the initial environment with a valid integer value,
2816     bash uses that as the starting value, as if an assignment had been
2817     performed.
2818
2819 w.  Bash no longer auto-exports HOME, PATH, SHELL, or TERM, even though it
2820     gives them default values if they don't appear in the initial environment.
2821
2822 x.  Bash no longer auto-exports HOSTNAME, HOSTTYPE, MACHTYPE, or OSTYPE,
2823     even if it assigns them default values.
2824
2825 y.  Bash no longer removes the export attribute from SSH_CLIENT or SSH2_CLIENT
2826     if they appear in the initial environment.
2827
2828 z.  Bash no longer attempts to discover if it's being run by sshd in order to
2829     run the startup files.  If the SSH_SOURCE_BASHRC is uncommented in
2830     config-top.h it will attempt to do so as previously, but that's commented
2831     out in the distributed version.
2832
2833 aa. Fixed a typo in the code that tests for LC_NUMERIC.
2834
2835 bb. The POSIXLY_CORRECT shell variable and its effects are now documented.
2836
2837 cc. Some changes to several of the support shell scripts included in the
2838     definitions to try to avoid race conditions and attacks.
2839
2840 dd. Several changes to avoid warnings from `gcc -Wall'.
2841
2842 ee. Fixed a problem with the `unset' builtin that could cause incorrect
2843     results if asked to unset a variable and an array subscript in the
2844     same command.
2845
2846 ff. A few changes to the shell's temporary file creation code to avoid
2847     potential file descriptor leaks and to prefer the system's idea of
2848     the temporary directory to use.
2849
2850 gg. Fixes to build with the C alloca in lib/malloc/alloca.c if the system
2851     requires it but the shell has been configured --without-bash-malloc.
2852
2853 hh. Updated the documentation to note that only interactive shells resend
2854     SIGHUP to all jobs before exiting.
2855
2856 ii. Fixes to only pass unquoted tilde words to tilde_expand, rather than
2857     rely on tilde_expand or getpwnam(3) to handle the quotes (MacOS 10.x
2858     will remove backslashes in any login name passed to getpwnam(3)).
2859
2860 jj. Small change from Paul Eggert to make LINENO right in commands run with
2861     `bash -c'.
2862
2863 2.  New Features in Bash
2864
2865 a.  The `printf' builtin now handles the %a and %A conversions if they're
2866     implemented by printf(3).
2867
2868 b.  The `printf' builtin now handles the %F conversion (just about like %f).
2869
2870 c.  The `printf' builtin now handles the %n conversion like printf(3).  The
2871     corresponding argument is the name of a shell variable to which the
2872     value is assigned.
2873
2874 3.  Changes to Readline
2875
2876 a.  Fixed a few places where negative array subscripts could have occurred.
2877
2878 b.  Fixed the vi-mode code to use a better method to determine the bounds of
2879     the array used to hold the marks.
2880
2881 c.  Fixed the defines in chardefs.h to work better when chars are signed.
2882
2883 d.  Fixed configure.in to use the new names for bash autoconf macros.
2884
2885 e.  Readline no longer attempts to define its own versions of some ctype
2886     macros if they are implemented as functions in libc but not as macros in
2887     <ctype.h>.
2888
2889 f.  Fixed a problem where rl_backward could possibly set point to before
2890     the beginning of the line.
2891
2892 ------------------------------------------------------------------------------
2893 This document details the changes between this version, bash-2.05a-beta1,
2894 and the previous version, bash-2.05a-alpha1.
2895
2896 1.  Changes to Bash
2897
2898 a.  Fixed a bug in the evalution of arithmetic `for' statements when the
2899     expanded expression is NULL.
2900
2901 b.  Fixed an unassigned variable problem in the redirection printing code.
2902
2903 c.  Added more prototypes to extern function declarations in the header
2904     files and to static function declarations in C source files.
2905
2906 d.  Make sure called functions have a prototype in scope, to get the arguments
2907     and return values right instead of casting.  Removed extern function
2908     declarations from C source files that were already included in header
2909     files.
2910
2911 e.  Changed some function arguments to use function typedefs in general.h so
2912     the prototypes can be checked.  The only use of Function and VFunction
2913     now is for unwind-protects.
2914
2915 f.  More const changes to function arguments and appropriate variables.
2916
2917 g.  Changed the mail checking support to handle `maildir'-style mail
2918     directories.
2919
2920 h.  Augmented the bash malloc to pass in the file and line number information
2921     for each malloc, realloc, and free.  This should result in better error
2922     messages.
2923
2924 i.  The `old' gnu malloc is no longer a configuration option.
2925
2926 j.  Augmented the bash malloc with optional tracing and registering allocated
2927     and freed memory.
2928
2929 k.  Prompt string decoding now saves and restores the value of $? when it
2930     expands the prompt string, so command substitutions don't change $?.
2931
2932 i.  Array indices are now `long', since shell arithmetic is performed as long,
2933     and the internal arrayind_t type is used consistently.
2934
2935 j.  Some more `unsigned char *' fixes from Paul Eggert.
2936
2937 k.  Fixed a bad call to builtin_error that could cause core dumps when making
2938     local variables.
2939
2940 l.  `return' may no longer be used to terminate a `select' command, for
2941     compatibility with ksh.
2942
2943 m.  Changed code that reads octal numbers to do a better job of detecting
2944     overflows.
2945
2946 n.  The time formatting code no longer uses absolute indices into a buffer,
2947     because the buffer size changes depending on the size of a `time_t'.
2948
2949 o.  `umask' now prints four digits when printing in octal mode, for
2950     compatibility with other shells.
2951
2952 p.  Lots of changes to the `printf' builtin from Paul Eggert:  it handles `L'
2953     formats and long doubles better, and internal functions have been
2954     simpified where appropriate.
2955
2956 q.  Some `time_t' fixes for machines were a time_t is bigger than a long.
2957
2958 r.  Replaced some bash-specific autoconf macros with standard equivalents.
2959
2960 s.  Improvmed the code that constructs temporary filenames to make the
2961     generated names a bit more random.
2962
2963 t.  Added code that checks for ascii before calling any of the is* ctype
2964     functions.
2965
2966 u.  Changed some places where a `char' was used as an array subscript to use
2967     `unsigned char', since a `char' can be negative if it's signed by default.
2968
2969 v.  Lots of changes to the `ulimit' builtin from Paul Eggert to add support
2970     for the new POSIX-200x RLIM_SAVED_CUR and RLIM_SAVED_MAX values and
2971     simplify the code.
2972
2973 w.  `ulimit' now prints the description of a resource in any error message
2974     relating to fetching or setting that resource's limits.
2975
2976 x.  The `snprintf' replacement now computes maximum values at compile
2977     time rather than using huge constants for things like long long.
2978
2979 y.  Interactive shells now ignore `set -n'.
2980
2981 z.  Changed the malloc bookkeeping information so that it's now 8 bytes
2982     instead of 12 on most 32-bit machines (saving 4 bytes per allocation),
2983     restoring 8-byte alignment.
2984
2985 aa. The malloc error reporting code now attempts to print the file and line
2986     number of the call that caused the error.
2987
2988 bb. Changed the redirection error reporting code to catch EBADF errors and
2989     report the file descriptor number rather than the file being redirected
2990     to or from (e.g., things like `exec 4242<x' where 4242 is an out-of-range
2991     file descriptor).
2992
2993 cc. `printf', `echo -e', and the $'...' code now process only two hex digits
2994     after a `\x' escape sequence for compatibility with other shells, and
2995     the documentation was changed to note that the octal and hex escape
2996     sequences result in an eight-bit value rather than strict ASCII.
2997
2998 2.  Changes to Readline
2999
3000 a.  The completion code now attempts to do a better job of preserving the
3001     case of the word the user typed if ignoring case in completions.
3002
3003 b.  Readline defaults to not echoing the input and lets the terminal
3004     initialization code enable echoing if there is a controlling terminal.
3005
3006 c.  The key binding code now processes only two hex digits after a `\x'
3007     escape sequence, and the documentation was changed to note that the
3008     octal and hex escape sequences result in an eight-bit value rather
3009     than strict ASCII.
3010
3011 3.  New Features in Bash
3012
3013 a.  The builtin `ulimit' now takes two new non-numeric arguments:  `hard',
3014     meaning the current hard limit, and `soft', meaning the current soft
3015     limit, in addition to `unlimited'
3016
3017 b.  `ulimit' now prints the option letter associated with a particular
3018     resource when printing more than one limit.
3019
3020 c.  `ulimit' prints `hard' or `soft' when a value is not `unlimited' but is
3021     one of RLIM_SAVED_MAX or RLIM_SAVED_CUR, respectively.
3022
3023 4.  New Features in Readline
3024
3025 a.  New bindable variable `history-preserve-point'.  If set, the history
3026     code attempts to place the user at the same location on each history
3027     line retrived with previous-history or next-history.
3028
3029 ------------------------------------------------------------------------------
3030 This document details the changes between this version, bash-2.05a-alpha1,
3031 and the previous version, bash-2.05-release.
3032
3033 1.  Changes to Bash
3034
3035 a.  Better checks in the redirection code for write errors.
3036
3037 b.  bashbug now uses $TMPDIR, defaulting to /tmp, and uses mktemp(1) more
3038     portably.
3039
3040 c.  System-specific configuration changes for:  Interix, OpenBSD, FreeBSD,
3041     MacOS X.
3042
3043 d.  Some more `const' cleanups through the code.
3044
3045 e.  Fixed a typo in the /dev/fd redirection code, better checks for valid
3046     numeric fds in /dev/fd.
3047
3048 f.  Fixed many parts of the shell to handle integer overflow more gracefully
3049     and to do more stringent checks for valid numbers.
3050
3051 g.  Fixed mksignames to include config.h.
3052
3053 h.  Fixed an uninitialized variable problem that could cause the shell to core
3054     dump when replacing characters in a string.
3055
3056 i.  New mechanism for updating the patch level when official patches are
3057     released (patchlevel.h).
3058
3059 j.  configure.in changed to no longer require external files _distribution and
3060     _patchlevel.
3061
3062 k.  Fixed non-interactive shell initialization problem when bash started as
3063     `bash -i filename'.
3064
3065 l.  Fixed printf builtin conversion error handling to be POSIX.2-conformant.
3066
3067 m.  autoconf-2.52 is now used to build configure; autoconf-2.50 or newer is
3068     required.  Some of the bash-specific macros were removed, since they are
3069     now standard.
3070
3071 n.  Startup files and files read with source or `.' are no longer required to
3072     be regular files.
3073
3074 o.  Fixed core dump in builtin printf when user-supplied precision or field
3075     width is 0.
3076
3077 p.  Fixed builtin printf to treat a negative field width as a positive field
3078     width with left-justification.
3079
3080 r.  New unwind-protect implementation from Paul Eggert.
3081
3082 s.  Fixed an inadvertently-unclosed comment in the bash completion code that
3083     caused programmable completions to not add trailing slashes or spaces to
3084     completions.
3085
3086 t.  Fixed the process substitution code to cope better when stdin is closed.
3087
3088 v.  Fixes, mostly from Paul Eggert, for a few possible buffer overflows in
3089     the shell.
3090
3091 w.  Fixes from Paul Eggert to avoid most of the type casts in the shell code,
3092     and use more appropriate types for a number of variables.
3093
3094 x.  Command substition no longer inherits the DEBUG trap.
3095
3096 y.  Some fixes to the process substition code on machines without /dev/fd so
3097     that named pipes are not removed inappropriately.
3098
3099 z.  The loadable `getconf' builtin is now much more complete, and will become
3100     part of the shell in the future.
3101
3102 aa. The select command no longer terminates on a `return', so it can be used
3103     to return from an enclosing function (as ksh does it).
3104
3105 bb. Fixed the extended pattern matching code to behave better when presented
3106     with incorrectly-formed patterns.
3107
3108 cc. Some changes were made with the intent of making cross-compilation easier.
3109
3110 dd. The network code (/dev/tcp and /dev/udp redirections) uses getaddrinfo(3)
3111     if it's available, which adds support for IPv6.
3112
3113 ee. Subshells of login shells no longer source ~/.bash_logout when they exit.
3114
3115 ff. Fixes so that subshells don't exit inappropriately if the -e option has
3116     been set.
3117
3118 gg. Restricted shells no longer allow functions to be exported.
3119
3120 hh. Changes to the pattern matching code so extended pattern matching works
3121     on systems with deficient shared library implementations, like MacOS X.
3122
3123 ii. Better error messages when a script with a leading `#!interp' fails
3124     to execute because of problems with `interp'.
3125
3126 jj. Fixed `compgen' to handle the `-o default' option better.
3127
3128 kk. Fixed the job control code to force an asynchronous process's standard
3129     input to /dev/null only if job control is not active.
3130
3131 ll. Fixed a possible infinite recursion problem when `fc ""=abc' (a null
3132     pattern) is used to re-execute a previous command.
3133
3134 mm. Fixed `declare [-a] var=value' to assign VALUE to element 0 if VAR is an
3135     array variable.  Similarly for `declare [-a] var[N]=value'.  This is like
3136     ksh93.
3137
3138 nn. Fixed a bug that caused `read -a aname' to work even if ANAME had been
3139     declared readonly.
3140
3141 oo. Fixed a possible integer overflow problem when constructing names for
3142     temporary files.
3143
3144 2.  New Features in Bash
3145
3146 a.  Added support for DESTDIR installation root prefix, so you can do a
3147     `make install DESTDIR=bash-root' and do easier binary packaging.
3148
3149 b.  Added support for builtin printf "'" flag character as per latest POSIX
3150     drafts.
3151
3152 c.  Support for POSIX.2 printf(1) length specifiers `j', `t', and `z' (from
3153     ISO C99).
3154
3155 d.  New autoconf macro, RL_LIB_READLINE_VERSION, for use by other applications
3156     (bash doesn't use very much of what it returns).
3157
3158 e.  `set [-+]o nolog' is recognized as required by the latest POSIX drafts,
3159     but ignored.
3160
3161 f.  New read-only `shopt' option:  login_shell.  Set to non-zero value if the
3162     shell is a login shell.
3163
3164 g.  New `\A' prompt string escape sequence; expands to time in 24 HH:MM format.
3165
3166 h.  New `-A group/-g' option to complete and compgen; does group name
3167     completion.
3168
3169 i.  New `-t' option to `hash' to list hash values for each filename argument.
3170
3171 j.  New [-+]O invocation option to set and unset `shopt' options at startup.
3172
3173 k.  configure's `--with-installed-readline' option now takes an optional
3174     `=PATH' suffix to set the root of the tree where readline is installed
3175     to PATH.
3176
3177 l.  The ksh-like `ERR' trap has been added.  The `ERR' trap will be run
3178     whenever the shell would have exited if the -e option were enabled.
3179     It is not inherited by shell functions.
3180
3181 m.  `readonly', `export', and `declare' now print variables which have been
3182     given attributes but not set by assigning a value as just a command and
3183     a variable name (like `export foo') when listing, as the latest POSIX
3184     drafts require.
3185
3186 n.  `bashbug' now requires that the subject be changed from the default.
3187
3188 o.  configure has a new `--enable-largefile' option, like other GNU utilities.
3189
3190 p.  `for' loops now allow empty word lists after `in', like the latest POSIX
3191     drafts require.
3192
3193 3.  Changes to Readline
3194
3195 a.  More `const' and type casting fixes.
3196
3197 b.  Changed rl_message() to use vsnprintf(3) (if available) to fix buffer
3198     overflow problems.
3199
3200 c.  The completion code no longer appends a `/' or ` ' to a match when
3201     completing a symbolic link that resolves to a directory name, unless
3202     the match does not add anything to the word being completed.  This
3203     means that a tab will complete the word up to the full name, but not
3204     add anything, and a subsequent tab will add a slash.
3205
3206 d.  Fixed a trivial typo that made the vi-mode `dT' command not work.
3207
3208 e.  Fixed the tty code so that ^S and ^Q can be inserted with rl_quoted_insert.
3209
3210 f.  Fixed the tty code so that ^V works more than once.
3211
3212 g.  Changed the use of __P((...)) for function prototypes to PARAMS((...))
3213     because the use of __P in typedefs conflicted g++ and glibc.
3214
3215 4.  New Features in Readline
3216
3217 a.  Added extern declaration for rl_get_termcap to readline.h, making it a
3218     public function (it was always there, just not in readline.h).
3219
3220 b.  New #defines in readline.h:  RL_READLINE_VERSION, currently 0x0402,
3221     RL_VERSION_MAJOR, currently 4, and RL_VERSION_MINOR, currently 2.
3222
3223 c.  New readline variable:  rl_readline_version, mirrors RL_READLINE_VERSION.
3224
3225 d.  New bindable boolean readline variable:  match-hidden-files.  Controls
3226     completion of files beginning with a `.' (on Unix).  Enabled by default.
3227
3228 e.  The history expansion code now allows any character to terminate a
3229     `:first-' modifier, like csh.
3230
3231 f.  The incremental search code remembers the last search string and uses
3232     it if ^R^R is typed without a search string.
3233
3234 ------------------------------------------------------------------------------
3235 This document details the changes between this version, bash-2.05-release,
3236 and the previous version, bash-2.05-beta2.
3237
3238 1.  Changes to Bash
3239
3240 a.  Make sure we note that the first line of a multi-line command was not
3241     saved in the history if the tests for HISTCONTROL succeed, but the
3242     HISTIGNORE check fails.
3243
3244 b.  Fixed a bug in the pattern matching code that caused `[' to be treated
3245     as a special character inside a `[...]' bracket expression.
3246
3247 c.  Fixed a bug in the pattern matching code that caused `]' to terminate
3248     a bracket expression even if it was the first character after the `['
3249     (or a leading `!' or `^').
3250
3251 d.  Made a small change to report a more user-friendly error message if
3252     execve(2) fails because of an error with the interpreter in a script
3253     with a leading `#! interpreter'.
3254
3255 e.  If the OS does not support an exec(2) magic number of `#!', make sure we
3256     have a non-null interpreter name before attempting to execute it.
3257
3258 f.  Fixed a bug that caused the shell process to end up in a different
3259     process group than the controlling terminal if a job-control shell was
3260     run with `exec' in the startup files.
3261
3262 g.  When started in POSIX mode, either by `bash --posix', `bash -o posix', or
3263     `sh', $SHELLOPTS includes `posix' and POSIXLY_CORRECT is set.
3264
3265 h.  Fixed a problem that caused the `\W' prompt string escape sequence to
3266     expand to nothing when $PWD was `//'.
3267
3268 i.  The `bashbug' shell script no longer uses $(...) command substitution.
3269
3270 j.  When `set' is invoked without options in POSIX mode, it no longer prints
3271     the names and definitions of shell functions.
3272
3273 2.  Changes to Readline
3274
3275 a.  rl_set_paren_blink_timeout() is now documented.
3276
3277 b.  Corrected history.3 man page: `$' is not in the default value of
3278     history_word_delimiters.
3279
3280 c.  If a hook function assigned to rl_event_hook sets rl_done to a non-zero
3281     value, rl_read_key() now immediately returns '\n' (which is assumed to
3282     be bound to accept-line).
3283
3284 3.  New Features in Bash
3285
3286 a.  The `>&word' redirection now works in POSIX mode as it does by default,
3287     since POSIX.2 leaves it unspecified.
3288
3289 ------------------------------------------------------------------------------
3290 This document details the changes between this version, bash-2.05-beta2,
3291 and the previous version, bash-2.05-beta1.
3292
3293 1.  Changes to Bash
3294
3295 a.  Fixed a bug in the arithmetic evaluation code so that a^=b is supported.
3296
3297 b.  Fixed startup so posixly_correct is retained across subshells begun to
3298     execute scripts without a leading `#!'.
3299
3300 c.  Fixed a bug that caused $(< file) to not work in a (...) subshell.
3301
3302 d.  Added config support for Linux running on the IBM S390.
3303
3304 e.  Fixed a bug that caused bash to get its input pointer out of sync when
3305     reading commands through a pipe and running a command with standard
3306     input redirected from a file.
3307
3308 f.  Made a change so that command completion now makes about half as many
3309     stat(2) calls when searching the $PATH.
3310
3311 g.  Fixed a bug that caused variable assignments preceding `return' to not
3312     be propagated to the shell environment in POSIX mode.
3313
3314 h.  Fixed a bug with ${parameter[:]?word} -- tilde expansion was not performed
3315     on `word'.
3316
3317 i.  In POSIX mode, `break' and `continue' do not complain and return success
3318     if called when the shell is not executing a loop.
3319
3320 j.  Fixed `bash -o posix' to work the same as `bash --posix'.
3321
3322 k.  Fixed a bug where variable assignments preceding `eval' or `source/.'
3323     would not show up in the environment exported to subshells run by the
3324     commands.
3325
3326 l.  In POSIX mode, shells started to execute command substitutions inherit
3327     the value of the `-e' option from their parent shell.
3328
3329 m.  In POSIX mode, aliases are expanded even in non-interactive shells.
3330
3331 n.  Changed some of the job control messages to display the text required by
3332     POSIX.2 when the shell is in POSIX mode.
3333
3334 o.  Fixed a bug in `test' that caused it to occasionally return incorrect
3335     results when non-numeric arguments were supplied to `-t'.
3336
3337 2.  Changes to Readline
3338
3339 a.  Some changes were made to avoid gcc warnings with -Wall.
3340
3341 b.  rl_get_keymap_by_name now finds keymaps case-insensitively, so
3342     `set keymap EMACS' works.
3343
3344 c.  The history file writing and truncation functions now return a useful
3345     status on error.
3346
3347 d.  Fixed a bug that could cause applications to dereference a NULL pointer
3348     if a NULL second argument was passed to history_expand().
3349
3350 3.  New Features in Bash
3351
3352 a.  doc/readline.3 has been moved to the readline distribution.
3353
3354 4.  New Features in Readline
3355
3356 a.  New function, rl_get_screen_size (int *rows, int *columns), returns
3357     readline's idea of the screen dimensions.
3358
3359 b.  The timeout in rl_gather_tyi (readline keyboard input polling function)
3360     is now settable via a function (rl_set_keyboard_input_timeout()).
3361
3362 c.  Renamed the max_input_history variable to history_max_entries; the old
3363     variable is maintained for backwards compatibility.
3364
3365 d.  The list of characters that separate words for the history tokenizer is
3366     now settable with a variable:  history_word_delimiters.  The default
3367     value is as before.
3368
3369 ------------------------------------------------------------------------------
3370 This document details the changes between this version, bash-2.05-beta1,
3371 and the previous version, bash-2.05-alpha1.
3372
3373 1.  Changes to Bash
3374
3375 a.  Changes to allow shared library and object building on the GNU Hurd.
3376
3377 b.  Fixes to the way exported functions are placed into the environment and
3378     cached.
3379
3380 c.  The globbing library once again respects locales when processing ranges
3381     in bracket expressions while doing pattern matching.
3382
3383 d.  System-specific configuration changes for:  Tru 64, Interix
3384
3385 e.  Bashbug now uses /usr/bin/editor as one of the editing alternatives, and
3386     will use mktemp(1) or tempfile(1), if present, for temporary file creation.
3387
3388 f.  Bash no longer performs a binary file check on a script argument that's
3389     really a tty (like /dev/fd/0 or /dev/stdin).
3390
3391 g.  Fixed a bug in the execution of shell scripts that caused the effects of
3392     $BASH_ENV to be undone in some cases.
3393
3394 h.  Fixed several bugs that made `bash [-i] /dev/stdin' not work correctly.
3395
3396 i.  Several changes to the job control code to avoid some signal state
3397     manipulation.
3398
3399 j.  The Bash malloc no longer blocks signals as often, which should make it
3400     faster.
3401
3402 k.  Fixed a parsing bug that did not allow backslash to escape a single quote
3403     inside a $'...' construct.
3404
3405 l.  Fixed a bug that caused things like ${var:=$'value'} to be parsed
3406     incorrectly.  This showed up in newer versions of autoconf.
3407
3408 m.  Fixed a bug in the bash-specific readline initialization that caused
3409     key bindings to bash-specific function names appearing in .inputrc to
3410     not be honored.
3411
3412 n.  Bash now sets the file descriptor it uses to save the file descriptor
3413     opened on a shell script to close on exec.
3414
3415 o.  Fixed a bug in the prompt string decoding that caused it to misbehave
3416     when presented an octal sequence of fewer than three characters.
3417
3418 p.  Fixed the `test' builtin to return an error if `[' is supplied a single
3419     argument that is not `]'.
3420
3421 q.  Fixed a bug that caused subshells started to run executable shell scripts
3422     without a leading `#!' to incorrectly inherit an argument list preceding
3423     a shell builtin (like such a script called from a script sourced with `.',
3424     where there were variable assignments preceding the `.' command)
3425
3426 r.  Fixed a bug that caused changes to variables supplied in an assignment
3427     statement preceding a shell builtin to not be honored (like a script
3428     run with `.').
3429
3430 s.  HOSTTYPE, OSTYPE, and MACHTYPE are set only if they do not have values
3431     when the shell is started.
3432
3433 t.  Fixed a bug that caused SIGINT to kill shell scripts after the script
3434     called `wait'.
3435
3436 u.  The `fc' builtin now tries to create its temporary files in the directory
3437     named by $TMPDIR.
3438
3439 v.  Bash no longer calls any Readline functions or uses any Readline variables
3440     not declared in readline.h.
3441
3442 w.  Fixed a bug that caused some substitutions involving $@ to not be split
3443     correctly, especially expansions of the form ${paramterOPword}.
3444
3445 x.  SSH2_CLIENT is now treated like SSH_CLIENT and not auto-exported if it
3446     appears in the initial environment.
3447
3448 y.  Fixed a couple of problems with shell scripts without a leading `#!'
3449     being executed out of shell functions that could cause core dumps if
3450     such a script attempted to execute `return'.
3451
3452 z.  Fixed a problem with the `-nt' and `-ot' binary operators for the
3453     `test/[' builtin and the `[[' conditional command that caused wrong
3454     return values if one of the file arguments did not exist.
3455
3456 aa. Fixed a bug that caused non-interactive shells which had previously
3457     executed `shopt -s expand_aliases' to fail to expand aliases in a
3458     command like `(command) &'.
3459  
3460 2.  Changes to Readline
3461
3462 a.  Changes to make most (but not yet all -- there is still crlf()) of the
3463     exported readline functions declared in readline.h have an rl_ prefix.
3464
3465 b.  More `const' changes in function arguments, mostly for completion
3466     functions.
3467
3468 c.  Fixed a bug in rl_forward that could cause the point to be set to before
3469     the beginning of the line in vi mode.
3470
3471 d.  Fixed a bug in the callback read-char interface to make it work when a
3472     readline function pushes some input onto the input stream with
3473     rl_execute_next (like the incremental search functions).
3474
3475 e.  Fixed a file descriptor leak in the history file manipulation code that
3476     was tripped when attempting to truncate a non-regular file (like
3477     /dev/null).
3478
3479 f.  Some existing variables are now documented and part of the public
3480     interface (declared in readline.h):  rl_explict_arg, rl_numeric_arg,
3481     rl_editing_mode, rl_last_func.
3482
3483 g.  Renamed rltty_set_default_bindings to rl_tty_set_default_bindings and
3484     crlf to rl_crlf, so there are no public functions declared in readline.h
3485     without an `rl_' prefix.  The old functions still exist for backwards
3486     compatibility.
3487
3488 3.  New Features in Bash
3489
3490 a.  A new loadable builtin, realpath, which canonicalizes and expands symlinks
3491     in pathname arguments.
3492
3493 b.  When `set' is called without options, it prints function defintions in a
3494     way that allows them to be reused as input.  This affects `declare' and
3495     `declare -p' as well.
3496
3497 4.  New Features in Readline
3498
3499 a.  New application-callable function rl_set_prompt(const char *prompt):
3500     expands its prompt string argument and sets rl_prompt to the result.
3501
3502 b.  New application-callable function rl_set_screen_size(int rows, int cols):
3503     public method for applications to set readline's idea of the screen
3504     dimensions.
3505
3506 c.  The history example program (examples/histexamp.c) is now built as one
3507     of the examples.
3508
3509 ------------------------------------------------------------------------------
3510 This document details the changes between this version, bash-2.05-alpha1,
3511 and the previous version, bash-2.04-release.
3512
3513 1.  Changes to Bash
3514
3515 a.  A fix was made to allow newlines in compond array assignments.
3516
3517 b.  configure now checks for real-time signals with unusable values.
3518
3519 c.  Interactive shells no longer exit if a substitution fails because of an
3520     unset variable within a sourced file.
3521
3522 d.  Fixed a problem with incorrect matching of extended glob patterns when
3523     doing pattern substitution.
3524
3525 e.  `{' is now quoted by the completion code when it appears in a filename.
3526
3527 f.  Fixed an error in pattern matching that caused the matcher to not
3528     correctly skip the rest of a bracket expression after a character
3529     matched.
3530
3531 g.  Fixed a bug in the IFS word splitting code to make a non-whitespace IFS
3532     character preceded by IFS whitespace part of the current delimiter rather
3533     than generating a separate field.
3534
3535 h.  The {!prefix@} expansion now generates separate words, analogous to $@,
3536     when double-quoted.
3537
3538 i.  Command substitution now ignores NUL bytes in the command output, and the
3539     parser ignores them on input.
3540
3541 j.  A fix was made to the job control code to prevent hanging processes when
3542     the shell thinks background processes are running but the kernel returns
3543     -1/ECHILD from waitpid().
3544
3545 k.  `pwd' now prints an error message if the write fails when displaying the
3546     current directory.
3547
3548 l.  When in POSIX mode, the shell prints trap dispostions without a leading
3549     `SIG' in the signal specification.
3550
3551 m.  Fixed a parser bug that caused the current command's line count to be
3552     messed up by a compound array assignment.
3553
3554 n.  Fixed a bug in the unwind-protect code that caused bad behavior on machines
3555     where ints and pointers are not the same size.
3556
3557 o.  System-specific configure changes for:  MacOS X.
3558
3559 p.  Changes for Cygwin to translate \r\n and \r to \n and to set file
3560     descriptors used for reading input to text mode in various places.
3561
3562 q.  Fixed a bug that caused `!' to occasionally not be honored when in
3563     a (...) subshell.
3564
3565 r.  Bash no longer assumes that getcwd() will return any useful error message
3566     in the buffer passed as an argument if the call fails.
3567
3568 s.  The `source', `.', and `fc' builtins no longer check whether a file is
3569     binary before reading commands from it.
3570
3571 t.  Subshells no longer turn off job control when they exit, since that
3572     sometimes resulted in the terminal being reset to the wrong process
3573     group.
3574
3575 u.  The history code no longer tries to save the second and subsequent lines
3576     of a multi-line command if the first line was not saved.
3577
3578 v.  The history saving code now does a better job of saving blank lines in a
3579     multi-line command.
3580
3581 w.  Removed a `feature' that made `ulimit' silently translate `unlimited' to
3582     the current hard limit, which obscured some kernel error returns.
3583
3584 x.  Fixed the grammar so that `}' is recognized as a reserved word after
3585     another reserved word, rather than requiring a `;' or newline.  This
3586     means that constructs like
3587
3588         { { echo a b c ; } }
3589
3590     work as expected.
3591
3592 y.  Conditional commands ([[...]]) now perform tilde expansion on their
3593     arguments.
3594
3595 z.  Noted in the documentation that `set -a' will cause functions to be
3596     exported if they are defined after `set -a' is executed.
3597
3598 aa. When an interactive login shell starts, if $PWD and $HOME refer to the
3599     same directory but are not the same string, $PWD is set to $HOME.
3600
3601 bb. Fixed `printf' to handle invalid floating point numbers better.
3602
3603 cc. Temporary files are now created with random filenames, to improve security.
3604
3605 dd. The readline initialization code now binds the custom bash functions and
3606     key bindings after the readline defaults are set up.
3607
3608 ee. Fixed the `source' builtin to no longer overwrite a shell function's
3609     argument list, even if the sourced file changes the positional parameters.
3610
3611 ff. A bug fix was made in the expansion of `$*' in contexts where it should
3612     not be split, like assignment statements.
3613
3614 gg. Fixed a bug in the parameter substring expansion to handle conditional
3615     arithmetic expressions ( exp ? val1 : val2 ) without cutting the expression
3616     off at the wrong `:'.
3617
3618 hh. The `<>' redirection is no longer subject to the current setting of
3619     `noclobber', as POSIX.2 specifies.
3620
3621 ii. Fixed a bug in the conditional command parsing code that caused expressions
3622     in parentheses to occasionally be parsed incorrectly.
3623
3624 jj. Fixed a bug in the ((...)) arithmetic command to allow do...done or
3625     {...} to follow the )) without an intervening list terminator.
3626
3627 kk. `printf' now treats `\E' the same as `\e' when performing backslash escape
3628     expansion for the `%b' format specifier.
3629
3630 ll. When in POSIX mode, the shell no longer searches the current directory for
3631     a file to be sourced with `.' or `source' if `.' is not in $PATH.
3632
3633 mm. Interactive comments are no longer turned off when POSIX mode is disabled.
3634
3635 nn. The UID, EUID, HOSTNAME variables are not set if they are in the shell's
3636     environment when it starts up.
3637
3638 oo. Fixed a bug in the `command' builtin so the effect of a command like
3639     `command exec 4<file' is as if the `command' had been omitted.
3640
3641 pp. ${foo[@]} and ${foo[*]} now work as in ksh93 if `foo' is not an array
3642     variable.
3643
3644 qq. ${#foo[X]}, where X is 0, @, or *, now work as in ksh93 if `foo' is not
3645     an array variable.
3646
3647 rr. The shell's idea of an absolute pathname now takes into account a
3648     possible drive specification on Cygwin and other Windows systems.
3649
3650 ss. Fixed a bug which caused incorrect parsing of some multi-character
3651     constructs if they were split across input lines with backslash-newline
3652     line continuation.
3653
3654 tt. Fixed a bug that caused restricted shell mode to be set inappropriately
3655     when trying to execute a shell script without a leading `#!'.
3656
3657 uu. Shell function definitions no longer require that the body be a group
3658     command ( {...} ), as POSIX.2 requires.
3659
3660 vv. The `cd' and `pwd' builtins now process symlinks in pathnames internally
3661     and should require many fewer calls to getcwd().
3662
3663 ww. Fixed a bug that caused a pipeline's process group to be set incorrectly
3664     if one of the pipeline elements contained a command substitution.
3665
3666 xx. Fixed a bug that caused core dumps when expanding the value of HISTIGNORE.
3667
3668 yy. The output of `set' is now quoted using $'...' so invisible characters are
3669     displayed as escape sequences.
3670
3671 zz. Fixed the help text for `unset', since PATH and IFS may both be unset.
3672
3673 aaa. The shell no longer puts directory names into the command hash table.
3674
3675 bbb. Fixed a bug in `read' that caused it to occasionally free memory twice if
3676      it was interrupted after reading a large amount of data.
3677
3678 ccc. Assignment statements that attempt to assign values to readonly variables
3679      now cause the command to return an error status.
3680
3681 ddd. Fixed a bug that could cause incorrect output if a $(<file) construct was
3682      interrupted.
3683
3684 eee. GROUPS and FUNCNAME now return an error status when assignment is
3685      attempted, but may be unset (in which case they lose their special
3686      properties).  In all respects except unsetting, they are readonly.
3687
3688 fff. The string-to-integer conversion code now ignores trailing whitespace in
3689      the string, even if strtol(3) does not.
3690
3691 ggg. The tcsh magic-space function now does a better job of inserting the
3692      space close to where the point was before the history expansion, rather
3693      than just appending it.
3694
3695 hhh. Fixed a bug which caused a file sourced from an interactive shell to
3696      fill up the jobs table if it ran lots of jobs.
3697
3698 iii. Fixed a bug in the parameter pattern substitution code to avoid infinite
3699      recursion on zero-length matches.
3700
3701 2.  Changes to Readline
3702
3703 a.  When setting the terminal attributes on systems using `struct termio',
3704     readline waits for output to drain before changing the attributes.
3705
3706 b.  A fix was made to the history word tokenization code to avoid attempts to
3707     dereference a null pointer.
3708
3709 c.  Readline now defaults rl_terminal_name to $TERM if the calling application
3710     has left it unset, and tries to initialize with the resultant value.
3711
3712 d.  Instead of calling (*rl_getc_function)() directly to get input in certain
3713     places, readline now calls rl_read_key() consistently.
3714
3715 e.  Fixed a bug in the completion code that allowed a backslash to quote a
3716     single quote inside a single-quoted string.
3717
3718 f.  rl_prompt is no longer assigned directly from the argument to readline(),
3719     but uses memory allocated by readline.  This allows constant strings to
3720     be passed to readline without problems arising when the prompt processing
3721     code wants to modify the string.
3722
3723 g.  Fixed a bug that caused non-interactive history searches to return the
3724     wrong line when performing multiple searches backward for the same string.
3725
3726 h.  Many variables, function arguments, and function return values are now
3727     declared `const' where appropriate, to improve behavior when linking with
3728     C++ code.
3729
3730 i.  The control character detection code now works better on systems where
3731     `char' is unsigned by default.
3732
3733 j.  The vi-mode numeric argument is now capped at 999999, just like emacs mode.
3734
3735 k.  The Function, CPFunction, CPPFunction, and VFunction typedefs have been
3736     replaced with a set of specific prototyped typedefs, though they are
3737     still in the readline header files for backwards compatibility.
3738
3739 m.  Nearly all of the (undocumented) internal global variables in the library
3740     now have an _rl_ prefix -- there were a number that did not, like
3741     screenheight, screenwidth, alphabetic, etc.
3742
3743 n.  The ding() convenience function has been renamed to rl_ding(), though the
3744     old function is still defined for backwards compatibility.
3745
3746 o.  The completion convenience functions filename_completion_function,
3747     username_completion_function, and completion_matches now have an rl_
3748     prefix, though the old names are still defined for backwards compatibility.
3749
3750 p.  The functions shared by readline and bash (linkage is satisfied from bash
3751     when compiling with bash, and internally otherwise) now have an sh_ prefix.
3752
3753 q.  Changed the shared library creation procedure on Linux and BSD/OS 4.x so
3754     that the `soname' contains only the major version number rather than the
3755     major and minor numbers.
3756
3757 r.  Fixed a redisplay bug that occurred when the prompt spanned more than one
3758     physical line and contained invisible characters.
3759
3760 3.  New Features in Bash
3761
3762 a.  Added a new `--init-file' invocation argument as a synonym for `--rcfile',
3763     per the new GNU coding standards.
3764
3765 b.  The /dev/tcp and /dev/udp redirections now accept service names as well as
3766     port numbers.
3767
3768 c.  `complete' and `compgen' now take a `-o value' option, which controls some
3769     of the aspects of that compspec.  Valid values are:
3770
3771         default - perform bash default completion if programmable
3772                   completion produces no matches
3773         dirnames - perform directory name completion if programmable
3774                    completion produces no matches
3775         filenames - tell readline that the compspec produces filenames,
3776                     so it can do things like append slashes to
3777                     directory names and suppress trailing spaces
3778
3779 4.  New Features in Readline
3780
3781 a.  The blink timeout for paren matching is now settable by applications.
3782
3783 b.  _rl_executing_macro has been renamed to rl_executing_macro, which means
3784     it's now part of the public interface.
3785
3786 c.  Readline has a new variable, rl_readline_state, which is a bitmap that
3787     encapsulates the current state of the library; intended for use by
3788     callbacks and hook functions.
3789
3790 ------------------------------------------------------------------------------
3791 This document details the changes between this version, bash-2.04-release,
3792 and the previous version, bash-2.04-beta5.
3793
3794 1.  Changes to Bash
3795
3796 a.  Better compile-time and configure-time checks for the necessity of
3797     inet_aton().
3798
3799 b.  A bug was fixed in the expansion of "${@:-}" when there are positional
3800     parameters.
3801
3802 c.  A typo was fixed in the output of `complete'.
3803
3804 d.  The matches generated for a word by the `-W' argument to complete and
3805     compgen are now matched against the word being completed, and only
3806     matches are returned as the result.
3807
3808 e.  Some fixes were made for systems which do not restart read(2) when a
3809     signal caught by bash is received.
3810
3811 f.  A bug was fixed which caused the umask to be set to 0 when an invalid
3812     symbolic mode mask was parsed.
3813
3814 g.  Fixed a bug that could cause a core dump if a SIGCHLD was received while
3815     performing an assignment statement using command substitution.
3816
3817 h.  Changed the word splitting function for programmable completion so cases
3818     in which the cursor is between words are handled a bit better.
3819
3820 2.  Changes to Readline
3821
3822 a.  rl_funmap_names() is now documented.
3823
3824 3.  New Features in Bash
3825
3826 a.  The LC_NUMERIC variable is now treated specially, and used to set the
3827     LC_NUMERIC locale category for number formatting, e.g., when `printf'
3828     displays floating-point numbers.
3829
3830 ------------------------------------------------------------------------------
3831 This document details the changes between this version, bash-2.04-beta5,
3832 and the previous version, bash-2.04-beta4.
3833
3834 1.  Changes to Bash
3835
3836 a.  A couple of changes were made to the Makefiles for easier building on
3837     non-Unix systems.
3838
3839 b.  Fixed a bug where the current prompt would be set to $PS2 at startup.
3840
3841 c.  The shell script that tests an already-installed version was changed to
3842     remove the directory it created its test programs in at exit.
3843
3844 d.  Several changes were made to the code that tokenizes an input line for
3845     the programmable completion code.  Shell metacharacters will now appear
3846     as individual words in the word list passed to the completion functions.
3847     Some of the example completion shell functions were changed to understand
3848     redirection operators.
3849
3850 e.  A bug was fixed that, under obscure circumstances, could confuse the
3851     parser when a shell function was run by the programmable completion code.
3852
3853 f.  A bug was fixed in the ulimit builtin for systems not using getrlimit().
3854
3855 g.  The execution code now propagates the correct exit status back to the rest
3856     of the code if the return value of a subshell command was being inverted.
3857     Some new test cases for inverting return values with the `!' reserved
3858     word have been added.
3859
3860 h.  Negative exponents in the arithmetic evaluation of v**e now return an
3861     evaluation error.
3862
3863 i.  A bug that caused bash to check the wrong process in a pipeline for
3864     abnormal termination (and consequently resetting the terminal attributes)
3865     was fixed.
3866
3867 j.  Fixed a bug that caused $PS2 to be displayed after PROMPT_COMMAND was
3868     executed.
3869
3870 2.  Changes to Readline
3871
3872 1.  Fixed a bug in a C preprocessor define that caused the keypad control
3873     functions to be compiled out for all platforms except DJGPP.
3874
3875 ------------------------------------------------------------------------------
3876 This document details the changes between this version, bash-2.04-beta4,
3877 and the previous version, bash-2.04-beta3.
3878
3879 1.  Changes to Bash
3880
3881 a.  A couple of changes were made to the redirection to attempt to avoid
3882     race conditions and malicious file replacement.
3883
3884 2.  A change was made to the string evaluation code (used for command 
3885     substitution, `eval', and the `.' builtin) to fix an obscure core
3886     dump on alpha machines.
3887
3888 3.  A bug that caused $LINENO to be wrong when executing arithmetic for
3889     commands was fixed.
3890
3891 4.  A couple of memory leaks in the programmable completion code were fixed.
3892
3893 5.  A bug that could cause a core dump by freeing memory twice during a call
3894     to `eval' if `set -u' had been enabled and an undefined variable was
3895     referenced was fixed.
3896
3897 ------------------------------------------------------------------------------
3898 This document details the changes between this version, bash-2.04-beta3,
3899 and the previous version, bash-2.04-beta2.
3900
3901 1.  Changes to Bash
3902
3903 a.  Bash should run the appropriate startup files when invoked by ssh2.
3904
3905 b.  Fixed a bug in the parsing of conditional commands that could cause a
3906     core dump.
3907
3908 c.  Fixed a bug in parsing job specifications that occasionally caused
3909     core dumps when an out-of-range job was referenced.
3910
3911 d.  Fixed the `type' and `command' builtins to do better reporting of
3912     commands that are not found in $PATH or the hash table.
3913
3914 e.  Fixed a POSIX.2 compliance problem in the command builtin -- commands
3915     are supposed to be reported as full pathnames.
3916
3917 f.  The `echo' builtin now returns failure if a write error occurs.
3918
3919 g.  Fixed a bug which caused the locale to not be reset correctly when
3920     LC_ALL was unset.
3921
3922 h.  Changed description of `getopts' in man page and reference manual to make
3923     it clear that option characters may be characters other than letters.
3924
3925 i.  If the shell exits while in a function, make sure that any trap on EXIT
3926     doesn't think the function is still executing.
3927
3928 j.  Bashbug now tries harder to find a usable editor if $EDITOR is not set,
3929     rather than simply defaulting to `emacs'.
3930
3931 k.  Changes to the scripts that guess and canonicalize the system type, from
3932     the latest `automake' distribution via Debian.
3933
3934 l.  When using named pipes for process substitution, make sure the file
3935     descriptors opened for reading are set to non-blocking mode.
3936
3937 m.  Fixed a bug that caused termination of pipelines that are killed by a
3938     signal to not be reported in some cases.
3939
3940 n.  When not in literal-history mode, shell comment lines are not added to
3941     the history list.
3942
3943 o.  When running in POSIX.2 mode, bash no longer performs word splitting on
3944     the expanded value of the word supplied as the filename argument to
3945     redirection operators.
3946
3947 p.  The prompt string decoding code now backslash-quotes only characters that
3948     are special within double quotes when expanding the \w and \W escape
3949     sequences.
3950
3951 q.  Fixed a bug in the prompt decoding code that could cause a non-interactive
3952     shell to seg fault if `\u' was used in PS4 and the shell was in xtrace
3953     mode.
3954
3955 r.  Fixed a bug that caused function definitions to be printed with any
3956     redirections that should be attached to the entire function before the
3957     closing brace.
3958
3959 s.  Changed the tilde expansion code for Cygwin systems to avoid creating
3960     pathnames beginning with `//' if $HOME == `/'.
3961
3962 t.  Fixed a couple of autoconf tests to avoid creating files with fixed names
3963     in /tmp.
3964
3965 u.  The `trap' and `kill' builtins now know the names of the POSIX.1b real-
3966     time signals on systems which support them.
3967
3968 2.  Changes to Readline
3969
3970 a.  Fixed a problem with the single-quote quoting function that could cause
3971     buffer overflows.
3972
3973 b.  Fixed a bug that caused incorrect `stat characters' to be printed if
3974     the files being completed were in the root directory and visible-stats
3975     was enabled.
3976
3977 3.  New Features in Bash
3978
3979 a.  There is a new `rbash.1' manual page, from the Debian release.
3980
3981 b.  The `--enable-usg-echo-default' option to `configure' has been renamed to
3982     `--enable-xpg-echo-default'.  The old option is still there for backwards
3983     compatibility.
3984
3985 ------------------------------------------------------------------------------
3986 This document details the changes between this version, bash-2.04-beta2,
3987 and the previous version, bash-2.04-beta1.
3988
3989 1.  Changes to Bash
3990
3991 a.  Fixed a bug that could cause pipes to be closed inappropriately in
3992     some obscure cases.
3993
3994 b.  Fixed a bug that caused creation of the exported environment to clobber
3995     the current command string if there were any exported shell functions.
3996
3997 c.  Some changes were made to reduce bash's memory usage.
3998
3999 d.  Fixed a problem with programmable completion and filenames to be
4000     completed containing quote characters.
4001
4002 e.  Changed the code the removes named pipes created for the <(...) and >(...)
4003     expansions to defer removal until after any current shell function has
4004     finished executing.
4005
4006 f.  Fixed a bug in `select' which caused it to not handle the `continue'
4007     builtin correctly.
4008
4009 g.  Autoconf tests added for cygwin32 and mingw32.
4010
4011 2.  New Features in Bash
4012
4013 a.  The `--with-bash-malloc' configure option replaces `--with-gnu-malloc'
4014     (which is still there for backwards compatibility).
4015
4016 ------------------------------------------------------------------------------
4017 This document details the changes between this version, bash-2.04-beta1,
4018 and the previous version, bash-2.04-alpha1.
4019
4020 1.  Changes to Bash
4021
4022 a.  Fixed a bug in the programmable completion code that occurred when
4023     trying to complete command lines containing a `;' or `@'.
4024
4025 b.  The file descriptor from which the shell is reading a script is now
4026     moved to a file descriptor above the user-addressible range.
4027
4028 c.  Changes to `printf' so that it can handle integers beginning with 0
4029     or 0x as octal and hex, respectively.
4030
4031 d.  Fixes to the programmable completion code so it handles nonsense like
4032     `compgen -C xyz' gracefully.
4033
4034 e.  The shell no longer modifies the signal handler for SIGPROF, allowing
4035     profiling again on certain systems.
4036
4037 f.  The shell checks for a new window size, if the user has requested it,
4038     after a process exits due to a signal.
4039
4040 g.  Fixed a bug with variables with null values in a program's temporary
4041     environment and the bash getenv() replacement.
4042
4043 h.  `declare' and the other builtins that take variable assignments as
4044     arguments now honor `set -a' and mark modified variables for export.
4045
4046 i.  Some changes were made for --dump-po-strings mode when writing strings
4047     with embedded newlines.
4048
4049 j.  The code that caches export strings from the initial environment now
4050     duplicates the string rather than just pointing into the environment.
4051
4052 k.  The filename completion quoting code now uses single quotes by default
4053     if the filename being completed contains newlines, since \<newline>
4054     has a special meaning to the parser.
4055
4056 l.  Bash now uses typedefs bits32_t and u_bits32_t instead of int32_t and
4057     u_int32_t, respectively to avoid conflicts on certain Unix versions.
4058
4059 m.  Configuration changes were made for: Rhapsody, Mac OS, FreeBSD-3.x.
4060
4061 n.  Fixed a problem with hostname-to-ip-address translation in the
4062     /dev/(tcp|udp)/hostname/port redirection code.
4063
4064 o.  The texinfo manual has been reorganized slightly.
4065
4066 p.  Filename generation (globbing) range comparisons in bracket expressions
4067     no longer use strcoll(3) even if it is available, since it has unwanted
4068     effects in certain locales.
4069
4070 q.  Fixed a cosmetic problem in the source that caused the shell to not
4071     compile if DPAREN_ARITHMETIC was not defined but ARITH_FOR_COMMAND was.
4072
4073 r.  Fixed a bug in the here-document code tripped when the file descriptor
4074     opened to the file containing the text of the here document was the
4075     same as a redirector specified by the user.
4076
4077 s.  Fixed a bug where the INVERT_RETURN flag was not being set for `pipeline'
4078     in `time ! pipeline'.
4079
4080 t.  Fixed a bug with the `wait' builtin which manifested itself when an
4081     interrupt was received while the shell was waiting for asynchronous
4082     processes in a shell script.
4083
4084 u.  Fixed the DEBUG trap code so that it has the correct value of $?.
4085
4086 v.  Fixed a bug in the parameter pattern substitution code that could cause
4087     the shell to attempt to free unallocated memory if the pattern started
4088     with `/' and an expansion error occurs.
4089
4090 w.  Fixed a bug in the positional parameter substring code that could
4091     cause the shell to loop freeing freed memory.
4092
4093 x.  Fixed a bug in the positional parameter pattern substitution code so
4094     that it correctly handles null replacement strings with a pattern
4095     string prefixed with `%' or `#'.
4096
4097 y.  The shell no longer attempts to import functions from the environment if
4098     started with `-n'.
4099
4100 z.  Fixed a bug that caused `return' in a command substitution executed in
4101     a shell function to return from the function in a subshell and continue
4102     execution.
4103
4104 aa. `hash -p /pathname/with/slashes name' is no longer allowed when the shell
4105     is restricted.
4106
4107 bb. The wait* job control functions now behave better if called when there
4108     are no unwaited-for children.
4109
4110 cc. Command substitution no longer unconditionally disables job control in
4111     the subshell started to run the command.
4112
4113 dd. A bug was fixed that occasionally caused traps to mess up the parser
4114     state.
4115
4116 ee. `bashbug' now honors user headers in the mail message it sends.
4117
4118 ff. A bug was fixed that caused the `:p' history modifier to not print the
4119     history expansion if the `histverify' option was set.
4120
4121 2.  Changes to Readline
4122
4123 a.  Fixed a bug in the redisplay code for lines with more than 256 line
4124     breaks.
4125
4126 b.  A bug was fixed which caused invisible character markers to not be
4127     stripped from the prompt string if the terminal was in no-echo mode.
4128
4129 c.  Readline no longer tries to get the variables it needs for redisplay
4130     from the termcap entry if the calling application has specified its
4131     own redisplay function.  Readline treats the terminal as `dumb' in
4132     this case.
4133
4134 d.  Fixes to the SIGWINCH code so that a multiple-line prompt with escape
4135     sequences is redrawn correctly.
4136
4137 3.  New Features in Bash
4138
4139 a.  `bashbug' now accepts `--help' and `--version' options.
4140
4141 b.  There is a new `xpg_echo' option to `shopt' that controls the behavior
4142     of echo with respect to backslash-escaped characters at runtime.
4143
4144 ------------------------------------------------------------------------------
4145 This document details the changes between this version, bash-2.04-alpha1,
4146 and the previous version, bash-2.04-devel.
4147
4148 1.  Changes to Bash
4149
4150 a.  Fixed a bug that could cause core dumps when performing substring
4151     expansion.
4152
4153 b.  Shared object configuration changes for:  Solaris, OSF/1
4154
4155 c.  The POSIX_GLOB_LIBRARY code that uses the POSIX.2 globbing facilities
4156     for pathname expansion now understands GLOBIGNORE.
4157
4158 d.  The code that implements `eval' was changed to save the value of the
4159     current prompt, so an eval in a shell function called by the programmable
4160     completion code will not change the prompt to $PS2.
4161
4162 e.  Restored the undocumented NON_INTERACTIVE_LOGIN_SHELLS #define to
4163     config-top.h.  If this is defined, all login shells will read the
4164     startup files, not just interactive and non-interactive started with
4165     the `--login' option.
4166
4167 f.  Fixed a bug that caused the expansion code to occasionally dump core if
4168     IFS contained characters > 128.
4169
4170 g.  Fixed a problem with the grammar so that a newline is not required
4171     after the `))' in the new-style arithmetic for statement; a semicolon
4172     may be used as expected.
4173
4174 h.  Variable indirection may now reference the shell's special variables.
4175
4176 i.  The $'...' and $"..." constructs are now added to the history correctly
4177     if they contain newlines and command-oriented history is enabled.
4178
4179 j.  It is now an error to try to assign a value to a function-local copy
4180     of a readonly shell variable (declared with the `local' builtin).
4181
4182 2.  Changes to Readline
4183
4184 a.  The history file code now uses O_BINARY mode when reading and writing
4185     the history file on cygwin32.
4186
4187 3.  New Features in Bash
4188
4189 a.  A new programmable completion facility, with two new builtin commands:
4190     complete and compgen.
4191
4192 b.  configure has a new option, `--enable-progcomp', to compile in the
4193     programmable completion features (enabled by default).
4194
4195 c.  `shopt' has a new option, `progcomp', to enable and disable programmable
4196     completion at runtime.
4197
4198 d.  Unsetting HOSTFILE now clears the list of hostnames used for completion.
4199
4200 4.  New Features in Readline
4201
4202 a.  A new variable, rl_gnu_readline_p, always 1.  The intent is that an
4203     application can verify whether or not it is linked with the `real'
4204     readline library or some substitute.
4205
4206 ------------------------------------------------------------------------------
4207 This document details the changes between this version, bash-2.04-devel,
4208 and the previous version, bash-2.03-release.
4209
4210 1.  Changes to Bash
4211
4212 a.  System-specific configuration and source changes for:  Interix, Rhapsody
4213
4214 b.  Fixed a bug in execute_cmd.c that resulted in a compile-time error if
4215     JOB_CONTROL was not defined.
4216
4217 c.  An obscure race condition in the trap code was fixed.
4218
4219 d.  The string resulting from $'...' is now requoted to avoid any further
4220     expansion.
4221
4222 e.  The $'...' quoting syntax now allows backslash to escape a single quote,
4223     for ksh-93 compatibility.
4224
4225 f.  The $"..." quoting syntax now escapes backslashes and double quotes in
4226     the translated string when displaying them with the --dump-po-strings
4227     option.
4228
4229 g.  `echo -e' no longer converts \' to '.
4230
4231 h.  Fixes were made to the extended globbing code to handle embedded (...)
4232     patterns better.
4233
4234 i.  Some improvements were made to the code that unsets `nodelay' mode on
4235     the file descriptor from which bash is reading input.
4236
4237 j.  Some changes were made to the replacement termcap library for better
4238     operation on MS-DOS.
4239
4240 k.  Some changes were made to the tilde expansion code to handle backslash
4241     as a pathname separator on MS-DOS.
4242
4243 l.  The source has been reorganized a little bit -- there is now an `include'
4244     subdirectory, and lib/posixheaders has been removed.
4245
4246 m.  Improvements were made to the `read' builtin so that it makes many
4247     fewer read(2) system calls.
4248
4249 n.  The expansion of $- will include `c' and `s' when those options are
4250     supplied at shell invocation.
4251
4252 o.  Several improvments were made to the completion code:  variable completion
4253     now works better when there are unterminated expansions, command
4254     completion understands quotes better, and completion now works in certain
4255     unclosed $(... constructs.
4256
4257 p.  The arithmetic expansion code was fixed to not need the value of a
4258     variable being assigned a value (fixes the "ss=09; let ss=10" bug).
4259
4260 q.  Some changes were made to make exported environment creation faster.
4261
4262 r.  The html documentation will be installed into $(htmldir) if that variable
4263     has a value when `make install' is run.
4264
4265 s.  Fixed a bug that would cause the bashrc file to be sourced inappropriately
4266     when bash is started by sshd.
4267
4268 t.  The SSH_CLIENT environment variable is no longer auto-exported.
4269
4270 u.  A bug that caused redirections with (...) subshells to be performed in
4271     the wrong order was fixed.
4272
4273 v.  A bug that occasionally caused inappropriate expansion of assignment
4274     statements in compound array assignments was fixed.
4275
4276 w.  The code that parses the words in a compound array assignment was
4277     simplified considerably and should work better now.
4278
4279 x.  Fixes to the non-job-control code in nojobs.c to make it POSIX.2-compliant
4280     when a user attempts to retrieve the status of a terminated background
4281     process.
4282
4283 y.  Fixes to the `printf' builtin so that it doesn't try to expand all
4284     backslash escape sequences in the format string before parsing it for
4285     % format specifiers.
4286
4287 2.  Changes to Readline
4288
4289 a.  The history library tries to truncate the history file only if it is a
4290     regular file.
4291
4292 b.  A bug that caused _rl_dispatch to address negative array indices on
4293     systems with signed chars was fixed.
4294
4295 c.  rl-yank-nth-arg now leaves the history position the same as when it was
4296     called.
4297
4298 d.  Changes to the completion code to handle MS-DOS drive-letter:pathname
4299     filenames.
4300
4301 e.  Completion is now case-insensitive by default on MS-DOS.
4302
4303 f.  Fixes to the history file manipulation code for MS-DOS.
4304
4305 g.  Readline attempts to bind the arrow keys to appropriate defaults on MS-DOS.
4306
4307 h.  Some fixes were made to the redisplay code for better operation on MS-DOS.
4308
4309 i.  The quoted-insert code will now insert tty special chars like ^C.
4310
4311 j.  A bug was fixed that caused the display code to reference memory before
4312     the start of the prompt string.
4313
4314 k.  More support for __EMX__ (OS/2).
4315
4316 l.  A bug was fixed in readline's signal handling that could cause infinite
4317     recursion in signal handlers.
4318
4319 m.  A bug was fixed that caused the point to be less than zero when rl_forward
4320     was given a very large numeric argument.
4321
4322 n.  The vi-mode code now gets characters via the application-settable value
4323     of rl_getc_function rather than calling rl_getc directly.
4324
4325 3.  New Features in Bash
4326
4327 a.  The history builtin has a `-d offset' option to delete the history entry
4328     at position `offset'.
4329
4330 b.  The prompt expansion code has two new escape sequences: \j, the number of
4331     active jobs; and \l, the basename of the shell's tty device name.
4332
4333 c.  The `bind' builtin has a new `-x' option to bind key sequences to shell
4334     commands.
4335
4336 d.  There is a new shell option, no_empty_command_completion, which, when
4337     enabled, disables command completion when TAB is typed on an empty line.
4338
4339 e.  The `help' builtin has a `-s' option to just print a builtin's usage
4340     synopsys.
4341
4342 f.  There are several new arithmetic operators:  id++, id-- (variable
4343     post-increment/decrement), ++id, --id (variabl pre-increment/decrement),
4344     expr1 , expr2 (comma operator).
4345
4346 g.  There is a new ksh-93 style arithmetic for command:
4347         for ((expr1 ; expr2; expr3 )); do list; done
4348
4349 h.  The `read' builtin has a number of new options:
4350         -t timeout      only wait timeout seconds for input
4351         -n nchars       only read nchars from input instead of a full line
4352         -d delim        read until delim rather than newline
4353         -s              don't echo input chars as they are read
4354
4355 i.  The redirection code now handles several filenames specially:
4356     /dev/fd/N, /dev/stdin, /dev/stdout, and /dev/stderr, whether or
4357     not they are present in the file system.
4358
4359 j.  The redirection code now recognizes pathnames of the form
4360     /dev/tcp/host/port and /dev/udp/host/port, and tries to open a socket
4361     of the appropriate type to the specified port on the specified host.
4362
4363 k.  The ksh-93 ${!prefix*} expansion, which expands to the names of all
4364     shell variables whose names start with prefix, has been implemented.
4365
4366 l.  There is a new dynamic variable, FUNCNAME, which expands to the name of
4367     a currently-executing function.  Assignments to FUNCNAME have no effect.
4368
4369 m.  The GROUPS variable is no longer readonly; assignments to it are silently
4370     discarded.  This means it can be unset.
4371
4372 4.  New Features in Readline
4373
4374 a.  Parentheses matching is now always compiled into readline, and enabled
4375     or disabled when the value of the `blink-matching-paren' variable is
4376     changed.
4377
4378 b.  MS-DOS systems now use ~/_inputrc as the last-ditch inputrc filename.
4379
4380 c.  MS-DOS systems now use ~/_history as the default history file.
4381
4382 d.  history-search-{forward,backward} now leave the point at the end of the
4383     line when the string to search for is empty, like
4384     {reverse,forward}-search-history.
4385
4386 e.  history-search-{forward,backward} now leave the last history line found
4387     in the readline buffer if the second or subsequent search fails.
4388
4389 f.  New function for use by applications:  rl_on_new_line_with_prompt, used
4390     when an application displays the prompt itself before calling readline().
4391
4392 g.  New variable for use by applications:  rl_already_prompted.  An application
4393     that displays the prompt itself before calling readline() must set this to
4394     a non-zero value.
4395
4396 ------------------------------------------------------------------------------
4397 This document details the changes between this version, bash-2.03-release,
4398 and the previous version, bash-2.03-beta2.
4399
4400 1.  Changes to Bash
4401
4402 a.  A file descriptor leak in the `fc' builtin was fixed.
4403
4404 b.  A bug was fixed in the `read' builtin that caused occasional spurious
4405     failures when using `read -e'.
4406
4407 c.  The version code needed to use the value of the cpp variable
4408     CONF_MACHTYPE rather than MACHTYPE.
4409
4410 d.  A new test was added to exercise the command printing and copying code.
4411
4412 e.  A bug was fixed that caused `time' to be recognized as a reserved word
4413     if it was the first pattern in a `case' statement pattern list.
4414
4415 ------------------------------------------------------------------------------
4416 This document details the changes between this version, bash-2.03-beta2,
4417 and the previous version, bash-2.03-beta1.
4418
4419 1.  Changes to Bash
4420
4421 a.  Slight additions to support/shobj-conf, mostly for the benefit of AIX 4.2.
4422
4423 b.  config.{guess,sub} support added for the NEC SX4.
4424
4425 c.  Changed some of the cross-compiling sections of the configure macros in
4426     aclocal.m4 so that configure won't abort.
4427
4428 d.  Slight changes to how the HTML versions of the bash and readline manuals
4429     are generated.
4430
4431 e.  Fixed conditional command printing to avoid interpreting printf `%'-escapes
4432     in arguments to [[.
4433
4434 f.  Don't include the bash malloc on all variants of the alpha processor.
4435
4436 g.  Changes to configure to make --enable-profiling work on Solaris 2.x.
4437
4438 h.  Fixed a bug that manifested itself when shell functions were called
4439     between calls to `getopts'.
4440
4441 i.  Fixed pattern substitution so that a bare `#'as a pattern causes the
4442     replacement string to be prefixed to the search string, and a bare
4443     `%' causes the replacement string to be appended to the search string.
4444
4445 j.  Fixed a bug in the command execution code that caused child processes
4446     to occasionally have the wrong value for $!.
4447
4448 2.  Changes to Readline
4449
4450 a.  Added code to the history library to catch history substitutions using
4451     `&' without a previous history substitution or search having been
4452     performed.
4453
4454 3.  New Features in Bash
4455
4456 4.  New Features in Readline
4457
4458 a.  New bindable variable: `isearch-terminators'.
4459
4460 b.  New bindable function: `forward-backward-delete-char' (unbound by default).
4461
4462 ------------------------------------------------------------------------------
4463 This document details the changes between this version, bash-2.03-beta1,
4464 and the previous version, bash-2.03-alpha.
4465     
4466 1.  Changes to Bash
4467
4468 a.  A change was made to the help text for `{...}' to make it clear that a
4469     semicolon is required before the closing brace.
4470
4471 b.  A fix was made to the `test' builtin so that syntax errors cause test
4472     to return an exit status > 1.
4473
4474 c.  Globbing is no longer performed on assignment statements that appear as
4475     arguments to `assignment builtins' such as `export'.
4476
4477 d.  System-specific configuration changes were made for:  Rhapsody,
4478     AIX 4.2/gcc, BSD/OS 4.0.
4479
4480 e.  New loadable builtins: ln, unlink.
4481
4482 f.  Some fixes were made to the globbing code to handle extended glob patterns
4483     which immediately follow a `*'.
4484
4485 g.  A fix was made to the command printing code to ensure that redirections
4486     following compound commands have a space separating them from the rest
4487     of the command.
4488
4489 h.  The pathname canonicalization code was changed to produce fewer leading
4490     `//' sequences, since those are interpreted as network file system
4491     pathnames on some systems.
4492
4493 i.  A fix was made so that loops containing `eval' commands in commands passed
4494     to `bash -c' would not exit prematurely.
4495
4496 j.  Some changes were made to the job reaping code when the shell is not
4497     interactive, so the shell will retain exit statuses longer for examination
4498     by `wait'.
4499
4500 k.  A fix was made so that `jobs | command' works again.
4501
4502 l.  The erroneous compound array assignment var=((...)) is now a syntax error.
4503
4504 m.  A change was made to the dynamic loading code in `enable' to support
4505     Tenon's MachTen.
4506
4507 n.  A fix was made to the globbing code so that extended globbing patterns
4508     will correctly match `.' in a bracket expression.
4509
4510 2.  Changes to Readline
4511
4512 a.  A fix was made to the completion code in which a typo caused the wrong
4513     value to be passed to the function that computed the longest common
4514     prefix of the list of matches.
4515
4516 b.  The completion code now checks the value of rl_filename_completion_desired,
4517     which is set by application-supplied completion functions to indicate
4518     that filename completion is being performed, to decide whether or not to
4519     call an application-supplied `ignore completions' function.
4520
4521 3.  New Features in Bash
4522
4523 a.  A change was made to the startup file code so that any shell begun with
4524     the `--login' option, even non-interactive shells, will source the login
4525     shell startup files.
4526
4527 4.  New Features in Readline
4528
4529 a.  A new variable, rl_erase_empty_line, which, if set by an application using
4530     readline, will cause readline to erase, prompt and all, lines on which the
4531     only thing typed was a newline.
4532
4533 ------------------------------------------------------------------------------
4534 This document details the changes between this version, bash-2.03-alpha,
4535 and the previous version, bash-2.02.1-release.
4536
4537 1.  Changes to Bash
4538
4539 a.  System-specific configuration changes were made for: Irix 6.x, Unixware 7.
4540
4541 b.  The texi2dvi and texi2html scripts were updated to the latest versions
4542     from the net.
4543
4544 c.  The configure tests that determine which native type is 32 bits were
4545     changed to not require a compiled program.
4546
4547 d.  Fixed a bug in shell_execve that could cause memory to be freed twice
4548     after a failed exec.
4549
4550 e.  The `printf' test uses `diff -a' if it's available to prevent confusion
4551     due to the non-ascii output.
4552
4553 f.  Shared object configuration is now performed by a shell script,
4554     support/shobj-conf, which generates values to be substituted into
4555     makefiles by configure.
4556
4557 g.  Some changes were made to `ulimit' to avoid the use of RLIM_INVALID as a
4558     return value.
4559
4560 h.  Changes were made to `ulimit' to work around HPUX 9.x's peculiar
4561     handling of RLIMIT_FILESIZE.
4562
4563 i.  Some new loadable builtins were added: id, printenv, sync, whoami, push,
4564     mkdir.  `pushd', `popd', and `dirs' can now be built as regular or
4565     loadable builtins from the same source file.
4566
4567 j.  Changes were made to `printf' to handle NUL bytes in the expanded format
4568     string.
4569
4570 k.  The various `make clean' Makefile targets now descend into lib/sh.
4571
4572 l.  The `type' builtin was changed to use the internal `getopt' so that things
4573     like `type -ap' work as expected.
4574
4575 m.  There is a new configuration option, --with-installed-readline, to link
4576     bash with a locally-installed version of readline.  Only readline version
4577     4.0 and later releases can support this.  Shared and static libraries
4578     are supported.  The installed include files are used.
4579
4580 n.  There is a new autoconf macro used to find which basic type is 64 bits.
4581
4582 o.  Dynamic linking and loadable builtins should now work on SCO 3.2v5*,
4583     AIX 4.2 with gcc, Unixware 7, and many other systems using gcc, where
4584     the `-shared' options works correctly.
4585
4586 p.  A bug was fixed in the bash filename completion code that caused memory to
4587     be freed twice if a directory name containing an unset variable was
4588     completed and the -u option was set.
4589
4590 q.  The prompt expansion code now quotes the `$' in the `\$' expansion so it
4591     is not processed by subsequent parameter expansion.
4592
4593 r.  Fixed a parsing bug that caused a single or double quote after a `$$' to
4594     trigger ANSI C expansion or locale translation.
4595
4596 s.  Fixed a bug in the globbing code that caused quoted filenames containing
4597     no globbing characters to sometimes be incorrectly expanded.
4598
4599 t.  Changes to the default prompt strings if prompt string decoding is not
4600     compiled into the shell.
4601
4602 u.  Added `do', `then', `else', `{', and `(' to the list of keywords that may
4603     precede the `time' reserved word.
4604
4605 v.  The shell may now be cross-built for BeOS as well as cygwin32.
4606
4607 w.  The conditional command execution code now treats `=' the same as `=='
4608     for deciding when to perform pattern matching.
4609
4610 x.  The `-e' option no longer causes the shell to exit if a command exits
4611     with a non-zero status while running the startup files.
4612
4613 y.  The `printf' builtin no longer dumps core if a modifier is supplied in
4614     the format string without a conversion character (e.g. `%h').
4615
4616 z.  Array assignments of the form a=(...) no longer show up in the history
4617     list.
4618
4619 aa. The parser was fixed to obey the POSIX.2 rules for finding the closing
4620     `}' in a ${...} expression.
4621
4622 bb. The history file is now opened with mode 0600 rather than 0666, so bash
4623     no longer relies on the user's umask being set appropriately.
4624
4625 cc. Setting LANG no longer causes LC_ALL to be assigned a value; bash now
4626     relies on proper behavior from the C library.
4627
4628 dd. Minor changes were made to allow quoted variable expansions using
4629     ${...} to be completed correctly if there is no closing `"'.
4630
4631 ee. Changes were made to builtins/Makefile.in so that configuring the shell
4632     with `--enable-profiling' works right and builtins/mkbuiltins is
4633     generated.
4634
4635 2.  Changes to Readline
4636
4637 a.  The version number is now 4.0.
4638
4639 b.  There is no longer any #ifdef SHELL code in the source files.
4640
4641 c.  Some changes were made to the key binding code to fix memory leaks and
4642     better support Win32 systems.
4643
4644 d.  Fixed a silly typo in the paren matching code -- it's microseconds, not
4645     milliseconds.
4646
4647 e.  The readline library should be compilable by C++ compilers.
4648
4649 f.  The readline.h public header file now includes function prototypes for
4650     all readline functions, and some changes were made to fix errors in the
4651     source files uncovered by the use of prototypes.
4652
4653 g.  The maximum numeric argument is now clamped at 1000000.
4654
4655 h.  Fixes to rl_yank_last_arg to make it behave better.
4656
4657 i.  Fixed a bug in the display code that caused core dumps if the prompt
4658     string length exceeded 1024 characters.
4659
4660 j.  The menu completion code was fixed to properly insert a single completion
4661     if there is only one match.
4662
4663 k.  A bug was fixed that caused the display code to improperly display tabs
4664     after newlines.
4665
4666 3.  New Features in Bash
4667
4668 a.  New `shopt' option, `restricted_shell', indicating whether or not the
4669     shell was started in restricted mode, for use in startup files.
4670
4671 b.  Filename generation is now performed on the words between ( and ) in
4672     array assignments (which it probably should have done all along).
4673
4674 c.  OLDPWD is now auto-exported, as POSIX.2 seems to require.
4675
4676 d.  ENV and BASH_ENV are read-only variables in a restricted shell.
4677
4678 4.  New Features in Readline
4679
4680 a.  Many changes to the signal handling:
4681         o Readline now catches SIGQUIT and cleans up the tty before returning;
4682         o A new variable, rl_catch_signals, is available to application writers 
4683           to indicate to readline whether or not it should install its own
4684           signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP,
4685           SIGTTIN, and SIGTTOU;
4686         o A new variable, rl_catch_sigwinch, is available to application
4687           writers to indicate to readline whether or not it should install its
4688           own signal handler for SIGWINCH, which will chain to the calling
4689           applications's SIGWINCH handler, if one is installed;
4690         o There is a new function, rl_free_line_state, for application signal
4691           handlers to call to free up the state associated with the current
4692           line after receiving a signal;
4693         o There is a new function, rl_cleanup_after_signal, to clean up the
4694           display and terminal state after receiving a signal;
4695         o There is a new function, rl_reset_after_signal, to reinitialize the
4696           terminal and display state after an application signal handler
4697           returns and readline continues
4698
4699 b.  There is a new function, rl_resize_terminal, to reset readline's idea of
4700     the screen size after a SIGWINCH.
4701
4702 c.  New public functions: rl_save_prompt and rl_restore_prompt.  These were
4703     previously private functions with a `_' prefix.
4704
4705 d.  New function hook: rl_pre_input_hook, called just before readline starts
4706     reading input, after initialization.
4707
4708 e.  New function hook: rl_display_matches_hook, called when readline would
4709     display the list of completion matches.  The new function
4710     rl_display_match_list is what readline uses internally, and is available
4711     for use by application functions called via this hook.
4712
4713 f.  New bindable function, delete-char-or-list, like tcsh.
4714
4715 ------------------------------------------------------------------------------
4716 This document details the changes between this version, bash-2.02.1-release,
4717 and the previous version, bash-2.02-release.
4718
4719 1.  Changes to Bash
4720
4721 a.  A bug that caused the bash readline support to not compile unless aliases
4722     and csh-style history were configured into the shell was fixed.
4723
4724 b.  Fixed a bug that could cause a core dump when here documents contained
4725     more than 1000 characters.
4726
4727 c.  Fixed a bug that caused a CDPATH entry of "" to not be treated the same
4728     as the current directory when in POSIX mode.
4729
4730 d.  Fixed an alignment problem with the memory returned by the bash malloc,
4731     so returned memory is now 64-bit aligned.
4732
4733 e.  Fixed a bug that caused command substitutions executed within pipelines
4734     to put the terminal in the wrong process group.
4735
4736 f.  Fixes to support/config.sub for: alphas, SCO Open Server and Open Desktop,
4737     Unixware 2, and Unixware 7.
4738
4739 g.  Fixes to the pattern matching code to make it work correctly for eight-bit
4740     characters.
4741
4742 h.  Fixed a problem that occasionally caused the shell to display the wrong
4743     value for the new working directory when changing to a directory found
4744     in $CDPATH when in physical mode.
4745
4746 i.  Fixed a bug that caused core dumps when using conditional commands in
4747     shell functions.
4748
4749 j.  Fixed a bug that caused the printf builtin to loop forever if the format
4750     string did not consume any of the arguments.
4751
4752 k.  Fixed a bug in the parameter expansion code that caused "$@" to be
4753     incorrectly split if $IFS did not contain a space character.
4754
4755 l.  Fixed a bug that could cause a core dump when completing hostnames if
4756     the number of matching hostnames was an exact multiple of 16.
4757
4758 m.  Fixed a bug that caused the shell to fork too early when a command
4759     such as `%2 &' was given.
4760
4761 2.  Changes to Readline
4762
4763 a.  Fixed a problem with redisplay that showed up when the prompt string was
4764     longer than the screen width and the prompt contained invisible characters.
4765
4766 ------------------------------------------------------------------------------
4767 This document details the changes between this version, bash-2.02-release,
4768 and the previous version, bash-2.02-beta2.
4769
4770 1.  Changes to Bash
4771
4772 a.  A bug was fixed that caused the terminal process group to be set
4773     incorrectly when performing command substitution of builtins in a
4774     pipeline.
4775
4776 ------------------------------------------------------------------------------
4777 This document details the changes between this version, bash-2.02-beta2,
4778 and the previous version, bash-2.02-beta1.
4779
4780 1.  Changes to Bash
4781
4782 a.  Attempting to `wait' for stopped jobs now generates a warning message.
4783
4784 b.  Pipelines which exit due to SIGPIPE in non-interactive shells are now
4785     not reported if the shell is compiled -DDONT_REPORT_SIGPIPE.
4786
4787 c.  Some changes were made to builtins/psize.sh and support/bashbug.sh to
4788     attempt to avoid some /tmp file races and surreptitious file
4789     substitutions.
4790
4791 d.  Fixed a bug that caused the shell not to compile if configured with
4792     dparen arithmetic but without aliases.
4793
4794 e.  Fixed a bug that caused the input stream to be switched when assigning
4795     empty arrays with `bash -c'.
4796
4797 f.  A bug was fixed in the readline expansion glue code that caused bash to
4798     dump core when expanding lines with an unclosed single quote.
4799
4800 g.  A fix was made to the `cd' builtin so that using a non-empty directory
4801     from $CDPATH results in an absolute pathname of the new current working
4802     directory to be displayed after the current directory is changed.
4803
4804 h.  Fixed a bug in the variable assignment code that caused the shell to
4805     dump core when referencing an unset variable with `set -u' enabled in
4806     an assignment statement preceding a command.
4807
4808 i.  Fixed a bug in the exit trap code that caused reserved words to not be
4809     recognized under certain circumstances.
4810
4811 j.  Fixed a bug in the parameter pattern substitution code so that quote
4812     removal is performed.
4813
4814 k.  The shell should now configure correctly on Apple Rhapsody systems.
4815
4816 l.  The `kill' builtin now prints a usage message if it is not passed any
4817     arguments.
4818
4819 ------------------------------------------------------------------------------
4820 This document details the changes between this version, bash-2.02-beta1,
4821 and the previous version, bash-2.02-alpha1.
4822
4823 1.  Changes to Bash
4824
4825 a.  A few compilation bugs were fixed in the new extended globbing code.
4826
4827 b.  Executing arithmetic commands now sets the command name to `((' so
4828     error messages look right.
4829
4830 c.  Fixed some build problems with various configuration options.
4831
4832 d.  The `printf' builtin now aborts immediately if an illegal format
4833     character is encountered.
4834
4835 e.  The code that creates here-documents now behaves better if the file it's
4836     trying to create already exists for some reason.
4837
4838 f.  Fixed a problem with the extended globbing code that made patterns like
4839     `x+*' expand incorrectly.
4840
4841 g.  The prompt string expansion code no longer quotes tildes with backslashes.
4842
4843 h.  The bash getcwd() implementation in lib/sh/getcwd.c now behaves better in
4844     the presence of lstat(2) failures.
4845
4846 i.  Fixed a bug with strsub() that caused core dumps when executing `fc -s'.
4847
4848 j.  The mail checking code now ensures that it has a valid default mailpath.
4849
4850 k.  A bug was fixed that caused local variables to be unset inappropriately
4851     when sourcing a script from within another sourced script.
4852
4853 l.  A bug was fixed in the history saving code so that functions are saved
4854     in the history list correctly if `cmdhist' is enabled, but `lithist'
4855     is not.
4856
4857 m.  A bug was fixed that caused printf overflows when displaying error
4858     messages.
4859
4860 n.  It should be easier to build the loadble builtins in examples/loadables,
4861     though some manual editing of the generated Makefile is still required.
4862
4863 o.  The user's primary group is now always ${GROUPS[0]}.
4864
4865 p.  Some updates were made to support/config.guess from the GNU master copy.
4866
4867 q.  Some changes were made to the autoconf support for Solaris 2.6 large
4868     files.
4869
4870 r.  The `command' builtins now does the right thing when confstr(3) cannot
4871     find a value for _CS_PATH.
4872
4873 s.  Extended globbing expressions like `*.!(c)' are not history expanded if
4874     `extglob' is enabled.
4875
4876 t.  Using the `-P' option to `cd' will force the value that is assigned to
4877     PWD to not contain any symbolic links.
4878
4879 2.  Changes to Readline
4880
4881 a.  The code that prints completion listings now behaves better if one or
4882     more of the filenames contains non-printable characters.
4883
4884 b.  The time delay when showing matching parentheses is now 0.5 seconds.
4885
4886 ------------------------------------------------------------------------------
4887 This document details the changes between this version, bash-2.02-alpha1,
4888 and the previous version, bash-2.01.1-release.
4889
4890 1.  Changes to Bash
4891
4892 a.  OS-specific configuration changes for:  BSD/OS 3.x, Minix 2.x,
4893     Solaris 2.6, SINIX SVR4.
4894
4895 b.  Changes were made to the generated `info' files so that `install-info'
4896     works correctly.
4897
4898 c.  PWD is now auto-exported.
4899
4900 d.  A fix was made to the pipeline code to make sure that the shell forks
4901     to execute simple commands consisting solely of assignment statements.
4902
4903 e.  Changes to the test suite for systems with 14-character filenames.
4904
4905 f.  The default sizes of some internal hash tables have been made smaller
4906     to reduce the shell's memory footprint.
4907
4908 g.  The `((...))' arithmetic command is now executed directly instead of
4909     being translated into `let "..."'.
4910
4911 h.  Fixes were made to the expansion code so that "$*", "$@", "${array[@]}",
4912     and "${array[@]}" expand correctly when IFS does not contain a space
4913     character, is unset, or is set to NULL.
4914
4915 i.  The indirect expansion code (${!var}) was changed so that the only
4916     valid values of `var' are variable names, positional parameters, `#',
4917     `@', and `*'.
4918
4919 j.  An arithmetic expression error in a $((...)) expansion now causes a
4920     non-interactive shell running in posix mode to exit.
4921
4922 k.  Compound array assignment now splits the words within the parentheses
4923     on shell metacharacters like the parser would before expansing them
4924     and performing the assignment.  This is for compatibility with ksh-93.
4925
4926 l.  The internal shell backslash-quoting code (used in the output of `set'
4927     and completion) now quotes tildes if they appear at the start of the
4928     string or after a `=' or `:'.
4929
4930 m.  A couple of bugs with `shopt -o' were fixed.
4931
4932 n.  `bash +o' now displays the same output as `set +o' before starting an
4933     interactive shell.
4934
4935 o.  A bug that caused command substitution and the `eval' builtin to
4936     occasionally free memory twice when an error was encountered was fixed.
4937
4938 p.  The filename globbing code no longer requires read permission for a
4939     directory when the filename to be matched does not contain any globbing
4940     characters, as POSIX.2 specifies.
4941
4942 q.  A bug was fixed so that the job containing the last asynchronous
4943     process is not removed from the job table until a `wait' is executed
4944     for that process or another asynchronous process is started.  This
4945     satisfies a POSIX.2 requirement.
4946
4947 r.  A `select' bug was fixed so that a non-numeric user response is treated
4948     the same as a numeric response that is out of range.
4949
4950 s.  The shell no longer parses the value of SHELLOPTS from the environment
4951     if it is restricted, running setuid, or running in `privileged mode'.
4952
4953 t.  Fixes were made to enable large file support on systems such as
4954     Solaris 2.6, where the size of a file may be larger than can be held
4955     in an `int'.
4956
4957 u.  The filename hashing code was fixed to not add `./' to the beginning of
4958     filenames which already begin with `./'.
4959
4960 v.  The configure script was changed so that the GNU termcap library is not
4961     compiled in if `prefer-curses' has been specified.
4962
4963 w.  HISTCONTROL and HISTIGNORE are no longer applied to the second and
4964     subsequent lines of a multi-line command.
4965
4966 x.  A fix was made to `disown' so that it does a better job of catching
4967     out-of-range jobs.
4968
4969 y.  Non-interactive shells no longer report the status of processes terminated
4970     due to SIGINT, even if the standard output is a terminal.
4971
4972 z.  A bug that caused the output of `jobs' to have extra carriage returns
4973     was fixed.
4974
4975 aa. A bug that caused PIPESTATUS to not be set when builtins or shell
4976     functions were executed in the foreground was fixed.
4977
4978 bb. Bash now attempts to detect when it is being run by sshd, and treats
4979     that case identically to being run by rshd.
4980
4981 cc. A bug that caused `set -a' to export SHELLOPTS when one of the shell
4982     options was changed was fixed.
4983
4984 dd. The `kill' builtin now disallows empty or missing process id arguments
4985     instead of treating them as identical to `0', which means the current
4986     process.
4987
4988 ee. `var=value declare -x var' now behaves identically to
4989     `var=value export var'.  Similarly for `var=value declare -r var' and
4990     `var=value readonly var'.
4991
4992 ff. A few memory leaks were fixed.
4993
4994 gg. `alias' and `unalias' now print error messages when passed an argument
4995     that is not an alias for printing or deletion, even when the shell is
4996     not interactive, as POSIX.2 specifies.
4997
4998 hh. `alias' and `alias -p' now return a status of 0 when no aliases are
4999     defined, as POSIX.2 specifes.
5000
5001 ii. `cd -' now prints the pathname of the new working directory if the shell
5002     is interactive.
5003
5004 jj. A fix was made so that the code that binds $PWD now copes with getcwd()
5005     returning NULL.
5006
5007 kk. `unset' now checks whether or not a function name it's trying to unset
5008     is a valid shell identifier only when the shell is running in posix mode.
5009
5010 ll. A change was made to the code that generates filenames for here documents
5011     to make them less prone to name collisions.
5012
5013 mm. The parser was changed so that `time' is recognized as a reserved word
5014     only at the beginning of a pipeline.
5015
5016 nn. The pathname canonicalization code was changed so that `//' is converted
5017     into `/', but all other pathnames beginning with `//' are left alone, as
5018     POSIX.2 specifies.
5019
5020 oo. The `logout' builtin will no longer exit a non-interactive non-login
5021     shell.
5022
5023 2.  Changes to Readline
5024
5025 a.  Fixed a problem in the readline test program rltest.c that caused a core
5026     dump.
5027
5028 b.  The code that handles parser directives in inputrc files now displays
5029     more error messages.
5030
5031 c.  The history expansion code was fixed so that the appearance of the
5032     history comment character at the beginning of a word inhibits history
5033     expansion for that word and the rest of the input line.
5034
5035 3.  New Features in Bash
5036
5037 a.  A new version of malloc, based on the older GNU malloc, that has many
5038     changes, is more page-based, is more conservative with memory usage,
5039     and does not `orphan' large blocks when they are freed.
5040
5041 b.  A new version of gmalloc, based on the old GLIBC malloc, with many
5042     changes and range checking included by default.
5043
5044 c.  A new implementation of fnmatch(3) that includes full POSIX.2 Basic
5045     Regular Expression matching, including character classes, collating
5046     symbols, equivalence classes, and support for case-insensitive pattern
5047     matching.
5048
5049 d.  ksh-88 egrep-style extended pattern matching ([@+*?!](patlist)) has been
5050     implemented, controlled by a new `shopt' option, `extglob'.
5051
5052 e.  There is a new ksh-like `[[' compound command, which implements
5053     extended `test' functionality.
5054
5055 f.  There is a new `printf' builtin, implemented according to the POSIX.2
5056     specification.
5057
5058 g.  There is a new feature for command substitution: $(< filename) now expands
5059     to the contents of `filename', with any trailing newlines removed
5060     (equivalent to $(cat filename)).
5061
5062 h.  There are new tilde prefixes which expand to directories from the
5063     directory stack.
5064
5065 i.  There is a new `**' arithmetic operator to do exponentiation.
5066
5067 j.  There are new configuration options to control how bash is linked:
5068     `--enable-profiling', to allow bash to be profiled with gprof, and
5069     `--enable-static-link', to allow bash to be linked statically.
5070
5071 k.  There is a new configuration option, `--enable-cond-command', which
5072     controls whether or not the `[[' command is included.  It is on by
5073     default.
5074
5075 l.  There is a new configuration option, `--enable-extended-glob', which
5076     controls whether or not the ksh extended globbing feature is included.
5077     It is enabled by default.
5078
5079 m.  There is a new configuration #define in config.h.top that, when enabled,
5080     will cause all login shells to source /etc/profile and one of the user-
5081     specific login shell startup files, whether or not the shell is
5082     interactive.
5083
5084 n.  There is a new invocation option, `--dump-po-strings', to dump
5085     a shell script's translatable strings ($"...") in GNU `po' format.
5086
5087 o.  There is a new `shopt' option, `nocaseglob', to enable case-insensitive
5088     pattern matching when globbing filenames and using the `case' construct.
5089
5090 p.  There is a new `shopt' option, `huponexit', which, when enabled, causes
5091     the shell to send SIGHUP to all jobs when an interactive login shell
5092     exits.
5093
5094 q.  `bind' has a new `-u' option, which takes a readline function name as an
5095     argument and unbinds all key sequences bound to that function in a
5096     specified keymap.
5097
5098 r.  `disown' now has `-a' and `-r' options, to limit operation to all jobs
5099     and running jobs, respectively.
5100
5101 s.  The `shopt' `-p' option now causes output to be displayed in a reusable
5102     format.
5103
5104 t.  `test' has a new `-N' option, which returns true if the filename argument
5105     has been modified since it was last accessed.
5106
5107 u.  `umask' now has a `-p' option to print output in a reusable format.
5108
5109 v.  A new escape sequence, `\xNNN', has been added to the `echo -e' and $'...'
5110     translation code.  It expands to the character whose ascii code is NNN
5111     in hexadecimal.
5112
5113 w.  The prompt string expansion code has a new `\r' escape sequence.
5114
5115 x.  The shell may now be cross-compiled for the CYGWIN32 environment on
5116     a Unix machine.
5117
5118 4.  New Features in Readline
5119
5120 a.  There is now an option for `iterative' yank-last-arg handline, so a user
5121     can keep entering `M-.', yanking the last argument of successive history
5122     lines.
5123
5124 b.  New variable, `print-completions-horizontally', which causes completion
5125     matches to be displayed across the screen (like `ls -x') rather than up
5126     and down the screen (like `ls').
5127
5128 c.  New variable, `completion-ignore-case', which causes filename completion
5129     and matching to be performed case-insensitively.
5130
5131 d.  There is a new bindable command, `magic-space', which causes history
5132     expansion to be performed on the current readline buffer and a space to
5133     be inserted into the result.
5134
5135 e.  There is a new bindable command, `menu-complete', which enables tcsh-like
5136     menu completion (successive executions of menu-complete insert a single
5137     completion match, cycling through the list of possible completions).
5138
5139 f.  There is a new bindable command, `paste-from-clipboard', for use on Win32
5140     systems, to insert the text from the Win32 clipboard into the editing
5141     buffer.
5142
5143 g.  The key sequence translation code now understands printf-style backslash
5144     escape sequences, including \NNN octal escapes.  These escape sequences
5145     may be used in key sequence definitions or macro values.
5146
5147 h.  An `$include' inputrc file parser directive has been added.
5148
5149 ------------------------------------------------------------------------------
5150 This document details the changes between this version, bash-2.01.1-release,
5151 and the previous version, bash-2.01-release.
5152
5153 1.  Changes to Bash
5154
5155 a.  The select command was fixed to check the validity of the user's
5156     input more strenuously.
5157
5158 b.  A bug was fixed that prevented `time' from timing commands correctly
5159     when supplied as an argument to `bash -c'.
5160
5161 c.  A fix was made to the mail checking code to keep from adding the same
5162     mail file to the list of files to check multiple times when parsing
5163     $MAILPATH.
5164
5165 d.  Fixed an off-by-one error in the tilde expansion library.
5166
5167 e.  When using the compound array assignment syntax, the old value of
5168     the array is cleared before assigning the new value.
5169
5170 f.  Fixed a bug that could cause a core dump when a trap handler was reset
5171     to the default in the trap command associated with that signal.
5172
5173 g.  Fixed a bug in the locale code that occurred when assigning a value
5174     to LC_ALL.
5175
5176 h.  A change was made to the parser so that words of the form xxx=(...)
5177     are not considered compound assignment statements unless there are
5178     characters before the `='.
5179
5180 i.  A fix was made to the command tracing code to correctly quote each
5181     word of output.
5182
5183 j.  Some changes were made to the bash-specific autoconf tests to make them
5184     more portable.
5185
5186 k.  Completion of words with globbing characters now correctly quotes the
5187     result.
5188
5189 l.  The directory /var/spool/mail is now preferred to /usr/spool/mail when
5190     configure is deciding on the default mail directory.
5191
5192 m.  The brace completion code was fixed to not quote the `{' and `}'.
5193
5194 n.  Some fixes were made to make $RANDOM more random in subshells.
5195
5196 o.  System-specific changes were made to configure for: SVR4.2
5197
5198 p.  Changes were made so that completion of words containing globbing chars
5199     substitutes the result only if a single filename was matched.
5200
5201 q.  The window size is now recomputed after a job is stopped with SIGTSTP if
5202     the user has set `checkwinsize' with `shopt'.
5203
5204 r.  When doing substring expansion, out-of-range substring specifiers now
5205     cause nothing to be substituted rather than an expansion error.
5206
5207 s.  A fix was made so that you can no longer trap `SIGEXIT' or `SIGDEBUG' --
5208     only `EXIT' and `DEBUG' are accepted.
5209
5210 t.  The display of trapped signals now uses the signal number if signals
5211     for which bash does not know the name are trapped.
5212
5213 u.  A fix was made so that `bash -r' does not turn on restricted mode until
5214     after the startup files are executed.
5215
5216 v.  A bug was fixed that occasionally caused a core dump when a variable
5217     found in the temporary environment of export/declare/readonly had a
5218     null value.
5219
5220 w.  A bug that occasionally caused unallocated memory to be passed to free()
5221     when doing arithmetic substitution was fixed.
5222
5223 x.  A bug that caused a buffer overrun when expanding a prompt string
5224     containing `\w' and ${#PWD} exceeded PATH_MAX was fixed.
5225
5226 y.  A problem with the completion code that occasionally caused it to
5227     refer to a character before the beginning of the readline line buffer
5228     was fixed.
5229
5230 z.  A bug was fixed so that the `read' builtin restarts reads when
5231     interrupted by signals other than SIGINT.
5232
5233 aa. Fixed a bug that caused a command to be freed twice when there was
5234     an evaluation error in the `eval' command.
5235
5236 2.  Changes to Readline
5237
5238 a.  Added a missing `extern' to a declaration in readline.h that kept
5239     readline from compiling cleanly on some systems.
5240
5241 b.  The history file is now opened with mode 0600 when it is written for
5242     better security.
5243
5244 c.  Changes were made to the SIGWINCH handling code so that prompt redisplay
5245     is done better.
5246
5247 d.  ^G now interrupts incremental searches correctly.
5248
5249 e.  A bug that caused a core dump when the set of characters to be quoted
5250     when completing words was empty was fixed.
5251
5252 ------------------------------------------------------------------------------
5253 This document details the changes between this version, bash-2.01-release,
5254 and the previous version, bash-2.01-beta2.
5255
5256 1.  Changes to Bash
5257
5258 a.  The `distclean' target should remove the `printenv' executable if it
5259     has been created.
5260
5261 b.  The test suite was changed slightly to ensure that the error messages
5262     are printed in English.
5263
5264 c.  A bug that caused the shell to dump core when a filename containing a
5265     `/' was passed to `hash' was fixed.
5266
5267 d.  Pathname canonicalization now leaves a leading `//' intact, as POSIX.1
5268     requires.
5269
5270 e.  A memory leak when completing commands was fixed.
5271
5272 f.  A memory leak that occurred when checking the hash table for commands
5273     with relative paths was fixed.
5274
5275 ------------------------------------------------------------------------------
5276 This document details the changes between this version, bash-2.01-beta2,
5277 and the previous version, bash-2.01-beta1.
5278
5279 1.  Changes to Bash
5280
5281 a.  The `ulimit' builtin translates RLIM_INFINITY to the hard limit only if
5282     the current (soft) limit is less than or equal to the hard limit.
5283
5284 b.  Fixed a bug that caused the bash emulation of strcasecmp to produce
5285     incorrect results.
5286
5287 c.  A bug that caused memory to be freed twice when a trap handler resets
5288     the trap more than once was fixed.
5289
5290 d.  A bug that caused machines where sizeof (pointer) > sizeof (int) to
5291     fail (and possibly dump core) when trying to unwind-protect a null
5292     pointer was fixed.
5293
5294 e.  The startup files should not be run with job control enabled.  This fix
5295     allows SIGINT to once again interrupt startup file execution.
5296
5297 f.  Bash should not change the SIGPROF handler if it is set to something
5298     other than SIG_DFL.
5299
5300 g.  The completion code that provides bash-specific completions for readline
5301     now quotes characters that the readline code would treat as word break
5302     characters if they appear in a file name.
5303
5304 h.  The completion code now correctly quotes filenames containing a `!',
5305     even if the user attempted to use double quotes when attempting
5306     completion.
5307
5308 i.  A bug that caused the shell to dump core when `disown' was called without
5309     arguments and there was no current job was fixed.
5310
5311 j.  A construct like $((foo);bar) is now processed as a command substitution
5312     rather than as a bad arithmetic substitution.
5313
5314 k.  A couple of bugs that caused `fc' to not obey the `cmdhist' and `lithist'
5315     shell options when editing and re-executing a series of commands were
5316     fixed.
5317
5318 l.  A fix was made to the grammar -- the list of commands between `do' and
5319     `done' in the body of a `for' command should be treated the same as a
5320     while loop.
5321
5322 2.  Changes to Readline
5323
5324 a.  A couple of bugs that caused the history search functions to attempt to
5325     free a NULL pointer were fixed.
5326
5327 b.  If the C library provides setlocale(3), readline does not need to look
5328     at various environment variables to decide whether or not to go into
5329     eight-bit mode automatically -- just check whether the current locale
5330     is not `C' or `POSIX'.
5331
5332 c.  If the filename completion function finds that a directory was not closed
5333     by a previous (interrupted) completion, it closes the directory with
5334     closedir().
5335
5336 3.  New Features in Bash
5337
5338 a.  New bindable readline commands:  history-and-alias-expand-line and
5339     alias-expand-line.  The code was always in there, there was just no
5340     way to execute it.
5341
5342 ------------------------------------------------------------------------------
5343 This document details the changes between this version, bash-2.01-beta1,
5344 and the previous version, bash-2.01-alpha1.
5345
5346 1.  Changes to Bash
5347
5348 a.  Fixed a problem that could cause file descriptors used for process
5349     substitution to conflict with those used explicitly in redirections.
5350
5351 b.  Made it easier to regenerate configure if the user changes configure.in.
5352
5353 c.  ${GROUPS[0]} should always be the primary group, even on systems without
5354     multiple groups.
5355
5356 d.  Spelling correction is no longer enabled by default.
5357
5358 e.  Fixes to quoting problems in `bashbug'.
5359
5360 f.  OS-specific configuration changes were made for: Irix 6.
5361
5362 g.  OS-specific code changes were made for: QNX.
5363
5364 h.  A more meaningful message is now printed when the file in /tmp for a
5365     here document cannot be created.
5366
5367 i.  Many changes to the shell's variable initialization code to speed
5368     non-interactive startup.
5369
5370 j.  Changes to the non-job-control code so that it does not try to open
5371     /dev/tty.
5372
5373 k.  The output of `set' and `export' is once again sorted, as POSIX wants.
5374
5375 l.  Fixed a problem caused by a recursive call reparsing the value of
5376     $SHELLOPTS.
5377
5378 m.  The tilde code no longer calls getenv() when it's compiled as part of
5379     the shell, which should eliminate problems on systems that cannot
5380     redefine getenv(), like the NeXT OS.
5381
5382 n.  Fixed a problem that caused `bash -o' or `bash +o' to not list all
5383     the shell options.
5384
5385 o.  Fixed `ulimit' to convert RLIM_INFINITY to the appropriate hard limit
5386     only if the hard limit is greater than the current (soft) limit.
5387
5388 p.  Fixed a problem that arose when building bash in a different directory
5389     than the source and y.tab.[ch] were remade with something other than
5390     bison.  This came up most often on NetBSD.
5391
5392 q.  Fixed a problem with completion -- it thought that `pwd`/[TAB] indicated
5393     an unfinished command completion (`/), which generated errors.
5394
5395 r.  The bash special tilde expansions (~-, ~+) are now attempted before
5396     calling the standard tilde expansion code, which should eliminate the
5397     problems people have been seeing with this on Solaris 2.5.1.
5398
5399 s.  Added support for <stdarg.h> to places where it was missing.
5400
5401 t.  Changed the code that reads the output of a command substitution to not
5402     go through stdio.  This reduces the memory requirements and is faster.
5403
5404 u.  A number of changes to speed up export environment creation were made.
5405
5406 v.  A number of memory leaks were fixed as the result of running the test
5407     scripts through Purify.
5408
5409 w.  Fixed a bug that caused subshells forked to interpret executable
5410     scripts without a leading `#!' to not reinitialize the values of
5411     the shell options.
5412
5413 2.  Changes to Readline
5414
5415 a.  History library has less `#ifdef SHELL' code -- abstracted stuff out
5416     into application-specific function hooks.
5417
5418 b.  Readline no longer calls getenv() if it's compiled as part of the shell,
5419     which should eliminate problems on systems that cannot redefine getenv(),
5420     like the NeXT OS.
5421
5422 c.  Fixed translation of ESC when `untranslating' macro values.
5423
5424 d.  The region kill operation now fixes the mark if it ends up beyond the
5425     boundaries of the line after the region is deleted.
5426
5427 3.  New Features in Bash
5428
5429 a.  New argument for `configure':  `--with-curses'.  This can be used to
5430     override the selection of the termcap library on systems where it is
5431     deficient.
5432
5433 ------------------------------------------------------------------------------
5434 This document details the changes between this version, bash-2.01-alpha1,
5435 and the previous version, bash-2.0-release.
5436
5437 1.  Changes to Bash
5438
5439 a.  System-specific configuration changes for: FreeBSD, SunOS4, Irix,
5440     MachTen, QNX 4.2, Harris Night Hawk, SunOS5.
5441
5442 b.  System-specific code changes were made for: Linux, 4.4 BSD, QNX 4.2,
5443     HP-UX, AIX 4.2.
5444
5445 c.  A bug that caused the exec builtin to fail because the full pathname of
5446     the command could not be found was fixed.
5447
5448 d.  The code that performs output redirections is now more resistant to
5449     race conditions and possible security exploits.
5450
5451 e.  A bug that caused the shell to dump core when performing pattern
5452     substitutions on variable values was fixed.
5453
5454 f.  More hosts are now recognized by the auto-configuration mechanism
5455     (OpenBSD, QNX, others).
5456
5457 g.  Assignments to read-only variables that attempt to convert them to
5458     arrays are now errors.
5459
5460 h.  A bug that caused shell scripts using array assignments in POSIX mode
5461     to exit after the assignment was performed was fixed.
5462
5463 i.  The substring expansion code is now more careful about running off the
5464     ends of the expanded variable value.
5465
5466 j.  A bug that caused completion to fail if a backquoted command substitution
5467     appeared anywhere on the line was fixed.
5468
5469 k.  The `source' builtin no longer turns off history if it has been enabled
5470     in a non-interactive shell.
5471
5472 l.  A bug that caused the shell to crash when `disown' was given a pid
5473     instead of a job number was fixed.
5474
5475 m.  The `cd' spelling correction code will not try to change to `.' if no
5476     directory entries match a single-character argument.
5477
5478 n.  A bad variable name supplied to `declare', `export', or `readonly' no
5479     longer causes a non-interactive shell in POSIX mode to exit.
5480
5481 o.  Some fixes were made to the test suite to handle peculiarities of
5482     various Unix versions.
5483
5484 p.  The bash completion code now quotes characters that readline would
5485     treat as word breaks for completion but are not shell metacharacters.
5486
5487 q.  Bad options supplied at invocation now cause a usage message to be
5488     displayed.
5489
5490 r.  Fixes were made to the code that handles DEBUG traps so that the trap
5491     string is not freed inappropriately.
5492
5493 s.  Some changes were made to the bash debugger in examples/bashdb -- it
5494     should be closer to working now.
5495
5496 t.  A problem that caused the default filename used for mail checking to be
5497     wrong was fixed.
5498
5499 u.  A fix was made to the `echo' builtin so that NUL characters printed with
5500     `echo -e' do not cause the output to be truncated.
5501
5502 v.  A fix was made to the job control code so that the shell behaves better
5503     when monitor mode is enabled in a non-interactive shell.
5504
5505 w.  Bash no longer catches all of the terminating signals in a non-
5506     interactive shell until a trap is set on EXIT, which should result in
5507     quicker startup.
5508
5509 x.  A fix was made to the command timing code so that `time' can be used in
5510     a loop.
5511
5512 y.  A fix was made to the parser so that `((cmd); cmd2)' is now parsed as
5513     a nested subshell rather than strictly as an (erroneous) arithmetic
5514     command.
5515
5516 z.  A fix was made to the globbing code so that it correctly matches quoted
5517     filenames beginning with a `.'.
5518
5519 aa. A bug in `fc' that caused some multi-line commands to not be stored as
5520     one command in the history when they were re-executed after editing
5521     (with `fc -e') was fixed.
5522
5523 bb. The `ulimit' builtin now attempts to catch some classes of integer
5524     overflows.
5525
5526 cc. The command-oriented-history code no longer attempts to add `;'
5527     inappropriately when a newline appears while reading a $(...) command
5528     substitution.
5529
5530 dd. A bug that caused the shell to dump core when `help --' was executed
5531     was fixed.
5532
5533 ee. A bug that caused the shell to crash when an unset variable appeared
5534     in the body of a here document after `set -u' had been executed was
5535     fixed.
5536
5537 ff. Implicit input redirections from /dev/null for asynchronous commands
5538     are now handled better.
5539
5540 gg. A bug that caused the shell to fail to compile when configured with
5541     `--disable-readline' was fixed.
5542
5543 hh. The globbing code should now be interruptible.
5544
5545 ii. Bash now notices when the `kill' builtin is used to send SIGCONT to a
5546     stopped job and adjusts the data structures accordingly, as if `bg' had
5547     been executed instead.
5548
5549 jj. A bug that caused the shell to crash when mixing calls to `getopts'
5550     and `shift' on the same set of positional parameters was fixed.
5551
5552 kk. The command printing code now preserves the `-p' flag to `time'.
5553
5554 ll. The command printing code now handles here documents better when there
5555     are other redirections associated with the command.
5556
5557 mm. The special glibc environment variable (NNN_GNU_nonoption_argv_flags_)
5558     is no longer placed into the environment of executed commands -- users
5559     of glibc had too many problems with it.
5560
5561 nn. Reorganized the code that generates signames.h.  The signal_names list
5562     is now more complete but may be slightly different (SIGABRT is favored
5563     over SIGIOT, for example).  The preferred signal names are those
5564     listed in the POSIX.2 standard.
5565
5566 oo. `bashbug' now uses a filename shorter than 14 characters for its
5567     temporary file, and asks for confirmation before sending the bug
5568     report.
5569
5570 pp. A bug that caused TAB completion in vi editing mode to not be turned
5571     off when `set -o posix' was executed or back on when `set +o posix'
5572     was executed was fixed.
5573
5574 qq. A bug in the brace expansion code that caused brace expansions appearing
5575     in new-style $(...) command substitutions to be inappropriately expanded
5576     was fixed.
5577
5578 rr. A bug in the readline hook shell-expand-line that could cause memory to
5579     be inappropriately freed was fixed.
5580
5581 ss. A bug that caused some arithmetic expressions containing `&&' and `||'
5582     to be parsed with the wrong precedence has been fixed.
5583
5584 tt. References to unbound variables after `set -u' has been executed now
5585     cause the shell to exit immediately, as they should.
5586
5587 uu. A bug that caused the shell to exit inappropriately when `set -e' had
5588     been executed and a command's return status was being inverted with the
5589     `!' reserved word was fixed.
5590
5591 vv. A bug that could occasionally cause the shell to crash with a
5592     divide-by-zero error when timing a command was fixed.
5593
5594 ww. A bug that caused parameter pattern substitution to leave stray
5595     backslashes in the replacement string when the expression is in
5596     double quotes was fixed.
5597
5598 xx. The `break' and `continue' builtins now break out of all loops when an
5599     invalid count argument is supplied.
5600
5601 yy. Fixed a bug that caused PATH to be set to the empty string if
5602     `command -p' is executed with PATH unset.
5603
5604 zz. Fixed `kill -l signum' to print the signal name without the `SIG' prefix,
5605     as POSIX specifies.
5606
5607 aaa. Fixed a bug that caused the shell to crash while setting $SHELLOPTS
5608      if there were no shell options set.
5609
5610 bbb. Fixed `export -p' and `readonly -p' so that when the shell is in POSIX
5611      mode, their output is as POSIX.2 specifies.
5612
5613 ccc. Fixed a bug in `readonly' so that `readonly -a avar=(...)' actually
5614      creates an array variable.
5615
5616 ddd. Fixed a bug that prevented `time' from correctly timing background
5617      pipelines.
5618
5619 2.  Changes to Readline
5620
5621 a.  A bug that caused an extra newline to be printed when the cursor was on
5622     an otherwise empty line was fixed.
5623
5624 b.  An instance of memory being used after it was freed was corrected.
5625
5626 c.  The redisplay code now works when the prompt is longer than the screen
5627     width.
5628
5629 d.  `dump-macros' is now a bindable name, as it should have been all along.
5630
5631 e.  Non-printable characters are now expanded when displaying macros and
5632     their values.
5633
5634 f.  The `dump-variables' and `dump-macros' commands now output a leading
5635     newline if they're called as the result of a key sequence, rather
5636     than directly by an application.
5637
5638 3.  New Features in Bash
5639
5640 a.  There is a new builtin array variable: GROUPS, the set of groups to which
5641     the user belongs.  This is used by the test suite.
5642
5643 4.  New Features in Readline
5644
5645 a.  If a key sequence bound to `universal-argument' is read while reading a
5646     numeric argument started with `universal-argument', it terminates the
5647     argument but is otherwise ignored.  This provides a way to insert multiple
5648     instances of a digit string, and is how GNU emacs does it.
5649
5650 ------------------------------------------------------------------------------
5651 This document details the changes between this version, bash-2.0-release,
5652 and the previous version, bash-2.0-beta3.
5653
5654 1.  Changes to Bash
5655
5656 a.  Fix to the `getopts' builtin so that it does the right thing when a
5657     required option argument is not present.
5658
5659 b.  The completion code now updates the common prefix of matched names
5660     after FIGNORE processing is done, since any names that were removed
5661     may have changed the common prefix.
5662
5663 c.  Fixed a bug that made messages in MAILPATH entries not work correctly.
5664
5665 d.  Fixed a serious documentation error in the description of the new
5666     ${parameter:offset[:length]} expansion.
5667
5668 e.  Fixes to make parameter substring expansion ({$param:offset[:length]})
5669     work when within double quotes.
5670
5671 f.  Fixes to make ^A (CTLESC) survive an unquoted expansion of positional
5672     parameters.
5673
5674 g.  Corrected a misspelling of `unlimited' in the output of `ulimit'.
5675
5676 h.  Fixed a bug that caused executable scripts without a leading `#!' to
5677     occasionally pick up the wrong set of positional parameters.
5678
5679 i.  Linux systems now have a working `ulimit -v', using RLIMIT_AS.
5680
5681 j.  Updated config.guess so that many more machine types are recognized.
5682
5683 k.  Fixed a bug with backslash-quoted slashes in the ${param/pat[/sub]}
5684     expansion.
5685
5686 l.  If the shell is named `-su', and `-c command' is supplied, read and
5687     execute the login shell startup files even though the shell is not
5688     interactive.  This is to support the `-' option to `su'.
5689
5690 m.  Fixed a bug that caused core dumps when the DEBUG trap was ignored
5691     with `trap "" DEBUG' and a shell function was subsequently executed.
5692
5693 n.  Fixed a bug that caused core dumps in the read builtin when IFS was
5694     set to the null string and the input had leading whitespace.
5695
5696 2.  Changes to Readline
5697
5698 a.  Fixed a bug that caused a numeric argument of 1024 to be ignored when
5699     inserting text.
5700
5701 b.  Fixed the display code so that the numeric argument is displayed as it's
5702     being entered.
5703
5704 c.  Fixed the numeric argument reading code so that `M-- command' is
5705     equivalent to `M--1 command', as the prompt implies.
5706
5707 3.  New Features in Bash
5708
5709 a.  `ulimit' now sets both hard and soft limits and reports the soft limit
5710     by default (when neither -H nor -S is specified).  This is compatible
5711     with versions of sh and ksh that implement `ulimit'.
5712
5713 b.  Integer constants have been extended to base 64.
5714
5715 4.  New Features in Readline
5716
5717 a.  The `home' and `end' keys are now bound to beginning-of-line and
5718     end-of-line, respectively, if the corresponding termcap capabilities
5719     are present.
5720
5721 ------------------------------------------------------------------------------
5722 This document details the changes between this version, bash-2.0-beta3,
5723 and the previous version, bash-2.0-beta2.
5724
5725 1.  Changes to Bash
5726
5727 a.  System-specific changes for: AIX 4.2, SCO 3.2v[45], HP-UX.
5728
5729 b.  When in POSIX mode, variable assignments preceding a special builtin
5730     persist in the shell environment after the builtin completes.
5731
5732 c.  Changed all calls to getwd() to getcwd().  Improved check for systems
5733     where the libc getcwd() calls popen(), since that breaks on some
5734     systems when job control is being used.
5735
5736 d.  Fixed a bug that caused seg faults when executing scripts with the
5737     execute bit set but without a leading `#!'.
5738
5739 e.  The environment passed to executed commands is never sorted.
5740
5741 f.  A bug was fixed in the code that expands ${name[@]} to the number of
5742     elements in an array variable.
5743
5744 g.  A bug was fixed in the array compound assignment code ( A=( ... ) ).
5745
5746 h.  Window size changes now correctly propagate down to readline if
5747     the shopt `checkwinsize' option is enabled.
5748
5749 i.  A fix was made in the code that expands to the length of a variable
5750     value (${#var}).
5751
5752 j.  A fix was made to the command builtin so that it did not turn on the
5753     `no fork' flag inappropriately.
5754
5755 k.  A fix was made to make `set -n' work more reliably.
5756
5757 l.  A fix was made to the job control initialization code so that the
5758     terminal process group is set to the shell's process group if the
5759     shell changes its own process group.
5760
5761 2.  Changes to Readline
5762
5763 a.  System-specific changes for: SCO 3.2v[45].
5764
5765 b.  The behavior of the vi-mode `.' when redoing an `i' command was changed
5766     to insert the text previously inserted by the `i' command rather than
5767     simply entering insert mode.
5768
5769 3.  New features in Bash
5770
5771 a.  There is a new version of the autoload function package, in
5772     examples/functions/autoload.v2, that uses arrays and provides more
5773     functionality.
5774
5775 b.  Support for LC_COLLATE and locale-specific sorting of the results of
5776     pathname expansion if strcoll() is available.
5777
5778 4.  New Features in Readline
5779
5780 a.  Support for locale-specific sorting of completion possibilities if
5781     strcoll() is available.
5782
5783 ------------------------------------------------------------------------------
5784 This document details the changes between this version, bash-2.0-beta2,
5785 and the previous version, bash-2.0-beta1.
5786
5787 1.  Changes to Bash
5788
5789 a.  `pushd -' is once again equivalent to `pushd $OLDPWD'.
5790
5791 b.  OS-specific changes for: SCO 3.2v[45].
5792
5793 c.  A change was made to the fix for the recently-reported security hole
5794     when reading characters with octal value 255 to make it work better on
5795     systems with restartable system calls when not using readline.
5796
5797 d.  Some changes were made to the test suite so that it works if you
5798     configure bash with --enable-usg-echo-default.
5799
5800 e.  A fix was made to the parsing of conditional arithmetic expressions.
5801
5802 f.  Illegal arithmetic bases now cause an arithmetic evaluation error rather
5803     than being silently reset.
5804
5805 g.  Multiple arithmetic bases now cause an arithmetic evaluation error
5806     instead of being ignored.
5807
5808 h.  A fix was made to the evaluation of ${param?word} to conform to POSIX.2.
5809
5810 i.  A bug that sometimes caused array indices to be evaluated twice (which
5811     would cause errors when they contained assignment statements) was fixed.
5812
5813 j.  `ulimit' was rewritten to avoid problems with getrlimit(2) returning
5814     unsigned values and to simplify the code.
5815
5816 k.  A bug in the command-oriented-history code that caused it to sometimes
5817     put semicolons after right parens inappropriately was fixed.
5818
5819 l.  The values inserted into the prompt by the \w and \W escape sequences
5820     are now quoted to prevent further expansion.
5821
5822 m.  An interactive shell invoked as `sh' now reads and executes commands
5823     from the file named by $ENV when it starts up.  If it's a login shell,
5824     it does this after reading /etc/profile and ~/.profile.
5825
5826 n.  The file named by $ENV is never read by non-interactive shells.
5827
5828 2.  Changes to Readline
5829
5830 a.  A few changes were made to hide some macros and functions that should not
5831     be public.
5832
5833 b.  An off-by-one error that caused seg faults in the history expansion code
5834     was fixed.
5835
5836 3.  New Features in Bash
5837
5838 a.  The ksh-style ((...)) arithmetic command was implemented.  It is exactly
5839     identical to let "...".  This is controlled by a new option to configure,
5840     `--enable-dparen-arithmetic', which is on by default.
5841
5842 b.  There is a new #define available in config.h.top: SYS_BASH_LOGOUT.  If
5843     defined to a filename, bash reads and executes commands from that file
5844     when a login shell exits.  It's commented out by default.
5845
5846 c.  `ulimit' has a `-l' option that reports the maximum amount of data that
5847     may be locked into memory on 4.4BSD-based systems.
5848
5849 ------------------------------------------------------------------------------
5850 This document details the changes between this version, bash-2.0-beta1,
5851 and the previous version, bash-2.0-alpha4.
5852
5853 1.  Changes to Bash
5854
5855 a.  A bug that sometimes caused traps to be ignored on signals the
5856     shell treats specially was fixed.
5857
5858 b.  The internationalization code was changed to track the values of
5859     LC_* variables and call setlocale() as appropriate.  The TEXTDOMAIN
5860     and TEXTDOMAINDIR variables are also tracked; changes cause calls
5861     to textdomain() and bindtextdomain(), if available.
5862
5863 c.  A bug was fixed that sometimes caused double-quoted strings to be
5864     parsed incorrectly.
5865
5866 d.  Changes were made so that the siglist code compiles correctly on
5867     Solaris 2.5.
5868
5869 e.  Added `:' to the set of characters that cause word breaks for the
5870     completion code so that pathnames in assignments to $PATH can be
5871     completed.
5872
5873 f.  The `select' command was fixed to print $PS3 to stderr.
5874
5875 g.  Fixed an error in the manual page section describing the effect that
5876     setting and unsetting GLOBIGNORE has on the setting of the `dotglob'
5877     option.
5878
5879 h.  The time conversion code now uses CLK_TCK rather than CLOCKS_PER_SEC
5880     on systems without gettimeofday() and resources.
5881
5882 i.  The getopt static variables are now initialized each time a subshell
5883     is started, so subshells using `getopts' work right.
5884
5885 j.  A sign-extension bug that caused a possible security hole was fixed.
5886
5887 k.  The parser now reads characters between backquotes within a double-
5888     quoted string as a single word, so double quotes in the backquoted
5889     string don't terminate the enclosing double-quoted string.
5890
5891 l.  A bug that caused `^O' to work incorrectly when typed as the first
5892     thing to an interactive shell was fixed.
5893
5894 m.  A rarely-exercised off-by-one error in the code that quotes variable
5895     values was fixed.
5896
5897 n.  Some memory and file descriptor leaks encountered when running a
5898     shell script that is executable but does not have a leading `#!'
5899     were plugged.
5900
5901 2.  Changes to Readline
5902
5903 a.  A bug that sometimes caused incorrect results when trying to read
5904     typeahead on systems without FIONREAD was fixed.
5905
5906 3.  New Features in Bash
5907
5908 a.  The command timing code now uses the value of the TIMEFORMAT variable
5909     to format and display timing statistics.
5910
5911 b.  The `time' reserved word now accepts a `-p' option to force the
5912     POSIX.2 output format.
5913
5914 c.  There are a couple of new and updated scripts to convert csh startup
5915     files to bash format.
5916
5917 d.  There is a new builtin array variable: BASH_VERSINFO.  The various
5918     members hold the parts of the version information in BASH_VERSION,
5919     plus the value of MACHTYPE.
5920
5921 4.  New Features in Readline
5922
5923 a.  Setting LANG to `en_US.ISO8859-1' now causes readline to enter
5924     eight-bit mode.
5925
5926 ------------------------------------------------------------------------------
5927 This document details the changes between this version, bash-2.0-alpha4,
5928 and the previous version, bash-2.0-alpha3.
5929
5930 1.  Changes to Bash
5931
5932 a.  There is better detection of rsh connections on Solaris 2.
5933
5934 b.  Assignments to read-only variables preceding a command name are now
5935     variable assignment errors.  Variable assignment errors cause
5936     non-interactive shells running in posix mode to exit.
5937
5938 c.  The word tokenizer was rewritten to handle nested quotes and pairs
5939     ('', "", ``, ${...}, $(...), $[...], $'...', $"...", <(...), >(...))
5940     correctly.  Some of the parameter expansion code was updated as a
5941     consequence.
5942
5943 d.  A fix was made to `test' when given three arguments so that a binary
5944     operator is checked for first, before checking that the first argument
5945     is `!'.
5946
5947 e.  2''>/dev/null is no longer equivalent to 2>/dev/null.
5948
5949 f.  Parser error messages were regularized, and in most cases the name of
5950     the shell script being read by a non-interactive shell is not printed
5951     twice.
5952
5953 g.  A fix was made to the completion code so that it no longer removes the
5954     text the user typed in some cases.
5955
5956 h.  The special glibc `getopt' environment variable is no longer put into
5957     the environment on machines with small values of ARG_MAX.
5958
5959 i.  The expansion of ${...} now follows the POSIX.2 rules for finding the
5960     closing `}'.
5961
5962 j.  The shell no longer displays spurious status messages for background
5963     jobs in shell scripts that complete successfully when the script is
5964     run from a terminal.
5965
5966 k.  `shopt -o' now correctly updates $SHELLOPTS.
5967
5968 l.  A bug that caused the $PATH searching code to return a non-executable
5969     file even when an executable file with the same name appeared later in
5970     $PATH was fixed.
5971
5972 m.  The shell now does tilde expansions on unquoted `:~' in assignment
5973     statements when not in posix mode.
5974
5975 n.  Variable assignment errors when a command consists only of assignments
5976     now cause non-interactive shells to exit when in posix mode.
5977
5978 o.  If the variable in a `for' or `select' command is read-only, or not a
5979     legal shell identifier, a variable assignment error occurs.
5980
5981 p.  `test' now handles `-a' and `-o' as binary operators when three arguments
5982     are supplied, and correctly parses `( word )' as equivalent to `word'.
5983
5984 q.  `test' was fixed so that file names of the form /dev/fd/NN mean the same
5985     thing on all systems, even Linux.
5986
5987 r.  Fixed a bug in the globbing code that caused patterns with multiple
5988     consecutive `*'s to not be matched correctly.
5989
5990 s.  Fixed a bug that caused $PS2 to not be printed when an interactive shell
5991     not using readline is reading a here document.
5992
5993 t.  Fixed a bug that caused history expansion to be performed inappropriately
5994     when a single-quoted string spanned more than one line.
5995
5996 u.  `getopts' now checks that the variable name passed by the user as the
5997     second argument is a legal shell identifier and that the variable is
5998     not read-only.
5999
6000 v.  Fixed `getopts' to obey POSIX.2 rules for setting $OPTIND when it
6001     encounters an error.
6002
6003 w.  Fixed `set' to display variable values in a form that can be re-read.
6004
6005 x.  Fixed a bug in the code that keeps track of whether or not local variables
6006     have been declared at the current level of function nesting.
6007
6008 y.  Non-interactive shells in posix mode now exit if the name in a function
6009     declaration is not a legal identifier.
6010
6011 z.  The job control code now ignores stopped children when the shell is not
6012     interactive.
6013
6014 aa. The `cd' builtin no longer attempts spelling correction on the directory
6015     name if the shell is not interactive, regardless of the setting of the
6016     `cdspell' option.
6017
6018 bb. Some OS-specific changes were made for SCO 3.2v[45] and AIX 4.2.
6019
6020 cc. `time' now prints its output to stderr, as POSIX.2 specifies.
6021
6022 2.  Fixes to Readline
6023
6024 a.  After printing possible completions, all lines of a multi-line prompt
6025     are redisplayed.
6026
6027 b.  Some changes were made to the terminal handling code in rltty.c to
6028     work around AIX 4.2 bugs.
6029
6030 3.  New Features in Bash
6031
6032 a.  There is a new loadable builtin: sprintf, with calling syntax
6033                 sprintf var format [args]
6034     This provides an easy way to simulate ksh left- and right-justified
6035     variable values.
6036
6037 b.  The expansions of \h and \H in prompt strings were swapped.  \h now
6038     expands to the hostname up to the first `.', as in bash-1.14.
6039
6040 4.  New Features in Readline
6041
6042 a.  The bash-1.14 behavior when ^M is typed while doing an incremental
6043     search was restored.  ^J may now be used to terminate the search without
6044     accepting the line.
6045
6046 b.  There is a new bindable variable: disable-completion.  This inhibits
6047     word completion and causes the completion character to be inserted as
6048     if it had been bound to self-insert.
6049
6050 ------------------------------------------------------------------------------
6051 This document details the changes between this version, bash-2.0-alpha3,
6052 and the previous version, bash-2.0-alpha2.
6053
6054 There is now a file `COMPAT' included in the distribution that lists the
6055 user-visible incompatibilities between 1.14 and 2.0.
6056
6057 1. Changes to Bash
6058
6059 a. Some work was done so that word splitting of the rhs of assignment
6060    statements conforms more closely to historical practice.
6061
6062 b. A couple of errant memory frees were fixed.
6063
6064 c. A fix was made to the test builtin so it recognizes `<' and `>' as
6065    binary operators.
6066
6067 d. The GNU malloc in lib/malloc/malloc.c now scrambles memory as it's
6068    allocated and freed.  This is to catch callers that refer to freed
6069    memory or assume something about newly-allocated memory.
6070
6071 e. Fixed a problem with conversion to 12-hour time in the prompt
6072    expansion code.
6073
6074 f. Fixed a problem with configure's argument parsing order.  Now you can
6075    correctly turn on specific options after using --enable-minimal-config.
6076
6077 g. The configure script now automatically disables the use of GNU malloc
6078    on systems where it's appropriate (better than having people read the
6079    NOTES file and do it manually).
6080
6081 h. There are new prompt expansions (\v and \V) to insert version information
6082    into the prompt strings.
6083
6084 i. The default prompt string now includes the version number.
6085
6086 j. Most of the builtins that take no options were changed to use the
6087    internal getopt so they can produce proper error messages for -?
6088    and incorrect options.
6089
6090 k. Some system-specific changes were made for SVR4.2 and Solaris 2.5.
6091
6092 l. Bash now uses PATH_MAX instead of MAXPATHLEN and NAME_MAX instead of
6093    MAXNAMLEN.
6094
6095 m. A couple of problems caused by uninitialized variables were fixed.
6096
6097 n. There are a number of new loadable builtin examples: logname, basename,
6098    dirname, tty, pathchk, tee, head, and rmdir.  All of these conform to
6099    POSIX.2.
6100
6101 o. Bash now notices changes in TZ and calls tzset() if present, so
6102    changing TZ will alter the time printed by prompt expansions.
6103
6104 p. The source was reorganized a bit so I don't have to wait so long for
6105    some files to compile, and to facilitate the creation of a `shell
6106    library' at some future point.
6107
6108 q. Bash no longer turns off job control if called as `sh', since the
6109    POSIX.2 spec includes job control as a standard feature.
6110
6111 r. `bash -o posix' now works as intended.
6112
6113 s. Fixed a problem with the completion code: when completing a filename
6114    that contained globbing characters, if show-all-if-ambiguous was set,
6115    the completion code would remove the user's text.
6116
6117 t. Fixed ulimit so that (hopefully) the full range of limits is available
6118    on HPUX systems.
6119
6120 u. A new `shopt' option (`hostcomplete') enables and disables hostname
6121    completion.
6122
6123 v. The shell no longer attempts to save the history on an abort(),
6124    which is usually called by programming_error().
6125
6126 w. The `-s' option to `fc' was changed to echo the command to be executed
6127    to stderr instead of stdout.
6128
6129 x. If the editor invoked by `fc -e' exits with a non-zero status, no
6130    commands are executed.
6131
6132 y. Fixed a bug that made the shopt `histverify' option work incorrectly.
6133
6134 z. There is a new variable `MACHTYPE' whose value is the GNU-style
6135    `cpu-company-system' system description as set by configure.  (The
6136    values of MACHTYPE and HOSTTYPE should really be swapped.)
6137
6138 aa. The `ulimit' builtin now allows the maximum virtual memory size to be
6139     set via setrlimit(2) if RLIMIT_VMEM is defined.
6140
6141 bb. `bash -nc 'command'' no longer runs `command'.
6142
6143 2. Changes to Readline
6144
6145 a. Fixed a typo in the code that checked for FIONREAD in input.c.
6146
6147 b. Fixed a bug in the code that outputs keybindings, so things like C-\
6148    are quoted properly.
6149
6150 c. Fixed a bug in the inputrc file parsing code to handle the problems
6151    caused by inputrc files created from the output of `bind -p' in
6152    previous versions of bash.  The problem was due to the bug fixed
6153    in item b above.
6154
6155 d. Readline no longer turns off the terminal's meta key, and turns it on
6156    once the first time it's called.
6157
6158 ------------------------------------------------------------------------------
6159 This file documents the changes between this version, bash-2.0-alpha2,
6160 and the previous version, bash-2.0-alpha.
6161
6162 1. Changes to Bash
6163
6164 a. The shell no longer thinks directories are executable.
6165
6166 b. `disown' has a new option, `h', which inhibits the resending of SIGHUP
6167    but does not remove the job from the jobs table.
6168
6169 c. The varargs functions in error.c now use ANSI-C `stdarg' if available.
6170
6171 d. The build process now treats the `build version' in .build as local to
6172    the build directory, so different versions built from the same source
6173    tree have different `build versions'.
6174
6175 e. Some problems with the grammar have been fixed. (It used `list' in a few
6176    productions where `compound_list' was needed.  A `list' must be terminated
6177    with a newline or semicolon; a `compound_list' need not be.)
6178
6179 f. A fix was made to keep `wait' from hanging when waiting for all background
6180    jobs.
6181
6182 g. `bash --help' now writes its output to stdout, like the GNU Coding Standards
6183    specify, and includes the machine type (the value of MACHTYPE).
6184
6185 h. `bash --version' now prints more information and exits successfully, like
6186    the GNU Coding Standards specify.
6187
6188 i. The output of `time' and `times' now prints fractional seconds with three
6189    places after the decimal point.
6190
6191 j. A bug that caused process substitutions to screw up the pipeline printed
6192    by `jobs' was fixed.
6193
6194 k. Fixes were made to the code that implements $'...' and $"..." so they
6195    work as documented.
6196
6197 l. The process substitution code now opens named pipes for reading with
6198    O_NONBLOCK to avoid hanging.
6199
6200 m. Fixes were made to the trap code so the shell cleans up correctly if the
6201    trap command contains a `return' and we're executing a function or
6202    sourcing a script with `.'.
6203
6204 n. Fixes to doc/Makefile.in so that it doesn't try to remake all of the
6205    documentation (ps, dvi, etc.) on a `make install'.
6206
6207 o. Fixed an auto-increment error that caused bash -c args to sometimes dump
6208    core.
6209
6210 p. Fixed a bug that caused $HISTIGNORE to fail when the history line
6211    contained globbing characters.
6212
6213 2. Changes to Readline
6214
6215 a. There is a new string variable, rl_library_version, available for use by
6216    applications.  The current value is "2.1".
6217
6218 b. A bug encountered when expand-tilde was enabled and file completion was
6219    attempted on a word beginning with `~/' was fixed.
6220
6221 c. A slight change was made to the incremental search termination behavior.
6222    ESC still terminates the search, but if input is pending or arrives
6223    within 0.1 seconds (on systems with select(2)), it is used as a prefix
6224    character.  This is intented to allow users to terminate searches with
6225    the arrow keys and get the behavior they expect.