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