Professional Documents
Culture Documents
3-release, and
the previous version, bash-4.3-rc2.
1.
Changes to Bash
a.
b.
Fixed a bug that caused a failed special builtin to not exit a posix-mode
shell if the failing builtin was on the LHS of a && or ||.
c.
d.
e.
Fixed a bug that caused a SIGCHLD trap handler to not be able to change the
SIGCHLD disposition.
f.
Fixed a bug that caused a crash when -x was enabled and a command
contained a printable multibyte (wide) character.
g.
Fixed a bug that caused an interactive shell without line editing enabled
to read invalid data after receiving a SIGINT.
h.
Fixed a bug that caused command word completion to fail if the directory in
$PATH where the completion would be found contained single or double quotes.
i.
Fixed a bug that caused a shell with -v enabled to print commands in $()
multiple times.
2.
Changes to Readline
a.
Fixed a bug that caused `undo' to reference freed memory or null pointers.
3.
a.
-----------------------------------------------------------------------------This document details the changes between this version, bash-4.3-rc2, and the
previous version, bash-4.3-rc1.
1.
Changes to Bash
Changes to Readline
a. Fixed a bug that could cause readline to crash and seg fault attempting to
expand an empty history entry.
b. Fixed a bug that caused a bad entry in the $LS_COLORS variable to abort all
color processing but leave color enabled.
c. Fixed a bug that caused display problems with multi-line prompts containing
invisible characters on multiple lines.
d. Fixed a bug that caused effects made by undoing changes to a history line to
be discarded.
3.
4.
a.
When creating shared libraries on Mac OS X, the pathname written into the
library (install_name) no longer includes the minor version number.
-----------------------------------------------------------------------------This document details the changes between this version, bash-4.3-rc1, and the
previous version, bash-4.3-beta2.
1.
Changes to Bash
Changes to Readline
Changes to Bash
a.
b.
c.
d.
e.
f.
g.
Fixed a bug that caused the `read -N' to misbehave when the input stream
contains 0xff.
2.
Changes to Readline
a.
b.
Fixed a bug that caused an arrow key typed to an incremental search prompt
to process the key sequence incorrectly.
c.
3.
a.
The help builtin now attempts substring matching (as it did through
bash-4.2) if exact string matching fails.
b.
c.
a.
-----------------------------------------------------------------------------This document details the changes between this version, bash-4.3-beta, and the
previous version, bash-4.3-alpha.
1.
Changes to Bash
a.
Fixed a bug in the prompt directory name "trimming" code that caused
memory corruption and garbled the results.
b.
Fixed a bug that caused single quotes that resulted from $'...' quoting
in the replacement portion of a double-quoted ${word/pat/rep} expansion
to be treated as quote characters.
c.
d.
Fixed a bug with variable search order in the presence of local variables
with the same name as variables in the temporary environment supplied to
a shell function.
e.
f.
g.
Fixed a bug that caused group commands in pipelines that were not the
last element to not run the EXIT trap.
h.
Fixed a bug that caused `unset -n' to not unset a nameref variable in
certain cases.
i.
Fixed the nameref circular reference checking to be less strict and only
disallow a nameref variable with the same value as its name at the global
scope.
j.
k.
Fixed a bug that could result in bash not compiling if certain options were
not enabled.
l.
Fixed a bug that caused the arithmetic expansion code to attempt variable
assignments when operator precedence prohibited them.
Fixed a bug that caused `declare -fp name' to not display a function
definition.
o.
Fixed a bug that caused asynchronous child processes to modify the stdin
file pointer when bash was using it to read a script, which modified the
parent's value as well.
2.
Changes to Readline
a.
Fixed a bug in vi mode that caused the arrow keys to set the saved last
vi-mode command to the wrong value.
b.
c.
Fixed a bug with vi mode that prevented `.' from repeating a command
entered on a previous line (command).
d.
Fixed a bug that could cause completion to core dump if it was interrupted
by a signal.
e.
Readline now sends the meta-key enable string to the terminal if the
terminal has been successfully initialized.
f.
Readline now calls the signal hook after resizing the terminal when it
receives a SIGWINCH.
g.
Fixed a bug that could cause the history list code to perform an out-ofbounds array reference if the history list is empty.
3.
a.
Shells started to run process substitutions now run any trap set on EXIT.
b.
c.
The read builtin now checks its first variable argument for validity before
trying to read any input.
Changes to Bash
a.
b.
Fixed a bug with single quotes and WORD in ${param op WORD} when running
in Posix mode.
c.
Fixed a bug that caused the pattern removal and pattern substitution word
expansions and case statement word expansion to not match the empty string.
d.
Fixed a bug that caused the tzset() function to not work after changing
the TZ enviroment variable.
e.
f.
Fixed bugs that caused the shell to not react to a SIGINT sent while
waiting for a child process to exit.
g.
Bash doesn't try to run things in a signal handler context when it gets a
signal (SIGINT/SIGHUP/etc) while reading input using readline but still
be responsive to terminating signals.
h.
i.
j.
Fixed a bug that caused brace expansion to not skip over double-quoted
command substitution.
k.
l.
m.
Fixed the coproc cleanup to unset the appropriate shell variables when a
coproc terminates.
n.
Fixed a bug that caused `fc' to dump core due to incorrect calculation of
the last history entry.
o.
p.
Fixed a bug that caused the shell to not match patterns containing
control-A.
q.
Fixed a bug that could result in doubled error messages when the `printf'
builtin got a write error.
r.
Fixed a bug that caused the shell to not correctly expand words containing
multiple consecutive quoted empty strings (""""""aa).
s.
Fixed a bug that caused the shell to not correctly parse multi-line
process substitutions containing comments and quoted strings.
t.
Fixed a problem with the bash malloc's internal idea of the top of the
memory heap that resulted in incorrect decisions to try to reduce the
break and give memory back to the kernel.
u.
v.
w.
x.
Fixed several bugs that caused completion functions to be invoked even when
the cursor was before the first word in the command.
y.
z.
Fixed several bugs with the built-in snprintf replacement and field widths
and floating point.
aa. Fixed a bug that caused incorrect offset calculations and input buffer
corruption when reading files longer than 2^31 bytes.
bb. Fixed several bugs where bash performed arithmetic evaluation in contexts
where evaluation is suppressed.
cc. Fixed a bug that caused bash to close FIFOs used for process substitution
too early when a shell function was executing, but protect against using
all file descriptors when the shell functions are invoked inside loops.
dd. Added checks for printable (and non-printable) multibyte characters for
use in error messages.
ee. Fixed a bug that caused ^O (operate-and-get-next) to not work correctly
at the end of the history list.
ff. Fixed a bug that caused command-oriented history to incorrectly combine
here documents into one line.
gg. Fixed a bug that caused importing SHELLOPTS from the environment into a
Posix-mode shell to print an error message and refuse to parse it.
hh. Fixed a bug that caused the shell to delete an extra history entry when
using `history -s'.
ii. Fixed a bug that caused floating-point exceptions and overflow errors
for the / and % arithmetic operators when using INTMAX_MIN and -1.
jj. Fixed a bug that caused parsing errors when reading an arithmetic for
loop inside a command substitution.
kk. Fixed a bug that caused a readonly function to be unset when unset was
called without the -f or -v option.
ll. Fixed several bugs in the code that quotes characters special to regular
expressions when used in a quoted string on the RHS of the =~ operator
to the [[ command.
mm. Fixed a bug that caused redirections to fail because the file descriptor
limit was set to a value less than 10.
nn. Fixed a bug that caused the `read' builtin to execute code in a signal
handler context if read timed out.
oo. Fixed a bug that caused extended globbing patterns to not match files
beginning with `.' correctly when a `.' was explicitly supplied in the
pattern.
pp. Fixed a bug that caused key sequences longer than two characters to not
work when used with `bind -x'.
qq. Fixed a bug that resulted in redefined functions having the wrong source
file names in BASH_SOURCE.
rr. Fixed a bug that caused the read builtin to assign null strings to variables
when using `read -N', which caused core dumps when referenced
ss. Fixed a bug that caused `bash -m script' to not enable job control while
running the script.
tt. Fixed a bug that caused `printf -v var' to dump core when used with the
%b format code.
uu. Fixed a bug that caused the shell to exit with the wrong status if -e was
active and the shell exited on a substitution error.
vv. Fixed a bug that caused the shell to seg fault if an array variable with
the same name as an existing associative array was implicitly created by
an assignment (declare a[n]=b).
ww. Fixed a bug that caused a redirection to misbehave if the number specified
for a file descriptor overflows an intmax_t.
xx. Fixed several bugs with the handling of valid and invalid unicode character
values when used with the \u and \U escape sequences to printf and $'...'.
yy. Fixed a bug that caused tildes to not be escaped in expanded filenames,
making them subject to later expansion.
zz. When using the pattern substitution word expansion, bash now runs the
replacement string through quote removal, since it allows quotes in that
string to act as escape characters. This is not backwards compatible, so
it can be disabled by setting the bash compatibility mode to 4.2.
aaa. Fixed the rest of the cases where the shell runs non-allowed code in a
signal handler context.
bbb. Fixed a bug that caused spurious DEL characters (\177) to appear in
double-quoted expansion where the RHS is evaluated to the empty string.
ccc. Fixed a bug that caused the use of the shell's internal random number
generator for temporary file names to perturb the random number
sequence.
ddd. Fixed several bugs that caused `declare -g' to not set the right global
variables or to misbehave when declaring global indexed arrays.
eee. Fixed a logic bug that caused extended globbing in a multibyte locale to
cause failures when using the pattern substititution word expansions.
fff. Fixed a bug that caused the `lastpipe' option to corrupt the file
descriptor used to read the script.
ggg. Fixed a bug that causes the shell to delete DEL characters in the
expanded value of variables used in the same quoted string as variables
that expand to nothing.
hhh. Fixed a bug that caused the shell to assign the wrong value from an
assignment like (( x=7 )) when `x' was an existing array variable.
iii. Fixed a bug that caused the shell to misbehave when generating sequences
and the boundary values overflow an intmax_t.
jjj. Fixed a bug caused expansion errors if an expansion of "$@" appeared
next to another expansion (e.g.. "${@}${x}").
kkk. Fixed a potential buffer overflow bug when performing /dev/fd expansion.
lll. Fixed a bug that resulted in an extra semicolon being added to compound
assignments when they were added to the history list.
mmm. Fixed a bug that caused mapfile to read one extra line from the input.
nnn. Fixed a bug that caused the mail checking code to use uninitialized
values.
ooo. Fixed a bug that prevented history timestamps from being saved if the
history comment character is unset.
ppp. Fixed a bug that caused the case-modifying expansions to not work with
multibyte characters.
qqq. Fixed a bug that caused the edit-and-execute bindable readline command
to see the wrong data if invoked in the middle of a multi-line quoted
string.
rrr. Fixed a bug that resulted in the shell returning the wrong exit status
Changes to Readline
a.
Fixed a bug that did not allow the `dd', `cc', or `yy' vi editing mode
commands to work on the entire line.
b.
Fixed a bug that caused redisplay problems with prompts longer than 128
characters and history searches.
c.
Fixed a bug that caused readline to try and run code to modify its idea
Fixed a bug that caused the `meta' key to be enabled beyond the duration
of an individual call top readline().
e.
f.
Fixed a bug that caused readline to `forget' part of a key sequence when
a multiple-key sequence caused it to break out of an incremental search.
g.
h.
Fixed a bug that caused readline to `forget' part of a key sequence when
reading an unbound multi-character key sequence.
i.
j.
Fixed a bug that caused the `.' command to not redo the most recent `R'
command in vi mode.
k.
l.
Fixed a bug that didn't allow the `cc', `dd', or `yy' commands to be redone
in vi editing mode.
o.
Fixed a bug that caused the filename comparison code to not compare
multibyte characters correctly when using case-sensitive or case-mapping
comparisons.
p.
Fixed the input reading loop to call the input hook function only when there
is no terminal input available.
q.
r.
s.
3.
a.
The `helptopic' completion action now maps to all the help topics, not just
the shell builtins.
b.
The `help' builtin no longer does prefix substring matching, so `help read'
does not match `readonly'.
c.
The shell can be compiled to not display a message about processes that
terminate due to SIGTERM.
d.
f.
g.
In Posix mode, the `command' builtin does not change whether or not a
builtin it shadows is treated as an assignment builtin.
h.
The `return' and `exit' builtins accept negative exit status arguments.
i.
j.
k.
l.
The history expansion character (!) does not cause history expansion when
followed by the closing quote in a double-quoted string.
m.
`complete' and its siblings compgen/compopt now takes a new `-o noquote'
option to inhibit quoting of the completions.
n.
Setting HISTSIZE to a value less than zero causes the history list to be
unlimited (setting it 0 zero disables the history list).
o.
Setting HISTFILESIZE to a value less than zero causes the history file size
to be unlimited (setting it to 0 causes the history file to be truncated
to zero size).
p.
q.
There is a new `bind -X' option to print all key sequences bound to Unix
commands.
r.
s.
t.
The build process has a new mechanism for constructing separate help files
that better reflects the current set of compilation options.
u.
The -nt and -ot options to test now work with files with nanosecond
timestamp resolution.
v.
The shell saves the command history in any shell for which history is
enabled and HISTFILE is set, not just interactive shells.
w.
The shell has `nameref' variables and new -n(/+n) options to declare and
unset to use them, and a `test -R' option to test for them.
x.
The {x}<word redirection feature now allows words like {array[ind]} and
can use variables with special meanings to the shell (e.g., BASH_XTRACEFD).
z.
There is a new CHILD_MAX special shell variable; its value controls the
number of exited child statues the shell remembers.
a.
Readline is now more responsive to SIGHUP and other fatal signals when
reading input from the terminal or performing word completion but no
longer attempts to run any not-allowable functions from a signal handler
context.
b.
There are new bindable commands to search the history for the string of
characters between the beginning of the line and the point
(history-substring-search-forward, history-substring-search-backward)
c.
d.
The history library creates a backup of the history file when writing it
and restores the backup on a write error.
e.
f.
New bindable function `print-last-kbd-macro', prints the most-recentlydefined keyboard macro in a reusable format.
g.
h.
i.
k.
l.
m.
Changes to Bash
a.
Changes to Bash
a.
b.
c.
Changes to Bash
a.
Fixed a bug that caused some redirection errors to leak file descriptors.
b.
Fixed a bug that caused unary `+' and `-' arithmetic operators to have a
higher precedence than unary `!' and `~'.
c.
Fixed a bug that caused simple commands in a pipeline to affect the exit
status ($?) seen by subsequent pipeline commands.
d.
e.
Fixed a bug that caused the read builtin to not return failure if an
attempt is made to assign to a readonly variable.
f.
Fixed a bug that caused some builtin usage messages to not be translated.
g.
Fixed a bug that caused the getopts builtin to not return failure if an
attempt is made to assign to a readonly variable. Now it returns 2.
h.
Fixed the cd and pwd builtins to return failure if PWD is readonly and
cannot be assigned to.
i.
2.
Changes to Readline
a.
3.
4.
Changes to Bash
a.
Fixed a bug that caused the \W prompt string escape to not add a closing
NULL.
b.
Fixed a bug that caused partially-quoted words that were not subject to
word splitting to retained quoted NULLs.
c.
d.
e.
Fixed a bug that caused the expansion of $* when there are no positional
parameters to cause the shell to dump core when used in a pattern
matching context.
f.
2.
Changes to Readline
a.
Changes to Bash
a.
b.
c.
d.
e.
Fixed several bugs with the expansion and display of variables that have
been given attributes but not values and are technically unset.
f.
Fixed a bug that caused core dumps when using filename completion that
expands to a filename containing a globbing character.
g.
h.
Fixed a bug that caused a command to remain in the hash table even after
`hash command' did not find anything if there was already an existing
hashed pathname.
i.
j.
k.
l.
m.
n.
Fixed a bug that caused the printf builtin to use the wrong precision
when using the `*' modifier.
o.
p.
q.
Fixed a bug that caused spurious semicolons to be added into the command
history in certain cases.
r.
Fixed a bug that caused the shell to free non-allocated memory when
unsetting element 0 of an associative array after it was assigned
implicitly.
s.
Fixed a bug that could cause the shell to dump core if using the `v'
vi editing command on a multi-line command.
t.
Fixed a bug that left FIFOs opened by process substitutions open long
enough to potentially cause file descriptor exhaustion when running a
shell function or shell builtin.
u.
Fixed a bug that caused the history expansion functions to not recognize
process substitution or extended glob patterns as single words.
v.
w.
Fixed a bug that caused bash to ignore the wrong set of filenames when
completing a command using the `complete-filename' readline command.
x.
y.
z.
aa. Fixed a bug that caused the := parameter expansion operator to return the
wrong value as the result of the expansion.
bb. When in Posix mode, a single quote is not treated specially in a
double-quoted ${...} expansion, unless the expansion operator is
# or % or the non-Posix `//', `^', and `,'. In particular, it does
not define a new quoting context. This is from Posix interpretation 221.
cc. Fixed a bug that inadvertently allowed program names containing slashes
to be entered into the command hash table.
dd. Fixed a bug that caused the select builtin to incorrectly compute the
display width of the arguments in the presence of multibyte characters.
ee. Fixed a bug that caused bash to not change the xtrace file descriptor if
BASH_XTRACEFD was found in the shell environment at startup.
ff. Fixed a memory leak in the pattern removal parameter expansion.
gg. Fixed a bug that caused SIGINT to fail to interrupt a nested loop if the
loop was in a pipeline.
hh. Fixed a problem in $(...) parsing that caused the parser to add an extra
space to a here-document delimiter if the first word contained a `/'.
ii. Fixed a bug that caused functions defined with the `function' reserved
word to require braces around the function body.
jj. Fixed a bug that caused bash to dump core when a variable expansion being
used as an array subscript failed.
kk. Fixed a bug that caused bash to dump core if the case-modification
expansions were used on a variable with a null value.
ll. Fixed a bug that caused partially-quoted strings to be split incorrectly
if a variable with a null value was expanded within double quotes.
mm. The pattern substitution word expansion has been sped up dramatically
when running in a locale with multibyte characters.
nn. Fixed a bug that caused history -a to not write the correct lines to
the history file if all the new lines in the history list were added
since the last time the history file was read or written.
oo. Fixed a bug that caused completion of a word with an unclosed `` command
substitution to set the prompt incorrectly.
pp. Fixed a bug that caused extended globbing patterns in $HISTIGNORE or
$GLOBIGNORE to be incorrectly scanned.
qq. Fixed a bug caused by closing file descriptors 3-20 on shell startup.
shell now sets them to close-on-exec.
The
rr. Fixed a bug that caused the exit status of `exec file' to be set incorrectly
Changes to Readline
a.
Fixed a bug that caused the unconverted filename to be added to the list of
completions when the application specified filename conversion functions.
b.
Fixed a bug that caused the wrong filename to be passed to opendir when the
application has specified a filename dequoting function.
c.
Fixed a bug when repeating a character search in vi mode in the case where
there was no search to repeat.
d.
e.
The full set of vi editing commands may now be used in callback mode.
f.
Fixed a bug that caused readline to not update its idea of the terminal
dimensions while running in `no-echo' mode.
h.
i.
j.
The incremental search code treats key sequences that map to the same
functions as (default) ^G, ^W, and ^Y as equivalent to those characters.
k.
l.
Fixed a bug that caused vi-mode yank-last-arg to ring the bell when invoked
at the end of the line.
3.
a.
b.
c.
`trap -p' will now show signals ignored at shell startup, though their
disposition still cannot be modified.
d.
$'...', echo, and printf understand \uXXXX and \UXXXXXXXX escape sequences.
e.
f.
g.
h.
j.
k.
A new FUNCNEST variable to allow the user to control the maximum shell
function nesting (recursive execution) level.
l.
The mapfile builtin now supplies a third argument to the callback command:
the line about to be assigned to the supplied array index.
m.
The printf builtin has a new %(fmt)T specifier, which allows time values
to use strftime-like formatting.
n.
o.
p.
q.
r.
s.
t.
There is a new `lastpipe' shell option that runs the last command of a
pipeline in the current shell context. The lastpipe option has no
effect if job control is enabled.
u.
v.
w.
x.
Posix-mode shells use the argument passed to `.' as-is if a $PATH search
fails, effectively searching the current directory. Posix-2008 change.
4.
a.
The history library does not try to write the history filename in the
current directory if $HOME is unset. This closes a potential security
problem if the application does not specify a history filename.
b.
c.
d.
There are new bindable vi-mode command names to avoid readline's caseinsensitive matching not allowing them to be bound separately.
e.
Changes to Bash
a.
Fixed a bug that caused printf to not return a partial value when it
encountered an error while converting an integer argument.
b.
Fixed a bug that caused setting one of the compatNN options to not
turn off the others.
c.
d.
e.
f.
Fixed some problems with line number calculation and display when sourcing
a file in an interactive shell.
g.
Fixed a bug that caused the shell to crash when using `declare -A foo=bar'.
h.
Fixed a bug that caused an off-by-one error when calculating the directories
to display with the PROMPT_DIRTRIM option.
2.
Changes to Readline
a.
Fixed a bug that caused applications using the callback interface to not
react to SIGINT (or other signals) until another character arrived.
Changes to Bash
a.
Fixed a bug in mapfile that caused the shell to crash if it was passed the
name of an associative array.
b.
Fixed a bug that caused the shell to incorrectly split case patterns if
they contained characters in $IFS.
c.
Fixed a bug that caused the shell to set $? to the wrong value when using
a construct ending with a variable assignment with set -x enabled and PS4
e.
Fixed a bug that caused the shell to set $? incorrectly if a parse error
occurred in an evaluation context ("eval", trap command, dot script, etc.)
f.
g.
Fixed a bug that caused the shell to insert an extra single quote during
word completion.
h.
Fixed a bug that caused the shell to crash if invoked with the environment
variable EMACS having a null value.
i.
Fixed a bug that caused bash to incorrectly report the presence of new
mail in a `maildir' environment.
j.
Fixed a bug that caused the shell to not recognize a here-document ending
delimiter inside a command substitution.
k.
Fixed a bug that caused the shell to crash when a a dynamic array variable
was assigned a scalar value.
2.
Changes to Readline
3.
a.
b.
c.
The < and > operators to [[ do string comparisons using the current locale
only if the compatibility level is greater than 40 (set to 41 by default).
4.
Changes to Bash
a.
Fixed bugs in the parser involving new parsing of the commands contained
in command substitution when the substitution is read.
b.
Fixed a bug that caused the shell to dump core when performing programmable
completion using a shell function.
c.
d.
Fixed a bug that caused the shell to dump core when listing jobs in the
`exit' builtin.
e.
f.
g.
Fixed a bug that caused syntax errors and SIGINT interrupts to not set
$? to a value > 128.
h.
Fixed a bug that caused the shell to remove FIFOs associated with process
substitution inside shell functions.
i.
Fixed a bug that caused terminal attributes to not be reset when the
`read' builtin timed out.
j.
Fixed a bug in brace expansion that caused unwanted zero padding of the
expanded terms.
k.
Fixed a bug that prevented the |& construct from working as intended when
used with a simple command with additional redirections.
l.
Fixed a bug with the case statment ;& terminator that caused the shell to
dereference a NULL pointer.
m.
p.
Fixed a bug that caused traps to set $LINENO to the wrong value when they
execute.
q.
Fixed a bug that caused off-by-one errors when computing history lines in
the `fc' builtin.
r.
Fixed a bug that caused some terminating signals to not exit the shell
quickly enough, forcing the kernel to send the signal (e.g., SIGSEGV)
multiple times.
s.
Fixed a bug that caused the shell to attempt to add empty lines to the
history list when reading here documents.
t.
u.
Fixed a bug that caused the shell to write past the end of a string when
completing a double-quoted string ending in a backslash.
v.
Fixed a bug that caused the shell to replace too many characters when a
pattern match was null in a ${foo//bar} expansion.
w.
x.
y.
Fixed a bug caused by executing an external program from the DEBUG trap
while a pipeline was running. The effect was to disturb the pipeline
state, occasionally causing it to hang.
z.
aa. Fixed a bug that caused `command -v' and `command -V' to not honor the
path set by the -p option.
bb. Fixed a bug that caused brace expansion to take place too soon in some
compound array assignments.
cc. Fixed a bug that caused programmable completion functions' changes to
READLINE_POINT to not be reflected back to readline.
dd. Fixed a bug that caused the shell to dump core if a trap was executed
during a shell assignment statement.
ee. Fixed an off-by-one error when computing the number of positional
parameters for the ${@:0:n} expansion.
ff. Fixed a problem with setting COMP_CWORD for programmable completion
functions that could leave it set to -1.
gg. Fixed a bug that caused the ERR trap to be triggered in some cases where
`set -e' would not have caused the shell to exit.
hh. Fixed a bug that caused changes made by `compopt' to not persist past the
completion function in which compopt was executed.
ii. Fixed a bug that caused the list of hostname completions to not be cleared
when HOSTNAME was unset.
jj. Fixed a bug that caused variable expansion in here documents to look in
any temporary environment.
kk. Bash and readline can now convert file names between precomposed and
decomposed Unicode on Mac OS X ("keyboard" and file system forms,
respectively). This affects filename completion (using new
rl_filename_rewrite_hook), globbing, and readline redisplay.
ll. The ERR and EXIT traps now see a non-zero value for $? when a parser
error after set -e has been enabled causes the shell to exit.
mm. Fixed a bug that in brace expansion that caused zero-prefixed terms to
not contain the correct number of digits.
nn. Fixed a bug that caused the shell to free non-allocated memory when
unsetting an associative array which had had a value implicitly assigned
to index "0".
oo. Fixed a memory leak in the ${!prefix@} expansion.
pp. Fixed a bug that caused printf to not correctly report all write errors.
qq. Fixed a bug that caused single and double quotes to act as delimiters
when splitting a command line into words for programmable completion.
rr. Fixed a bug that caused ** globbing that caused **/path/* to match every
directory, not just those matching `path'.
ss. Fixed a bug that caused the shell to dump core when running `help' without
arguments if the terminal width was fewer than 7 characters.
2.
Changes to Readline
a.
The SIGWINCH signal handler now avoids calling the redisplay code if
one arrives while in the middle of redisplay.
b.
Changes to the timeout code to make sure that timeout values greater
than one second are handled better.
c.
d.
e.
f.
g.
h.
i.
Fixed a bug that caused incorrect redisplay when the prompt contained
multibyte characters in an `invisible' sequence bracketed by \[ and
\].
j.
3.
a.
b.
Bash's file status checks (executable, readable, etc.) now take file
system ACLs into account on file systems that support them.
c.
Bash now passes environment variables with names that are not valid
shell variable names through into the environment passed to child
processes.
d.
e.
f.
New `complete -E' and `compopt -E' options that work on the "empty"
completion: completion attempted on an empty command line.
g.
h.
i.
j.
The [[ and (( commands are now subject to the setting of `set -e' and the
ERR trap.
k.
The source/. builtin now removes NUL bytes from the file before attempting
to parse commands.
l.
m.
n.
o.
New variable $BASH_XTRACEFD; when set to an integer bash will write xtrace
output to that file descriptor.
p.
q.
The < and > operators to the [[ conditional command now do string
comparison according to the current locale.
r.
Programmable completion now uses the completion for `b' instead of `a'
when completion is attempted on a line like: a $(b c.
s.
t.
u.
The read builtin has a new `-N nchars' option, which reads exactly NCHARS
characters, ignoring delimiters like newline.
4.
a.
b.
c.
When in vi command mode, repeatedly hitting ESC now does nothing, even
when ESC introduces a bound key sequence. This is closer to how
historical vi behaves.
d.
e.
f.
g.
h.
Changes to Bash
a.
Changed the message printed when setlocale(3) fails to only include the
strerror error text if the call changes errno.
b.
Changed trap command execution to reset the line number before running a
trap (except DEBUG and RETURN traps).
c.
d.
e.
Fixed a bug that caused mapfile to not run callbacks for the first line
read.
f.
Fixed a bug that caused mapfile to not honor EOF typed in an interactive
shell.
g.
Fixed the coprocess reaping code to not run straight from a signal handler.
h.
Fixed a bug that caused printf -b to ignore the first % conversion specifier
in the format string on 64-bit systems.
i.
Fixed a bug that caused incorrect word splitting when `:', `=', or `~'
appeared in $IFS.
j.
Fixed a bug that caused data corruption in the programmable completion code
when a shell function called from a completion aborted execution.
k.
Fixed a bug that caused the CPU usage reported by the `time' builtin to be
capped at 100%.
l.
m.
2.
Changes to Readline
a.
Fixed a bug that caused !(...) extended glob patterns to inhibit later
history expansion.
b.
3.
Changes to Bash
a.
b.
Fixed a bug that caused extended shell globbing patterns beginning with
`*(' to not work when used with pattern substitution word expansions.
Changes to Bash
a.
Fixed a bug that caused failed word expansions to set $? but not
PIPESTATUS.
b.
c.
d.
Fixed a bug that caused expansions of $@ and $* to not exit the shell if
the -u option was enabled and there were no posititional parameters.
e.
f.
Fixed a bug that caused the shell to crash after creating 256 process
substitutions during word completion.
2.
Changes to Readline
a.
Fixed a bug that caused redisplay errors when using prompts with invisible
characters and numeric arguments to a command in a multibyte locale.
b.
Fixed a bug that caused redisplay errors when using prompts with invisible
characters spanning more than two physical screen lines.
Changes to Bash
a.
b.
Fixed a bug that caused stray ^? when the expansion of a parameter used
as part of a pattern removal expansion is empty, but part of a nonempty string.
c.
Fixed a bug that could cause strings not converted to numbers by strtol
to be treated as if the conversion had been successful.
d.
The `return' builtin now accepts no options and requires a `--' before
a negative return value, as Posix requires.
e.
Fixed a bug that caused local variables to be created with the empty
string for a value rather than no value.
f.
g.
Fixed a bug that caused `declare var' and `typeset var' to initialize
`var' to the empty string.
h.
i.
Fixed a bug that caused the shell to exit when the `errexit' option is
set and a command in a pipeline returns a non-zero exit status.
j.
Fixed a bug that caused the shell to not run the exit trap in a command
run with `bash -c' under some circumstances.
k.
Fixed a bug that caused parser errors to occasionally not set $? when
running commands with `eval'.
l.
Fixed a bug that caused stray control characters when evaluating compound
array assignments containing $'\x7f' escapes.
m.
n.
Fixed a bug that could cause memory to be freed multiple times when
assigning to COMP_WORDBREAKS.
o.
Fixed a bug that could cause NULL pointer dereferences when COMP_WORDBREAKS
was unset.
2.
Changes to Readline
3.
a.
b.
CDPATH and GLOBIGNORE are ignored when the shell is running in privileged
mode.
c.
d.
4.
a.
Changes to Bash
a.
b.
matching operator:
c.
d.
e.
Fixed several problems with the asprintf and snprintf replacement functions
that caused hangs and crashes.
f.
Fixed a bug in the calculation of the current and previous job that caused
it to refer to incorrect jobs.
g.
Fixed a bug in the check for the validity of a hashed command pathname that
caused unnecessary hash table deletions and additions.
h.
Fixed a bug that caused child processes to inherit the wrong value for $!.
i.
Fixed a bug that caused `.' to fail to read and execute commands from nonregular files such as devices or named pipes.
j.
Fixed a bug in printf formatting for the %x and %X expansions that occurred
on some systems.
k.
Fixed a bug that caused the shell to crash when creating temporary files if
$TMPDIR named a non-writable directory.
l.
Fixed a bug that caused the shell to ignore $TMPDIR when creating temporary
files under some circumstances.
m.
Fixed a bug that caused named pipes created by process substitution to not
be cleaned up.
n.
o.
p.
q.
r.
Fixed a bug that caused compacting the jobs list to drop jobs.
s.
Fixed a bug that caused jumps back to the top-level processing loop from
a builtin command to leave the shell in an inconsistent state.
t.
u.
v.
Fixed a bug that caused the shell to not display $PS2 when the read builtin
reads a line continued with a backslash.
w.
Fixed a bug that caused errors in word splitting when $IFS contained
Fixed bugs that caused problems with output from shell builtins not being
completely displayed on some systems.
y.
z.
Fixed bugs caused by shell builtins not checking for all write errors.
aa. Fixed a problem that caused the shell to dump core if expansions on the
pattern passed to the pattern removal word expansions resulted in expansion
errors.
bb. Fixed a bug that caused bash to loop infinitely after creating and
waiting for 4096 jobs.
cc. Fixed a bug that caused bash to lose the status of a background job under
certain circumstances.
dd. Fixed a bug that caused bash to not look in the temporary environment
when performing variable lookup under certain circumstances.
ee. Fixed a bug that caused bash to close file descriptors greater than 10
when they were used in redirections.
ff. Fixed a problem that caused the shell to attempt to read from the standard
input when called as `bash -i script'.
gg. Fixed a memory leak and variable initialization problems when the -v option
was supplied to `printf' that could cause incorrect results.
hh. Fixed a bug that caused the `read' builtin to count bytes when the -n option
was supplied, rather than (possibly multibyte) characters.
ii. Fixed a bug when displaying a function due to not converting the function
to an external form.
jj. Changed job control initialization to ensure that the shell has a tty
as its controlling terminal before enabling job control.
kk. Fixed a bug with the `test' builtin that caused it to misinterpret
arguments beginning with `-' but containing more than one character.
ll. Fixed bug that could cause the shell to dump core in certain cases where
a command sets the SIGINT disposition to the default.
mm. Fixed a bug in the pattern replacement (affecting both word expansion
and the `fc' builtin) that occurred when the pattern and replacement
strings were empty.
nn. Fixed a bug that caused an arithmetic evaluation error to disable all
further evaluation.
oo. Fixed a bug in pathname expansion that caused it to interpret backslashes
in the pathname as quoting characters.
pp. Fixed a bug in the replacement getcwd() implementation that could cause
memory to be overwritten.
qq. When in Posix mode, the `ulimit' builtin now uses a block size of 512 for
the `-c' and `-f' options.
rr. Brace expansion now allows process substitutions to pass through unchanged.
ss. Fixed a problem in the command name completion code to avoid quoting
escaped special characters twice when the command name begins with a tilde.
tt. Fixed a problem in the printf builtin that resulted in single-byte
output for the "'" escape, even when using multibyte characters.
uu. Fixed a bug that caused the failure exit status to be lost when redirections
attached to a compound command failed.
vv. Fixed a bug that caused the internal random number generator to not be
re-seeded correctly when creating a subshell.
ww. Fixed a bug that could cause the bash replacement getcwd to overwrite
memory.
xx. Fixed a bug that caused the shell to not receive SIGINT if it was sent
while the shell was waiting for a command substitution to terminate, and
make sure the exit status is correct when it does.
yy. Fixed a bug that resulted in the second and subsequent children spawned
by a shell begun to run a command substitution being placed into the
wrong process group.
zz. Fixed a bug that caused the results of successful tilde expansion to be
subject to pathname expansion and word splitting.
aaa. Fixed a bug that could cause the shell to hang if it encountered an
error that caused it to jump back to the top processing loop during a
command substitution or `eval' command.
bbb. Fixed a bug that caused the `read' builtin to use the tty's attributes
instead of those of the file descriptor passed with the -u option when
processing the -n and -d options.
ccc. Fixed a bug that caused incorrect expansion of ${array[@]:foo} if the
first character of $IFS was not whitespace.
ddd. Fixed a bug that occurred when scanning for the ending delimiter of a
${parameter/pat/sub} expansion.
eee. Fixed a bug that caused the shell to inappropriately expand command
substitutions in words when expanding directory names for completion.
fff. Fixed a bug that caused the `fc' builtin to look too far back in the
history list under certain circumstances.
ggg. Fixed a bug that caused a shell running in Posix mode to search $PWD for
a file specified as an argument to source/. when the file was not found
in $PATH.
hhh. Fixed a bug that caused the shell to modify the case of a command word
found via command completion when the shell was performing caseinsensitive completion.
iii. Fixed a bug that caused the shell to search $PATH for an argument to
source/. even when it contained a `/'.
jjj. Fixed a bug that caused brace expansion to misorder expansions when the
locale did not have a collating order like aAbBcC...zZ.
kkk. Fixed a bug that did not allow `set +o history' to have any effect when
run in a startup file or from a sourced file.
lll. Fixed a bug with the precedence of the ?: conditional arithmetic operator.
mmm. Fixed a bug that caused side effects of temporary variable assignments
to persist in the shell environment.
nnn. Fixed a bug that caused the terminal to be left in non-canonical mode
when using editing commands that invoke the an editor on the current
command line.
ooo. Fixed a bug that caused globbing characters and characters in $IFS to not
be quoted appropriately when displaying assignment statements.
ppp. Fixed a bug that caused the `-e' option to be inherited when sourcing a
file or evaluating a command with `eval' even if the return value of the
command was supposed to be ignored.
qqq. Fixed a bug that caused the shell to attempt to created variables with
invalid names if such names appeared in the initial environment.
rrr. Fixed a bug with quote removal in strings where the final character is a
backslash.
sss. Fixed a bug that caused the effects of special variables to persist even
when the variables were unset as part of the shell reinitializing itself
to execute a shell script.
ttt. Fixed a bug that caused the history to not be saved after `history -c' or
`history -d' was executed until a sufficient number of commands had been
saved to the history.
uuu. Bash now parses command substitutions according to Posix rules: parsing
the command contained in $() to find the closing delimiter.
vvv. Fixed a bug that caused traps on SIGCHLD set in a SIGCHLD handler to
not persist.
www. Fixed a bug that didn't allow SIGCHLD to interrupt the `wait' builtin
as Posix specifies.
xxx. Invalid numeric arguments to shell builtins no longer cause the shell to
short-circuit any executing compound command.
yyy. Fixed a bug that caused the exit status to be lost when `break' was
used to short-circuit a loop's execution.
zzz. Fixed a bug that caused stray ^? characters to be left in expansions of
"${array[*]}".
aaaa. Bash now prints better error messages for here documents terminated by
EOF and for identifying the incorrect token in an invalid arithmetic
expression.
bbbb. Fixed a bug in the variable length word expansion that caused it to
incorrectly calculate the number of multibyte characters.
cccc. Fixed a race condition that could result in the top-level shell setting
the terminal's process group to an incorrect value if the process
group was changed by a child of a child of the shell.
dddd. Fixed a bug that caused here documents belonging to commands within a
compound command to be displayed in a syntactially-incorrect form, which
prevented them from being re-read as input.
eeee. The shell displays more warnings about failures to set the locale.
ffff. Fixed a bug that caused the body of a here-document to not be saved to
the history list.
gggg. Fixed a bug that caused configure to incorrectly conclude that FreeBSD
had /dev/fd available, resulting in problems with process substitution.
2.
Changes to Readline
a.
b.
c.
When using the arrow keys in vi insertion mode, readline allows movement
beyond the current end of the line (unlike command mode).
d.
Fixed bugs that caused readline to loop when the terminal has been taken
away and reads return -1/EIO.
e.
f.
Fixed a bug that caused the completion append character to not be reset to
the default after an application-specified completion function changed it.
g.
h.
i.
Fixed a bug that resulted in SIGTERM not being caught or cleaned up.
j.
k.
l.
Fixed a bug in the code that buffers characters received very quickly in
succession which caused characters to be dropped.
m.
n.
Fixed a bug that caused the vi-mode `last command' to be set incorrectly
and therefore unrepeatable.
o.
Fixed a bug that caused readline to disable echoing when it was being used
with an output file descriptor that was not a terminal.
p.
q.
r.
3.
a.
b.
The `help' builtin now prints its columns with entries sorted vertically
rather than horizontally.
c.
d.
There is a new `autocd' option that, when enabled, causes bash to attempt
to `cd' to a directory name that is supplied as the first word of a
simple command.
e.
There is a new `checkjobs' option that causes the shell to check for and
report any running or stopped jobs at exit.
f.
g.
h.
i.
The programmable completion code now uses the same set of characters as
readline when breaking the command line into a list of words.
j.
The block multiplier for the ulimit -c and -f options is now 512 when in
Posix mode, as Posix specifies.
k.
Changed the behavior of the read builtin to save any partial input received
in the specified variable when the read builtin times out. This also
results in variables specified as arguments to read to be set to the empty
string when there is no input available. When the read builtin times out,
it returns an exit status greater than 128.
l.
m.
The `ulimit' builtin now has new -b (socket buffer size) and -T (number
of threads) options.
n.
The -p option to `declare' now displays all variable values and attributes
(or function values and attributes if used with -f).
o.
p.
The `read' builtin has a new -i option which inserts text into the reply
buffer when using readline.
q.
A new `-E' option to the complete builtin allows control of the default
behavior for completion on an empty line.
r.
There is now limited support for completing command name words containing
globbing characters.
s.
t.
The `help' builtin now has a new -d option, to display a short description,
and a -m option, to print help information in a man page-like format.
u.
v.
w.
There is a new shell option: `globstar'. When enabled, the globbing code
treats `**' specially -- it matches all directories (and files within
them, when appropriate) recursively.
x.
y.
The `-t' option to the `read' builtin now supports fractional timeout
values.
z.
a.
b.
c.
d.
e.
f.
g.
h.
i.
Changes to Bash
a.
b.
Fixed a bug in the printf builtin that caused the %q format specifier to
ignore empty string arguments.
c.
d.
Fixed a bug in the read builtin that left spurious escape characters in the
input after processing backslashes when assigning to an array variable.
2.
Changes to Readline
a.
Changes to Bash
a.
b.
c.
d.
e.
Fixed a bug in the variable expansion code that could cause a core dump in
a multi-byte locale.
f.
g.
BASH_COMMAND now retains its previous value while executing commands as the
result of a trap, as the documentation states.
2.
Changes to Readline
a.
b.
c.
Changes to Bash
a.
Fixed a source bug that caused the minimal configuration to not compile.
b.
c.
Changed the [[ and (( compound commands to set PIPESTATUS with their exit
status.
d.
e.
f.
Fixed two bugs with local array variable creation when shadowing a variable
of the same name from a previous context.
g.
Fixed the `read' builtin to restore the correct set of completion functions
if a timeout occurs.
h.
Added code to defer the initialization of HISTSIZE (and its stifling of the
history list) until the history file is loaded, allowing a startup file to
override the default value.
i.
j.
k.
Fixed multibyte support for non-gcc compilers (or compilers that do not
allow automatic array variable sizing based on a non-constant value).
l.
Several fixes to the code that manages the list of terminated jobs and
their exit statuses, and the list of active and recently-terminated jobs
to avoid pid aliasing/wraparound and allocation errors.
m.
Fixed a problem that allowed scripts to die due to SIGINT while waiting
for children, even when started in the background or otherwise ignoring
SIGINT.
n.
Fixed a bug that caused shells invoked as -/bin/bash from not being
recognized as login shells.
o.
Fixed a problem that caused shells in the background to give the terminal
to a process group other than the foreground shell process group.
p.
q.
Fixed the code that handles SIGQUIT to not exit immediately -- thereby
calling functions that may not be called in a signal handler context -but set a flag and exit afterward (like SIGINT).
r.
Changed the brace expansion code to skip over braces that don't begin a
valid matched brace expansion construct.
s.
Fixed `typeset' and `declare' to not require that their shell function
operands to be valid shell identifiers.
t.
Changed `test' to use access(2) with a temporary uid/euid swap when testing
file attributes and running setuid, and access(2) in most other cases.
u.
v.
The `hash' builtin now prints nothing in posix mode when the hash table is
empty, and prints a message to that effect to stdout instead of stderr
when not in posix mode.
w.
Fixed a bug in the extended pattern matching code that caused it to fail to
match periods with certain patterns.
x.
Fixed a bug that caused the shell to dump core when performing filename
generation in directories with thousands of files.
y.
z.
The inheritence of the DEBUG, RETURN, and ERR traps is now dependent only
on the settings of the `functrace' and `errtrace' shell options, rather
than whether or not the shell is in debugging mode.
no recursive
Changes to Readline
a.
b.
c.
Fixed a problem with key sequence translation when presented with the
sequence \M-\C-x.
d.
Fixed a problem that prevented the `a' command in vi mode from being
undone and redone properly.
e.
Fixed a problem that prevented empty inserts in vi mode from being undone
properly.
f.
g.
Fixed output of key bindings (like bash `bind -p') to honor the setting of
convert-meta and use \e where appropriate.
h.
i.
Fixed a bug with creating the prompt for a non-interactive search string
when there are non-printing characters in the primary prompt.
j.
k.
Fixed a bug that could cause the key sequence scanning code to return the
wrong function.
l.
Fixed a problem with the callback interface that caused it to fail when
using multi-character keyboard macros.
m.
Fixed a bug that could cause a core dump when an edited history entry was
re-executed under certain conditions.
n.
Fixed a bug that caused readline to reference freed memory when attmpting
to display a portion of the prompt.
3.
a.
b.
c.
d.
e.
The code that checks for binary files being executed as shell scripts now
checks only for NUL rather than any non-printing character.
f.
4.
a.
b.
c.
The history file reading functions now allow windows-like \r\n line
terminators.
Changes to Readline
a.
Changes to Bash
a.
Fixed a bug that caused a DEBUG trap to overwrite a command string that's
eventually attached to a background job.
b.
Changed some code so that filenames with leading tildes with spaces in the
name aren't tilde-expanded by the bash completion code.
c.
d.
2.
Changes to Readline
a.
b.
Fixed a bug that could cause the terminal special chars to be bound in the
wrong keymap in vi mode.
3.
a.
If compiled for strict POSIX conformance, LINES and COLUMNS may now
override the true terminal size.
4.
a.
Changes to Bash
a.
Fixed a bug that could cause core dumps due to accessing the current
pipeline while in the middle of modifying it.
b.
Fixed a bug that caused pathnames with backslashes still quoting characters
to be passed to opendir().
c.
d.
Fixed a problem with redirection that caused file descriptors greater than
2 to be inappropriately marked as close-on-exec.
e.
f.
g.
Fixed a synchronization problem that could cause core dumps when handling
a SIGWINCH.
h.
i.
j.
Fix for MacOS X so it gets the values for the HOSTTYPE, MACHTYPE, and
OSTYPE variables at build time, to support universal binaries.
k.
Fixed a bug that could cause an exit trap to return the exit status of
the trap command rather than the status as it was before the trap was
run as the shell's exit status.
2.
3.
Changes to Readline
a.
b.
Fixed the vi-mode `U' command to only undo up to the first time insert mode
was entered, as Posix specifies.
c.
Fixed a bug in the vi-mode `r' command that left the cursor in the wrong
place.
4.
a.
b.
When parsing inputrc files and variable binding commands, the parser
strips trailing whitespace from values assigned to boolean variables
before checking them.
Changes to Bash
a.
b.
Fixed a typo in the ulimit builtin to make `x' the right option to
maniuplate the limit on file locks.
c.
d.
e.
Make sure changes to variables bash handles specially (e.g., LC_ALL) are
made when the variable is set in the temporary environment to a command.
f.
Make sure changes to variables bash handles specially (e.g., LC_ALL) are
made when the variable is modified using `printf -v'.
g.
h.
Small fix to the logic for performing tilde expansion in posix mode, so
expansion on the right-hand side of an assignment statement takes place.
i.
j.
Fixed `source' and `.' builtins to not require an executable file when
searching $PATH for a file to source.
k.
Fixed a bug that caused incorrect word splitting in a function when IFS
was declared local, then unset.
l.
Fixed a problem with the `kill' builtin that prevented sending signals
to a process group under certain circumstances when providing a pid < 0.
m.
When in POSIX mode, `pwd' now checks that the value it prints is the same
directory as `.', even when displaying $PWD.
n.
Fixed a problem with the `read' builtin when reading a script from standard
input and reading data from the same file.
o.
Fixed a problem with the `type' and `command' builtins that caused absolute
pathnames to be displayed incorrectly.
p.
q.
The `fc' builtin now removes the `fc' command that caused it to invoke an
editor on specified history entries from the history entirely, rather than
simply ignoring it.
r.
When in POSIX mode, the `v' command in vi editing mode simply invokes vi
on the current command, rather than checking $FCEDIT and $EDITOR.
s.
t.
Fixed a bug that caused core dumps when interrupting loops running builtins
on some systems.
w.
Make sure that some of the functions bash provides replacements for are
not cpp defines.
x.
The code that scans embedded commands for the parser (`...` and $(...)) is
now more aware of embedded comments and their effect on quoted strings.
y.
Changed the `-n' option to the `history' builtin to not reset the number of
history lines read in the current session after reading the new lines from
the history file if the history is being appended when it is written to
the file, since the appending takes care of the problem that the adjustment
was intended to solve.
z.
Improved the error message displayed when a shell script fails to execute
because the environment and size of command line arguments are too large.
aa. A small fix to make sure that $HISTCMD is evaluated whenever the shell is
saving commands to the history list, not just when HISTSIZE is defined.
2.
Changes to Readline
a.
b.
c.
Fixed the redisplay code to avoid core dumps resulting from a poorly-timed
SIGWINCH.
d.
e.
The variable assignment code now ignores whitespace at the end of lines
when assigning to boolean variables.
f.
3.
a.
4.
a.
Changes to Bash
a.
Fixed a bug that caused bash to crash if referencing an unset local array.
b.
c.
d.
e.
Fixed a bug that caused bash to not pass the correct flags for signal
disposition to child processes.
f.
Fixed a bug that caused `fc -l' to list one too many history entries.
g.
h.
i.
Fixed a bug that caused `command -v' to display output if a command was not
found -- it should be silent.
j.
k.
Fixed a bug that caused the `==' operator to the [[ command to not attempt
extended pattern matching.
l.
Fixed the brace expansion code to handle characters whose value exceeds 128.
m.
n.
Fixed a couple of problems with brace expansion where `${' was handled
incorrectly.
o.
Fixed off-by-one error when calculating the upper bound of `offset' when
processing the ${array[@]:offset:length} expansion.
p.
q.
Fixed a bug that caused the shell to ignore the status of the rightmost
command in a pipeline when the `pipefail' option was enabled.
r.
Fixed a completion bug that caused core dumps when expanding a directory
name.
s.
Fixed a bug that prevented `hash -d' from removing commands from the hash
table.
t.
u.
Fixed a bug that caused negative offsets in substring expansion to use the
wrong values.
v.
Fixed a bug in printf that caused it to not return failure on write errors.
w.
x.
y.
z.
aa. The shell now performs correct word splitting when IFS contains multibyte
characters.
bb. The mail checking code now resets the cached file information if the size
drops to 0, even if the times don't change.
cc. A completed command name that is found in $PATH as well as the name of a
directory in the current directory no longer has a slash appended in certain
circumstances: a single instance found in $PATH when `.' is not in $PATH,
and multiple instances found in $PATH, even when `.' is in $PATH.
dd. Incorporated tilde expansion into the word expansion code rather than as a
separately-called function, fixing some cases where it was performed
inappropriately (e.g., after the second `=' in an assignment statement or
in a double-quoted parameter expansion).
ee. Fixed several bugs encountered when parsing compound assignment statements,
so that compound assignments appearing as arguments to builtins are no
longer double-expanded.
ff. Fixed a bug in the command execution code that caused asynchronous commands
containing command substitutions to not put the terminal in the wrong
process group.
gg. Bash now handles the case where the WCONTINUED flag causes waitpid() to
return -1/EINVAL at runtime as well as configuration time.
hh. Fixed parser to generate an error when the pipeline `argument' to `!' or
`time' is NULL.
ii. The shell now takes a little more care when manipulating file descriptors
greater than 9 with the `exec' builtin.
jj. Fixed a bug that caused variable assignments preceding the `command' builtin
preceding a special builtin to be preserved after the command completed in
POSIX mode.
kk. Fixed a bug that allowed variables beginning with a digit to be created.
ll. Fixed a bug that caused a \<newline> to be removed when parsing a $'...'
construct.
mm. A shell whose name begins with `-' will now be a restricted shell if the
remainder of the name indicates it should be restricted.
nn. Fixed a bug that could cause a core dump if FUNCNAME were changed or unset
during a function's execution.
oo. Fixed a bug that caused executing a `return' in a function to not execute
a RETURN trap. The RETURN trap is inherited by shell functions only if
function tracing is globally enabled or has been enabled for that function.
pp. Fixed cases where var[@] was not handled exactly like var, when var is a
scalar variable.
qq. Fixed a bug that caused the first character after a SIGINT to be discarded
under certain circumstances.
rr. Fixed exit status code so that a suspended job returns 128+signal as its
exit status (preventing commands after it in `&&' lists from being
executed).
ss. Fixed a bug that caused the shell parser state to be changed by executing
a shell function as a result of word completion.
tt. Fixed a long-standing bug that caused '\177' characters in variable
values to be discarded when expanded in double-quoted strings.
uu. Fixed a bug that caused $RANDOM to be re-seeded multiple times in a
subshell environment.
vv. Extensive changes to the job management code to avoid the pid-reuse and
pid-aliasing problems caused by retaining the exit status of too many jobs,
but still retain as many background job statuses as POSIX requires.
ww. Fixed a parser bug in processing \<newline> that caused things like
((echo 5) \
(echo 6))
to not work correctly.
xx. `pwd -P' now sets $PWD to a directory name containing no symbolic links
when in posix mode, as POSIX requires.
yy. In posix mode, bash no longer sets $PWD to a name containing no symbolic
links if a directory is chosen from $CDPATH.
zz. The word splitting code now treats an IFS character that is not space,
tab, or newline and any adjacent IFS white space as a single delimiter, as
SUSv3/XPG6 require.
aaa. The `read' builtin now checks whether or not the number of fields read is
exactly the same as the number of variables instead of just assigning the
rest of the line (minus any trailing IFS white space) to the last
variable. This is what POSIX/SUS/XPG all require.
bbb. Fixed a bug that caused `read' to always check whether or not fd 0 was a
pipe, even when reading from another file descriptor.
ccc. Fixed a bug that caused short-circuiting of execution even if the return
value was being inverted.
ddd. Fixed a bug that caused a core dump while decoding \W escapes in PS1 if
PWD was unset.
eee. Fixed a bug in `read' that counted internal quoting characters for the
purposes of `read -n'.
fff. Fixed a bug so that a function definition in a pipeline causes a child
process to be forked at the right time.
ggg. Bash will not attempt to link against a readline library that doesn't
have rl_gnu_readline_p == 1.
hhh. Fixed a bug that caused `read' to consume one too many characters when
reading a fixed number of characters and the Nth character is a backslash.
iii. Fixed a bug that caused `unset' on variables in the temporary environment
to leave them set when `unset' completed.
jjj. Fixed a bug that caused bash to close fd 2 if an `exec' failed and the
shell didn't exit.
kkk. The completion code is more careful to not turn `/' or `///' into `//',
for those systems on which `//' has special meaning.
lll. Fixed a bug that caused command substitution in asynchronous commands to
close the wrong file descriptors.
mmm. The shell no longer prints status messages about terminated background
processes unless job control is active.
nnn. Fixed a bug that prevented multiple consecutive invocations of `history -s'
from adding all the commands to the history list.
ooo. Added a couple of changes to make arithmetic expansion more consistent in
all its contexts (still not perfect).
ppp. Fixed a bug that caused the parser to occasionally not find the right
terminating "`" in an old-style command substitution.
qqq. Fixed a bug that caused core dumps when the shell was reading its noninteractive input from fd 0 and fd 0 was duplicated and restored using a
combination of `exec' (to save) and redirection (to restore).
rrr. Fixed a problem that caused loops in sourced scripts to not be cleaned
up properly when a `return' is executed.
sss. Change internal command substitution completion function to append a slash
to directory names in the command.
2.
Changes to Readline
a.
incorrectly.
b.
Fixed a bug that caused ^P/^N in emacs mode to fail to display the current
line correctly.
c.
d.
Fixed vi-mode searching so that failure preserves the current line rather
than the last line in the history list.
e.
Fixed the vi-mode `~' command (change-case) to have the correct behavior at
end-of-line when manipulating multibyte characters.
f.
Fixed the vi-mode `r' command (change-char) to have the correct behavior at
end-of-line when manipulating multibyte characters.
g.
h.
i.
j.
k.
l.
Fixed a memory leak caused by not freeing the timestamp in a history entry.
m.
Fixed a bug that caused "\M-x" style key bindings to not obey the setting
of the `convert-meta' variable.
n.
Fixed saving and restoring primary prompt when prompting for incremental
and non-incremental searches; search prompts now display multibyte
characters correctly.
o.
Fixed a bug that caused keys originally bound to self-insert but shadowed
by a multi-character key sequence to not be inserted.
p.
q.
r.
s.
t.
The Readline display code no longer sets the location of the last invisible
character in the prompt if the \[\] sequence is empty.
3.
a.
c.
d.
The `bg' builtin now accepts multiple arguments, as POSIX seems to specify.
e.
f.
g.
The `ulimit' builtin has new options: -i (max number of pending signals),
-q (max size of POSIX message queues), and -x (max number of file locks).
h.
A bare `%' once again expands to the current job when used as a job
specifier.
i.
j.
k.
l.
m.
The COMP_WORDBREAKS variable now causes the list of word break characters
to be emptied when the variable is unset.
n.
o.
p.
q.
r.
s.
Bash now sets the extern variable `environ' to the export environment it
creates, so C library functions that call getenv() (and can't use the
shell-provided replacement) get current values of environment variables.
4.
a.
The key sequence sent by the keypad `delete' key is now automatically
bound to delete-char.
b.
c.
Changes to Bash
a.
Fixed a boundary overrun that could cause segmentation faults when the
completion code hands an incomplete construct to the word expansion
functions.
b.
c.
d.
e.
2.
Changes to Readline
a.
Fixed a problem with readline saving the contents of the current line
before beginning a non-interactive search.
b.
c.
Fixed a problem with the vi mode `p' and `P' commands ignoring numeric
arguments.
Changes to Bash
a.
b.
c.
Fixed a bug that caused inappropriate word splitting when a variable was
expanded within a double-quoted string that also included $@.
d.
Fixed a bug that caused `pwd' to not display anything in physical mode
when the file system had changed underneath the shell.
e.
Fixed a bug in the pre- and post- increment and decrement parsing in the
expression evaluator that caused errors when the operands and corresponding
operators were separated by whitespace.
f.
Fixed a bug that caused `history -p' to add an entry to the history list,
counter to the documentation. (Keeps the history expansions invoked by
emacs-mode command line editing from doing that as well.)
g.
Fixed a bug that could cause a core dump if `cd' is asked to print out a
Fixed a bug that caused jobs to be put into the wrong process group under
some circumstances after enabling job control with `set -m'.
i.
`unalias' now
j.
k.
l.
m.
Fixed a few problems with `cd' and `pwd' when asked to operate on pathnames
longer than PATH_MAX characters.
n.
Fixed a memory leak caused when creating multiple local array variables
with identical names.
o.
Fixed a problem with calls to getcwd() so that bash now operates better
when the full pathname to the current directory is longer than PATH_MAX
bytes.
p.
q.
Fixed a bug that caused `umask' to not work correctly when presented
with a mask of all 0s.
r.
s.
Interactive mode now depends on whether or not stdin and stderr are
connected to a tty; formerly it was stdin and stdout. POSIX requires
this.
t.
Fixed vi-mode completion to work more as POSIX specifies (e.g., doing the
right kind of filename generation).
2.
Changes to Readline
a.
Fixed a problem that could cause readline to refer to freed memory when
moving between history lines while doing searches.
b.
c.
Fixed a problem with vi-mode not correctly remembering the numeric argument
to the last `c'hange command for later use with `.'.
d.
e.
Fixed a problem in vi-mode that caused the last text modification command
to not be remembered across different command lines.
f.
Fixed problems with changing characters and changing case at the end of
the line.
3.
a.
The `jobs', `kill', and `wait' builtins now accept job control notation
even if job control is not enabled.
b.
4.
a.
Changes to Bash
a.
Fixes to build correctly when arrays are not compiled into the shell.
b.
Fixed command substitution to run any exit trap defined in the command
substitution before returning; the exit trap is not inherited from the
calling shell.
c.
d.
Fixed processing of octal and hex constants in printf builtin for POSIX.2
compliance.
e.
f.
Fixes to the array subrange extraction code to deal better with sparse
arrays.
g.
Parser errors and other errors that result in the shell exiting now cause
the exit trap to be run.
h.
i.
j.
If an exit trap does not contain a call to `exit', the shell now uses
the exit status of the last command executed before the trap as the exit
status of the shell.
k.
The parser now prompts with $PS2 if it reads a newline while parsing a
compound array assignment statement.
l.
m.
Fixed a bug that caused `return' executed in a trap command to make the
shell think it was still running the trap.
n.
o.
Changed the grammar so that `time' alone on a line times a null command
rather than being a syntax error.
p.
q.
Fixed a bug that could cause core dumps when checking whether a quoted
command name was being completed.
r.
s.
t.
Fixed a bug that caused some key bindings set in an inputrc to be ignored
at shell startup.
u.
v.
w.
Fixed a bug that caused "$@" to expand incorrectly when used as the right
hand side of a parameter expansion such as ${word:="$@"} if the first
character of $IFS was not a space.
x.
y.
Fixed a problem that could cause here documents to not be created correctly
if the system temporary directory did not allow writing.
2.
Changes to Readline
a.
b.
c.
d.
Fixed a bug in the vi-mode `E' command that caused it to skip over the
last character of a word if invoked while point was on the word's
next-to-last character.
e.
f.
g.
h.
i.
3.
a.
b.
c.
The GNU `gettext' package and libintl have been integrated; the shell's
messages can be translated into different languages.
d.
The `\W' prompt expansion now abbreviates $HOME as `~', like `\w'.
e.
The error message printed when bash cannot open a shell script supplied
as argument 1 now includes the name of the shell, to better identify
the error as coming from bash.
4.
a.
b.
c.
d.
e.
Changes to Bash
a.
Fixes so that the shell will compile without some of the default options
defined.
b.
Fixed an error message that did not pass enough arguments to printf.
c.
d.
e.
Fixed a bug that caused the shell to not advance a string pointer over
a null wide character when doing string operations.
f.
Fixed the internal logout code so that shells that time out waiting for
input (using $TMOUT) run ~/.bash_logout.
g.
h.
i.
The ((...)) arithmetic command evaluation code was fixed to not dump core
The ((...)) arithmetic command evaluation code was fixed to not perform
variable assignments while expanding the expression.
k.
l.
m.
Fixed a bug that caused a leading `-' in the shell's name to cause it to
not be recognized as a restricted shell.
n.
Fixed a bug in the arithmetic evaluation code that could cause longjmps
to an invalid location and result in a core dump.
o.
Fixed a bug in the calculation of how many history lines are new in a
single shell session when reading new history lines from a file with
`history -n'.
p.
q.
r.
Fixed a bug in the simple command execution code that caused occasional
core dumps.
s.
The shell does a better job of saving any partial parsing state during
operations which cause a command to be executed while a line is being
entered and parsed.
t.
The completion code now splits words more like the expansion code when
$IFS is used to split.
u.
The locale code does a better job of recomputing the various locale
variable values when LC_ALL is unset.
v.
w.
The shell no longer seg faults if the expanded value of $PS4 is null
and `set -x' is enabled.
x.
Fixed a bug that caused core dumps when a here string expanded to NULL.
y.
The mail checking code now makes sure the mailbox is bigger before
reporting the existence of new mail.
z.
The parser does not try to expand $'...' and $"..." when the appear
within double quotes unless the `extquote' option has been enabled with
`shopt'. For backwards compatibility, it is enabled by default.
aa. Fixed a bug that caused `for x; do ...' and `select x; do ... to use
$@ instead of "$@" for the implicit list of arguments.
bb. Fixed a bug that caused a subshell of a restricted shell (e.g., one
spawned to execute a pipeline) to not exit immediately if attempting
to use a command containing a slash.
cc. Fixed a problem with empty replacements for a pattern that doesn't match
when performing ${param/word/} expansion.
Changes to Readline
a.
b.
c.
Fixed a bug that caused the vi-mode `last command' to be set incorrectly.
d.
Readline no longer tries to read ahead more than one line of input, even
when more is available.
e.
Fixed the code that adjusts the point to not mishandle null wide
characters.
f.
Fixed a bug in the history expansion `g' modifier that caused it to skip
every other match.
g.
Fixed a bug that caused the prompt to overwrite previous output when the
output doesn't contain a newline and the locale supports multibyte
characters. This same change fixes the problem of readline redisplay
slowing down dramatically as the line gets longer in multibyte locales.
h.
History traversal with arrow keys in vi insertion mode causes the cursor
to be placed at the end of the new line, like in emacs mode.
i.
The locale initialization code does a better job of using the right
precedence and defaulting when checking the appropriate environment
variables.
j.
Fixed the history word tokenizer to handle <( and >( better when used as
part of bash.
k.
The overwrite mode code received several bug fixes to improve undo.
l.
m.
The callback character reading interface should not hang waiting to read
keyboard input.
n.
o.
The code that initializes the terminal tracks changes made to the terminal
special characters with stty(1) (or equivalent), so that these changes
are reflected in the readline bindings. New application-callable function
to make it work: rl_tty_unset_default_bindings().
p.
Fixed a bug that could cause garbage to be inserted in the buffer when
changing character case in vi mode when using a multibyte locale.
q.
r.
Undo and redo now work better after exiting vi insertion mode.
s.
Make sure system calls are restarted after a SIGWINCH is received using
SA_RESTART.
t.
u.
v.
The completer now takes multibyte characters into account when looking for
quoted substrings on which to perform completion.
w.
The history search functions now perform better bounds checking on the
history list.
3.
a.
b.
c.
d.
e.
f.
HISTCONTROL may now include the `erasedups' option, which causes all lines
matching a line being added to be removed from the history list.
g.
h.
i.
FUNCNAME has been changed to support the debugger: it's now an array
variable.
j.
for, case, select, arithmetic commands now keep line number information
for the debugger.
k.
l.
m.
New `functrace' and `errtrace' options to `set -o' cause DEBUG and ERR
traps, respectively, to be inherited by shell functions. Equivalent to
`set -T' and `set -E' respectively. The `functrace' option also controls
whether or not the DEBUG trap is inherited by sourced scripts.
n.
The DEBUG trap is run before binding the variable and running the action
list in a `for' command, binding the selection variable and running the
query in a `select' command, and before attempting a match in a `case'
command.
o.
p.
`declare -F' now prints out extra line number and source file information
if the `extdebug' option is set.
q.
r.
New `caller' builtin to provide a call stack for the bash debugger.
s.
The DEBUG trap is run just before the first command in a function body is
executed, for the debugger.
t.
`for', `select', and `case' command heads are printed when `set -x' is
enabled.
u.
v.
w.
x.
New `gnu_errfmt' shopt option; if enabled, error messages follow the `gnu
style' (filename:lineno:message) format.
y.
New `-o bashdefault' option to complete and compgen; if set, causes the
whole set of bash completions to be performed if the compspec doesn't
result in a match.
z.
New `-o plusdirs' option to complete and compgen; if set, causes directory
name completion to be performed and the results added to the rest of the
possible completions.
aa. `kill' is available as a builtin even when the shell is built without
job control.
bb. New HISTTIMEFORMAT variable; value is a format string to pass to
strftime(3). If set and not null, the `history' builtin prints out
timestamp information according to the specified format when displaying
history entries. If set, bash tells the history library to write out
timestamp information when the history file is written.
cc. The [[ ... ]] command has a new binary `=~' operator that performs
extended regular expression (egrep-like) matching.
dd. `configure' has a new `--enable-cond-regexp' option (enabled by default)
to enable the =~ operator and regexp matching in [[ ... ]].
ee. Subexpressions matched by the =~ operator are placed in the new
BASH_REMATCH array variable.
ff. New `failglob' option that causes an expansion error when pathname
expansion fails to produce a match.
gg. New `set -o pipefail' option that causes a pipeline to return a failure
status if any of the processes in the pipeline fail, not just the last
one.
4.
a.
History expansion has a new `a' modifier equivalent to the `g' modifier
for compatibility with the BSD csh.
b.
History expansion has a new `G' modifier equivalent to the BSD csh `g'
modifier, which performs a substitution once per word.
c.
d.
e.
f.
g.
History list entries now contain timestamp information; the history file
functions know how to read and write timestamp information associated
with each entry.
h.
Changes to Bash
a.
b.
Note that we're running under Emacs and disable line editing if
$EMACS == `t'.
Changes to Bash
a.
b.
c.
d.
2.
Changes to Readline
a.
Changes to Bash
a.
b.
Changed the help text for `bind' to make it clear that any command
that may be placed in ~/.inputrc is a valid argument to `bind'.
c.
Added `help' builtin entries for `((', `[[', and arithmetic for.
d.
Check for getservent(); make the service name completion code dependent
on its presence.
f.
g.
h.
i.
j.
k.
Some changes to the multibyte character support code to avoid many calls
to strlen().
l.
Bash now correctly honors setting LANG to some value when LC_ALL does not
already have a value.
m.
Fixed a bug that could cause SIGSEGV when processing nested traps with
trap handlers.
n.
o.
Fixed a bug that caused a syntax error when a command was terminated by
EOF.
2.
a.
There is now support for placing the long help text into separate files
installed into ${datadir}/bash. Not enabled by default; can be turned
on with `--enable-separate-helpfiles' option to configure.
b.
c.
The `echo' builtin now accepts \0xxx (zero to three octal digits following
the `0') in addition to \xxx (one to three octal digits) for SUSv3/XPG6/
POSIX.1-2001 compliance.
3.
Changes to Readline
a.
b.
Fixes from IBM for line wrapping problems when using multibyte characters.
c.
Fixed a problem which caused the display to be messed up when the last
line of a multi-line prompt (possibly containing invisible characters)
was longer than the screen width.
d.
Fixed a problem with the vi-mode `r' command that ocurred on systems with
support for multibyte characters when running in a locale without any
multibyte characters.
Changes to Bash
a.
b.
c.
The `cd' builtin now fails in posix mode when a valid directory cannot be
constructed from a relative pathname argument and the $PWD using pathname
canonicalization, and the -P option has not been supplied. Previously,
the shell would attempt to use what the user typed, leading to weird
values for $PWD and discrepancies between the value of $PWD and the
actual working directory.
d.
The `cd' builtin now resets $PWD when canonicalization fails but a chdir
to the pathname passed as an argument succeeds (when not in posix mode).
e.
The `fc' builtin has been fixed, as POSIX requires, to use the closest
history position in range when given an out-of-range argument.
f.
The history file loading code was changed to allow lines to be saved in
the history list from the shell startup files.
g.
h.
The tilde expansion code was fixed to better recognize when it's being
invoked in an assignment context, which enables expansion after `='
and `:'.
i.
j.
k.
l.
m.
n.
o.
`read -e' no longer does command name completion on the first word on
the line being read.
p.
`select' now returns failure if the read of the user's selection fails.
q.
Fixed a bug that could cause a core dump when setting $PIPESTATUS.
r.
Fixes to not allocate so many job slots when the shell is running a loop
with job control enabled in a subshell of an interactive shell.
s.
t.
u.
Fixed a bug in the `kill' builtin that mishandled negative pid arguments.
v.
The parser is less lenient when parsing assignment statements where the
characters before the `=' don't comprise a valid identifier.
w.
The arithmetic expression evaluation code now honors the setting of the
`-u' option when expanding variable names.
x.
y.
Reimplemented the existing prompt string date and time expansions using
strftime(3), which changed the output of \@ in some locales.
z.
Fixed a bug that could cause a core dump when a special shell variable
(like RANDOM) was converted to an array with a variable assignment.
aa. Fixed a bug that would reset the handler for a signal the user had
trapped to a function that would exit the shell when setting the exit
trap in a non-interactive shell.
bb. Changed the execve(2) wrapper code to check whether or not a failing
command is a directory before looking at whether a `#!' interpreter
failed for some reason.
cc. Fixed a bug in the command printing code so it no longer inserts a `;'
after a newline, which produces a syntax error when reused as input.
dd. The code that expands $PS4 no longer inherits the `-x' flag.
ee. The bash-specific completion functions may now take advantage of the
double-TAB and M-? features of the standard readline completion
functions.
ff. The mail checking code no longer prints a message if the checked file's
size has not increased, even if the access time is less than the
modification time.
gg. Rewrote the variable symbol table code: there is now a stack of
contexts, each possibly including a separate symbol table; there can
be more than one temporary environment supplied to nested invocations
of `./source'; the temporary environments no longer require so much
special-case code; shell functions now handle the temporary environment
and local variables more consistently; function scope exit is faster now
that the entire symbol table does not have to be traversed to dispose of
local variables; it is now easier to push vars from the temporary
environment to the shell's variable table in posix mode; some duplicated
code has been removed.
hh. Regularized the error message printing code; builtin_error is now called
more consistently, and common error message strings are handled by small
functions. This should make eventual message translation easier.
ii. Error messages now include the line number in a script when the shell
is not interactive.
jj. Array subscript expansion now takes place even when the array variable is
unset, so side effects will take place.
kk. Fixed a bug in the SICGHLD child-reaping code so that it won't find
jobs already marked as terminated if the OS reuses pids quickly enough.
ll. Fixed a bug that could cause a signal to not interrupt the `wait'
builtin while it was waiting for a background process to terminate.
mm. A couple of changes to make it easier for multiple shells to share history
files using `history -n', `history -r', and `history -w'.
nn. The `getopts' builtin always increments OPTIND to point to the next
option to be handled when an option is returned, whether it's valid
or not, as POSIX 1003.x-2001 requires.
oo. Changed some parts of the expansion code to avoid allocating and
immediately freeing memory without using the results for anything.
pp. The shell now keeps track of $IFS internally, updating its internal map
each time the variable is assigned a new value (or at local scope exit).
This saves thousands of hash lookups for IFS, which, while individually
cheap, add up.
qq. Rewrote the hash table code: searching and insertion are much faster now,
and it uses a better string hashing function; augmented the function
interface to simplify other parts of the code and remove duplicated code
rr. The shell now uses a simple, generic `object cache' for allocating and
caching words and word lists, which were the major users of
malloc/free.
ss. Fixed the assignment statement parsing code to allow whitespace and
newlines in subscripts when performing array element assignment.
tt. The shell now issues many fewer calls to sigprocmask and other signal
masking system calls.
uu. Fixed the `test' and conditional command file comparison operators to
work right when one file has a non-positive timestamp and the other
does not exist.
vv. Fixed some cases where the special characters '\001' and '\177' in the
values of variables or positional parameters caused incorrect expansion
results.
2.
Changes to Readline
a.
b.
Added some default key bindings for common escape sequences produced by
d.
A bug was fixed in the code that prints possible completions to keep it
from printing empty strings in certain circumstances.
e.
Change the key sequence printing code to print ESC as M\- if ESC is a
meta-prefix character -- it's easier for users to understand than \e.
f.
g.
Fixed the event loop (rl_event_hook) to handle the case where the input
file descriptor is invalidated.
h.
Fixed the prompt display code to work better when the application has a
custom redisplay function.
i.
Changes to make reading and writing the history file a little faster, and
to cope with huge history files without calling abort(3) from xmalloc.
j.
The vi-mode `S' and `s' commands are now undone correctly.
3.
a.
b.
c.
d.
e.
f.
g.
h.
The
i.
A new \D{...} prompt expansion; passes the `...' to strftime and inserts
the result into the expanded prompt.
j.
The shell now performs arithmetic in the largest integer size the
machine supports (intmax_t), instead of long.
k.
l.
m.
New `-o nospace' option for `complete' and `compgen' builtins; suppresses
readline's appending a space to the completed word.
n.
o.
<<< word.
q.
The `complete' and `compgen' builtins now have a new `-s/-A service'
option to complete on names from /etc/services.
r.
`read' has a new `-u fd' option to read from a specified file descriptor.
s.
t.
u.
The `printf' %q format specifier now uses $'...' quoting to print the
argument if it contains non-printing characters.
v.
The `declare' and `typeset' builtins have a new `-t' option. When applied
to functions, it causes the DEBUG trap to be inherited by the named
function. Currently has no effect on variables.
w.
The DEBUG trap is now run *before* simple commands, ((...)) commands,
[[...]] conditional commands, and for ((...)) loops.
x.
y.
The bash debugger in examples/bashdb has been modified to work with the
new DEBUG trap semantics, the command set has been made more gdb-like,
and the changes to $LINENO make debugging functions work better. Code
from Gary Vaughan.
z.
New [n]<&word- and [n]>&word- redirections from ksh93 -- move fds (dup
and close).
a.
b.
When listing completions, and the number of lines displayed is more than
the screen length, readline uses an internal pager to display the results.
This is controlled by the `page-completions' variable (default on).
c.
d.
e.
g.
h.
i.
j.
Changes to Bash
a.
b.
c.
d.
e.
f.
g.
h.
Fixed a configure problem that could cause siglist.o to not be built when
required.
i.
j.
2.
Changes to Readline
a.
b.
Fixed Makefile to not put -I/usr/include into CFLAGS, since it can cause
Changes to Bash
a.
b.
Fixed snprintf to correctly handle the optional precision with the %g and
%G conversions.
c.
Fixed the arithmetic evaluation code to correct the values of `@' and `_'
when translating base-64 constants (they were backwards).
d.
New library functions for formatting long and long long ints.
e.
Fixed a few places where negative array subscripts could have occurred,
mostly as the result of systems using signed characters.
f.
Fixed a few places that assumed a pid_t was no wider than an int.
g.
h.
i.
j.
k.
l.
The `printf' builtin now handles the `ll' and `j' length modifiers
directly, since they can affect the type and width of the argument
passed to printf(3).
m.
n.
o.
p.
Bash no longer attempts to define its own versions of some ctype macros
if they are implemented as functions in libc but not as macros in
<ctype.h>.
q.
r.
s.
Fixed a bug that could cause the wrong status to be returned by a shell
function when the shell is compiled without job control and a null
command containing a command substutition was executed in the function.
t.
u.
v.
w.
x.
y.
z.
a.
b.
The `printf' builtin now handles the %F conversion (just about like %f).
c.
The
Changes to Readline
a.
Fixed a few places where negative array subscripts could have occurred.
b.
Fixed the vi-mode code to use a better method to determine the bounds of
the array used to hold the marks.
c.
Fixed the defines in chardefs.h to work better when chars are signed.
d.
Fixed configure.in to use the new names for bash autoconf macros.
e.
f.
Changes to Bash
a.
b.
c.
d.
Make sure called functions have a prototype in scope, to get the arguments
and return values right instead of casting. Removed extern function
declarations from C source files that were already included in header
files.
e.
f.
g.
h.
Augmented the bash malloc to pass in the file and line number information
for each malloc, realloc, and free. This should result in better error
messages.
i.
j.
Augmented the bash malloc with optional tracing and registering allocated
and freed memory.
k.
Prompt string decoding now saves and restores the value of $? when it
expands the prompt string, so command substitutions don't change $?.
i.
Array indices are now `long', since shell arithmetic is performed as long,
and the internal arrayind_t type is used consistently.
j.
k.
Fixed a bad call to builtin_error that could cause core dumps when making
local variables.
l.
m.
n.
The time formatting code no longer uses absolute indices into a buffer,
because the buffer size changes depending on the size of a `time_t'.
o.
`umask' now prints four digits when printing in octal mode, for
compatibility with other shells.
p.
Lots of changes to the `printf' builtin from Paul Eggert: it handles `L'
formats and long doubles better, and internal functions have been
simpified where appropriate.
q.
Some `time_t' fixes for machines were a time_t is bigger than a long.
r.
s.
t.
Added code that checks for ascii before calling any of the is* ctype
functions.
u.
Changed some places where a `char' was used as an array subscript to use
`unsigned char', since a `char' can be negative if it's signed by default.
v.
Lots of changes to the `ulimit' builtin from Paul Eggert to add support
for the new POSIX-200x RLIM_SAVED_CUR and RLIM_SAVED_MAX values and
simplify the code.
w.
x.
y.
z.
aa. The malloc error reporting code now attempts to print the file and line
number of the call that caused the error.
bb. Changed the redirection error reporting code to catch EBADF errors and
report the file descriptor number rather than the file being redirected
to or from (e.g., things like `exec 4242<x' where 4242 is an out-of-range
file descriptor).
cc. `printf', `echo -e', and the $'...' code now process only two hex digits
after a `\x' escape sequence for compatibility with other shells, and
the documentation was changed to note that the octal and hex escape
sequences result in an eight-bit value rather than strict ASCII.
2.
Changes to Readline
a.
b.
Readline defaults to not echoing the input and lets the terminal
initialization code enable echoing if there is a controlling terminal.
c.
The key binding code now processes only two hex digits after a `\x'
escape sequence, and the documentation was changed to note that the
octal and hex escape sequences result in an eight-bit value rather
than strict ASCII.
3.
a.
The builtin `ulimit' now takes two new non-numeric arguments: `hard',
meaning the current hard limit, and `soft', meaning the current soft
limit, in addition to `unlimited'
b.
c.
4.
a.
Changes to Bash
a.
b.
bashbug now uses $TMPDIR, defaulting to /tmp, and uses mktemp(1) more
portably.
c.
d.
e.
Fixed a typo in the /dev/fd redirection code, better checks for valid
numeric fds in /dev/fd.
f.
Fixed many parts of the shell to handle integer overflow more gracefully
and to do more stringent checks for valid numbers.
g.
h.
Fixed an uninitialized variable problem that could cause the shell to core
dump when replacing characters in a string.
i.
New mechanism for updating the patch level when official patches are
released (patchlevel.h).
j.
k.
`bash -i filename'.
l.
m.
n.
Startup files and files read with source or `.' are no longer required to
be regular files.
o.
p.
r.
s.
t.
Fixed the process substitution code to cope better when stdin is closed.
v.
Fixes, mostly from Paul Eggert, for a few possible buffer overflows in
the shell.
w.
Fixes from Paul Eggert to avoid most of the type casts in the shell code,
and use more appropriate types for a number of variables.
x.
y.
z.
The loadable `getconf' builtin is now much more complete, and will become
part of the shell in the future.
kk. Fixed the job control code to force an asynchronous process's standard
input to /dev/null only if job control is not active.
ll. Fixed a possible infinite recursion problem when `fc ""=abc' (a null
pattern) is used to re-execute a previous command.
mm. Fixed `declare [-a] var=value' to assign VALUE to element 0 if VAR is an
array variable. Similarly for `declare [-a] var[N]=value'. This is like
ksh93.
nn. Fixed a bug that caused `read -a aname' to work even if ANAME had been
declared readonly.
oo. Fixed a possible integer overflow problem when constructing names for
temporary files.
2.
a.
b.
Added support for builtin printf "'" flag character as per latest POSIX
drafts.
c.
Support for POSIX.2 printf(1) length specifiers `j', `t', and `z' (from
ISO C99).
d.
e.
f.
g.
New `\A' prompt string escape sequence; expands to time in 24 HH:MM format.
h.
New `-A group/-g' option to complete and compgen; does group name
completion.
i.
New `-t' option to `hash' to list hash values for each filename argument.
j.
New [-+]O invocation option to set and unset `shopt' options at startup.
k.
l.
The ksh-like `ERR' trap has been added. The `ERR' trap will be run
whenever the shell would have exited if the -e option were enabled.
It is not inherited by shell functions.
m.
`readonly', `export', and `declare' now print variables which have been
given attributes but not set by assigning a value as just a command and
a variable name (like `export foo') when listing, as the latest POSIX
drafts require.
n.
`bashbug' now requires that the subject be changed from the default.
o.
p.
`for' loops now allow empty word lists after `in', like the latest POSIX
login_shell.
drafts require.
3.
Changes to Readline
a.
b.
c.
d.
Fixed a trivial typo that made the vi-mode `dT' command not work.
e.
Fixed the tty code so that ^S and ^Q can be inserted with rl_quoted_insert.
f.
g.
4.
a.
b.
c.
d.
e.
f.
The incremental search code remembers the last search string and uses
it if ^R^R is typed without a search string.
Changes to Bash
a.
Make sure we note that the first line of a multi-line command was not
saved in the history if the tests for HISTCONTROL succeed, but the
HISTIGNORE check fails.
b.
Fixed a bug in the pattern matching code that caused `[' to be treated
as a special character inside a `[...]' bracket expression.
c.
Fixed a bug in the pattern matching code that caused `]' to terminate
a bracket expression even if it was the first character after the `['
(or a leading `!' or `^').
d.
e.
If the OS does not support an exec(2) magic number of `#!', make sure we
have a non-null interpreter name before attempting to execute it.
f.
g.
h.
Fixed a problem that caused the `\W' prompt string escape sequence to
expand to nothing when $PWD was `//'.
i.
j.
2.
Changes to Readline
a.
b.
c.
3.
a.
Changes to Bash
a.
b.
c.
Fixed a bug that caused $(< file) to not work in a (...) subshell.
d.
e.
Fixed a bug that caused bash to get its input pointer out of sync when
reading commands through a pipe and running a command with standard
input redirected from a file.
f.
Made a change so that command completion now makes about half as many
stat(2) calls when searching the $PATH.
g.
h.
i.
In POSIX mode, `break' and `continue' do not complain and return success
if called when the shell is not executing a loop.
j.
k.
l.
m.
n.
Changed some of the job control messages to display the text required by
POSIX.2 when the shell is in POSIX mode.
o.
2.
Changes to Readline
a.
b.
c.
The history file writing and truncation functions now return a useful
status on error.
d.
3.
a.
4.
a.
b.
c.
d.
The list of characters that separate words for the history tokenizer is
now settable with a variable: history_word_delimiters. The default
value is as before.
Changes to Bash
a.
Changes to allow shared library and object building on the GNU Hurd.
b.
Fixes to the way exported functions are placed into the environment and
cached.
c.
The globbing library once again respects locales when processing ranges
in bracket expressions while doing pattern matching.
d.
e.
f.
g.
Fixed a bug in the execution of shell scripts that caused the effects of
$BASH_ENV to be undone in some cases.
h.
Fixed several bugs that made `bash [-i] /dev/stdin' not work correctly.
i.
Several changes to the job control code to avoid some signal state
manipulation.
j.
The Bash malloc no longer blocks signals as often, which should make it
faster.
k.
Fixed a parsing bug that did not allow backslash to escape a single quote
inside a $'...' construct.
l.
m.
n.
Bash now sets the file descriptor it uses to save the file descriptor
opened on a shell script to close on exec.
o.
p.
q.
Fixed a bug that caused subshells started to run executable shell scripts
without a leading `#!' to incorrectly inherit an argument list preceding
a shell builtin (like such a script called from a script sourced with `.',
where there were variable assignments preceding the `.' command)
r.
s.
HOSTTYPE, OSTYPE, and MACHTYPE are set only if they do not have values
when the shell is started.
t.
Fixed a bug that caused SIGINT to kill shell scripts after the script
called `wait'.
u.
The `fc' builtin now tries to create its temporary files in the directory
named by $TMPDIR.
v.
Bash no longer calls any Readline functions or uses any Readline variables
not declared in readline.h.
w.
x.
y.
z.
Fixed a problem with the `-nt' and `-ot' binary operators for the
`test/[' builtin and the `[[' conditional command that caused wrong
return values if one of the file arguments did not exist.
aa. Fixed a bug that caused non-interactive shells which had previously
executed `shopt -s expand_aliases' to fail to expand aliases in a
command like `(command) &'.
2.
Changes to Readline
a.
Changes to make most (but not yet all -- there is still crlf()) of the
exported readline functions declared in readline.h have an rl_ prefix.
b.
c.
Fixed a bug in rl_forward that could cause the point to be set to before
the beginning of the line in vi mode.
d.
e.
Fixed a file descriptor leak in the history file manipulation code that
was tripped when attempting to truncate a non-regular file (like
/dev/null).
f.
Some existing variables are now documented and part of the public
interface (declared in readline.h): rl_explict_arg, rl_numeric_arg,
rl_editing_mode, rl_last_func.
g.
3.
a.
b.
4.
a.
b.
c.
Changes to Bash
a.
b.
c.
d.
e.
f.
g.
Fixed a bug in the IFS word splitting code to make a non-whitespace IFS
character preceded by IFS whitespace part of the current delimiter rather
than generating a separate field.
h.
i.
Command substitution now ignores NUL bytes in the command output, and the
parser ignores them on input.
j.
A fix was made to the job control code to prevent hanging processes when
the shell thinks background processes are running but the kernel returns
-1/ECHILD from waitpid().
k.
`pwd' now prints an error message if the write fails when displaying the
current directory.
l.
When in POSIX mode, the shell prints trap dispostions without a leading
`SIG' in the signal specification.
m.
Fixed a parser bug that caused the current command's line count to be
messed up by a compound array assignment.
n.
Fixed a bug in the unwind-protect code that caused bad behavior on machines
where ints and pointers are not the same size.
o.
p.
q.
r.
Bash no longer assumes that getcwd() will return any useful error message
in the buffer passed as an argument if the call fails.
s.
The `source', `.', and `fc' builtins no longer check whether a file is
binary before reading commands from it.
t.
Subshells no longer turn off job control when they exit, since that
sometimes resulted in the terminal being reset to the wrong process
group.
MacOS X.
u.
The history code no longer tries to save the second and subsequent lines
of a multi-line command if the first line was not saved.
v.
The history saving code now does a better job of saving blank lines in a
multi-line command.
w.
x.
y.
z.
aa. When an interactive login shell starts, if $PWD and $HOME refer to the
same directory but are not the same string, $PWD is set to $HOME.
bb. Fixed `printf' to handle invalid floating point numbers better.
cc. Temporary files are now created with random filenames, to improve security.
dd. The readline initialization code now binds the custom bash functions and
key bindings after the readline defaults are set up.
ee. Fixed the `source' builtin to no longer overwrite a shell function's
argument list, even if the sourced file changes the positional parameters.
ff. A bug fix was made in the expansion of `$*' in contexts where it should
not be split, like assignment statements.
gg. Fixed a bug in the parameter substring expansion to handle conditional
arithmetic expressions ( exp ? val1 : val2 ) without cutting the expression
off at the wrong `:'.
hh. The `<>' redirection is no longer subject to the current setting of
`noclobber', as POSIX.2 specifies.
ii. Fixed a bug in the conditional command parsing code that caused expressions
in parentheses to occasionally be parsed incorrectly.
jj. Fixed a bug in the ((...)) arithmetic command to allow do...done or
{...} to follow the )) without an intervening list terminator.
kk. `printf' now treats `\E' the same as `\e' when performing backslash escape
expansion for the `%b' format specifier.
ll. When in POSIX mode, the shell no longer searches the current directory for
a file to be sourced with `.' or `source' if `.' is not in $PATH.
mm. Interactive comments are no longer turned off when POSIX mode is disabled.
nn. The UID, EUID, HOSTNAME variables are not set if they are in the shell's
environment when it starts up.
oo. Fixed a bug in the `command' builtin so the effect of a command like
Changes to Readline
a.
b.
A fix was made to the history word tokenization code to avoid attempts to
dereference a null pointer.
c.
d.
e.
f.
g.
h.
Many variables, function arguments, and function return values are now
declared `const' where appropriate, to improve behavior when linking with
C++ code.
i.
The control character detection code now works better on systems where
`char' is unsigned by default.
j.
The vi-mode numeric argument is now capped at 999999, just like emacs mode.
k.
m.
n.
The ding() convenience function has been renamed to rl_ding(), though the
old function is still defined for backwards compatibility.
o.
p.
The functions shared by readline and bash (linkage is satisfied from bash
when compiling with bash, and internally otherwise) now have an sh_ prefix.
q.
Changed the shared library creation procedure on Linux and BSD/OS 4.x so
that the `soname' contains only the major version number rather than the
major and minor numbers.
r.
Fixed a redisplay bug that occurred when the prompt spanned more than one
physical line and contained invisible characters.
3.
a.
b.
The /dev/tcp and /dev/udp redirections now accept service names as well as
port numbers.
c.
`complete' and `compgen' now take a `-o value' option, which controls some
of the aspects of that compspec. Valid values are:
default - perform bash default completion if programmable
completion produces no matches
dirnames - perform directory name completion if programmable
completion produces no matches
filenames - tell readline that the compspec produces filenames,
so it can do things like append slashes to
directory names and suppress trailing spaces
4.
a.
b.
c.
Changes to Bash
a.
b.
A bug was fixed in the expansion of "${@:-}" when there are positional
parameters.
c.
d.
The matches generated for a word by the `-W' argument to complete and
compgen are now matched against the word being completed, and only
matches are returned as the result.
e.
Some fixes were made for systems which do not restart read(2) when a
signal caught by bash is received.
f.
A bug was fixed which caused the umask to be set to 0 when an invalid
symbolic mode mask was parsed.
g.
Fixed a bug that could cause a core dump if a SIGCHLD was received while
performing an assignment statement using command substitution.
h.
2.
Changes to Readline
a.
3.
a.
The LC_NUMERIC variable is now treated specially, and used to set the
LC_NUMERIC locale category for number formatting, e.g., when `printf'
displays floating-point numbers.
------------------------------------------------------------------------------
Changes to Bash
a.
b.
Fixed a bug where the current prompt would be set to $PS2 at startup.
c.
d.
Several changes were made to the code that tokenizes an input line for
the programmable completion code. Shell metacharacters will now appear
as individual words in the word list passed to the completion functions.
Some of the example completion shell functions were changed to understand
redirection operators.
e.
A bug was fixed that, under obscure circumstances, could confuse the
parser when a shell function was run by the programmable completion code.
f.
A bug was fixed in the ulimit builtin for systems not using getrlimit().
g.
The execution code now propagates the correct exit status back to the rest
of the code if the return value of a subshell command was being inverted.
Some new test cases for inverting return values with the `!' reserved
word have been added.
h.
i.
A bug that caused bash to check the wrong process in a pipeline for
abnormal termination (and consequently resetting the terminal attributes)
was fixed.
j.
2.
Changes to Readline
1.
Changes to Bash
a.
2.
A change was made to the string evaluation code (used for command
substitution, `eval', and the `.' builtin) to fix an obscure core
dump on alpha machines.
3.
4.
5.
A bug that could cause a core dump by freeing memory twice during a call
to `eval' if `set -u' had been enabled and an undefined variable was
Changes to Bash
a.
Bash should run the appropriate startup files when invoked by ssh2.
b.
c.
d.
e.
f.
g.
Fixed a bug which caused the locale to not be reset correctly when
LC_ALL was unset.
h.
i.
If the shell exits while in a function, make sure that any trap on EXIT
doesn't think the function is still executing.
j.
Bashbug now tries harder to find a usable editor if $EDITOR is not set,
rather than simply defaulting to `emacs'.
k.
Changes to the scripts that guess and canonicalize the system type, from
the latest `automake' distribution via Debian.
l.
When using named pipes for process substitution, make sure the file
descriptors opened for reading are set to non-blocking mode.
m.
n.
When not in literal-history mode, shell comment lines are not added to
the history list.
o.
p.
The prompt string decoding code now backslash-quotes only characters that
are special within double quotes when expanding the \w and \W escape
sequences.
q.
Fixed a bug in the prompt decoding code that could cause a non-interactive
shell to seg fault if `\u' was used in PS4 and the shell was in xtrace
mode.
r.
s.
Changed the tilde expansion code for Cygwin systems to avoid creating
pathnames beginning with `//' if $HOME == `/'.
t.
Fixed a couple of autoconf tests to avoid creating files with fixed names
in /tmp.
u.
The `trap' and `kill' builtins now know the names of the POSIX.1b realtime signals on systems which support them.
2.
Changes to Readline
a.
Fixed a problem with the single-quote quoting function that could cause
buffer overflows.
b.
3.
a.
b.
Changes to Bash
a.
b.
c.
d.
e.
Changed the code the removes named pipes created for the <(...) and >(...)
expansions to defer removal until after any current shell function has
finished executing.
f.
g.
2.
a.
Changes to Bash
a.
The file descriptor from which the shell is reading a script is now
moved to a file descriptor above the user-addressible range.
c.
d.
e.
The shell no longer modifies the signal handler for SIGPROF, allowing
profiling again on certain systems.
f.
The shell checks for a new window size, if the user has requested it,
after a process exits due to a signal.
g.
h.
i.
Some changes were made for --dump-po-strings mode when writing strings
with embedded newlines.
j.
The code that caches export strings from the initial environment now
duplicates the string rather than just pointing into the environment.
k.
The filename completion quoting code now uses single quotes by default
if the filename being completed contains newlines, since \<newline>
has a special meaning to the parser.
l.
Bash now uses typedefs bits32_t and u_bits32_t instead of int32_t and
u_int32_t, respectively to avoid conflicts on certain Unix versions.
m.
n.
o.
p.
q.
Fixed a cosmetic problem in the source that caused the shell to not
compile if DPAREN_ARITHMETIC was not defined but ARITH_FOR_COMMAND was.
r.
Fixed a bug in the here-document code tripped when the file descriptor
opened to the file containing the text of the here document was the
same as a redirector specified by the user.
s.
Fixed a bug where the INVERT_RETURN flag was not being set for `pipeline'
in `time ! pipeline'.
t.
Fixed a bug with the `wait' builtin which manifested itself when an
interrupt was received while the shell was waiting for asynchronous
processes in a shell script.
u.
Fixed the DEBUG trap code so that it has the correct value of $?.
v.
Fixed a bug in the parameter pattern substitution code that could cause
x.
y.
z.
Changes to Readline
a.
Fixed a bug in the redisplay code for lines with more than 256 line
breaks.
b.
c.
d.
3.
a.
b.
Changes to Bash
a.
Fixed a bug that could cause core dumps when performing substring
expansion.
b.
Solaris, OSF/1
c.
d.
The code that implements `eval' was changed to save the value of the
current prompt, so an eval in a shell function called by the programmable
completion code will not change the prompt to $PS2.
e.
f.
Fixed a bug that caused the expansion code to occasionally dump core if
IFS contained characters > 128.
g.
h.
i.
The $'...' and $"..." constructs are now added to the history correctly
if they contain newlines and command-oriented history is enabled.
j.
2.
Changes to Readline
a.
The history file code now uses O_BINARY mode when reading and writing
the history file on cygwin32.
3.
a.
b.
c.
d.
Unsetting HOSTFILE now clears the list of hostnames used for completion.
4.
a.
Changes to Bash
a.
b.
Interix, Rhapsody
d.
The string resulting from $'...' is now requoted to avoid any further
expansion.
e.
The $'...' quoting syntax now allows backslash to escape a single quote,
for ksh-93 compatibility.
f.
The $"..." quoting syntax now escapes backslashes and double quotes in
the translated string when displaying them with the --dump-po-strings
option.
g.
h.
Fixes were made to the extended globbing code to handle embedded (...)
patterns better.
i.
Some improvements were made to the code that unsets `nodelay' mode on
the file descriptor from which bash is reading input.
j.
Some changes were made to the replacement termcap library for better
operation on MS-DOS.
k.
Some changes were made to the tilde expansion code to handle backslash
as a pathname separator on MS-DOS.
l.
The source has been reorganized a little bit -- there is now an `include'
subdirectory, and lib/posixheaders has been removed.
m.
n.
The expansion of $- will include `c' and `s' when those options are
supplied at shell invocation.
o.
p.
The arithmetic expansion code was fixed to not need the value of a
variable being assigned a value (fixes the "ss=09; let ss=10" bug).
q.
r.
s.
Fixed a bug that would cause the bashrc file to be sourced inappropriately
when bash is started by sshd.
t.
u.
v.
w.
The code that parses the words in a compound array assignment was
simplified considerably and should work better now.
x.
y.
2.
Changes to Readline
a.
b.
c.
rl-yank-nth-arg now leaves the history position the same as when it was
called.
d.
e.
f.
g.
h.
Some fixes were made to the redisplay code for better operation on MS-DOS.
i.
The quoted-insert code will now insert tty special chars like ^C.
j.
A bug was fixed that caused the display code to reference memory before
the start of the prompt string.
k.
l.
A bug was fixed in readline's signal handling that could cause infinite
recursion in signal handlers.
m.
A bug was fixed that caused the point to be less than zero when rl_forward
was given a very large numeric argument.
n.
The vi-mode code now gets characters via the application-settable value
of rl_getc_function rather than calling rl_getc directly.
3.
a.
The history builtin has a `-d offset' option to delete the history entry
at position `offset'.
b.
The prompt expansion code has two new escape sequences: \j, the number of
active jobs; and \l, the basename of the shell's tty device name.
c.
The `bind' builtin has a new `-x' option to bind key sequences to shell
commands.
d.
e.
The `help' builtin has a `-s' option to just print a builtin's usage
synopsys.
f.
h.
i.
j.
k.
l.
m.
4.
a.
b.
c.
d.
e.
f.
g.
Changes to Bash
a.
b.
A bug was fixed in the `read' builtin that caused occasional spurious
failures when using `read -e'.
c.
The version code needed to use the value of the cpp variable
CONF_MACHTYPE rather than MACHTYPE.
d.
A new test was added to exercise the command printing and copying code.
e.
Changes to Bash
a.
b.
c.
d.
Slight changes to how the HTML versions of the bash and readline manuals
are generated.
e.
f.
Don't include the bash malloc on all variants of the alpha processor.
g.
h.
Fixed a bug that manifested itself when shell functions were called
between calls to `getopts'.
i.
j.
Fixed a bug in the command execution code that caused child processes
to occasionally have the wrong value for $!.
2.
Changes to Readline
a.
3.
4.
a.
b.
Changes to Bash
a.
A change was made to the help text for `{...}' to make it clear that a
semicolon is required before the closing brace.
b.
A fix was made to the `test' builtin so that syntax errors cause test
to return an exit status > 1.
c.
d.
e.
f.
Some fixes were made to the globbing code to handle extended glob patterns
which immediately follow a `*'.
g.
A fix was made to the command printing code to ensure that redirections
following compound commands have a space separating them from the rest
of the command.
h.
i.
A fix was made so that loops containing `eval' commands in commands passed
to `bash -c' would not exit prematurely.
j.
Some changes were made to the job reaping code when the shell is not
interactive, so the shell will retain exit statuses longer for examination
by `wait'.
k.
l.
m.
n.
A fix was made to the globbing code so that extended globbing patterns
will correctly match `.' in a bracket expression.
2.
Changes to Readline
a.
A fix was made to the completion code in which a typo caused the wrong
value to be passed to the function that computed the longest common
prefix of the list of matches.
b.
3.
a.
A change was made to the startup file code so that any shell begun with
the `--login' option, even non-interactive shells, will source the login
shell startup files.
4.
a.
Rhapsody,
Changes to Bash
a.
b.
The texi2dvi and texi2html scripts were updated to the latest versions
from the net.
c.
The configure tests that determine which native type is 32 bits were
changed to not require a compiled program.
d.
e.
The `printf' test uses `diff -a' if it's available to prevent confusion
due to the non-ascii output.
f.
g.
h.
i.
Some new loadable builtins were added: id, printenv, sync, whoami, push,
mkdir. `pushd', `popd', and `dirs' can now be built as regular or
loadable builtins from the same source file.
j.
Changes were made to `printf' to handle NUL bytes in the expanded format
string.
k.
The various `make clean' Makefile targets now descend into lib/sh.
l.
The `type' builtin was changed to use the internal `getopt' so that things
like `type -ap' work as expected.
m.
n.
There is a new autoconf macro used to find which basic type is 64 bits.
o.
Dynamic linking and loadable builtins should now work on SCO 3.2v5*,
AIX 4.2 with gcc, Unixware 7, and many other systems using gcc, where
the `-shared' options works correctly.
p.
A bug was fixed in the bash filename completion code that caused memory to
be freed twice if a directory name containing an unset variable was
completed and the -u option was set.
q.
The prompt expansion code now quotes the `$' in the `\$' expansion so it
is not processed by subsequent parameter expansion.
r.
Fixed a parsing bug that caused a single or double quote after a `$$' to
trigger ANSI C expansion or locale translation.
s.
Fixed a bug in the globbing code that caused quoted filenames containing
no globbing characters to sometimes be incorrectly expanded.
t.
u.
Added `do', `then', `else', `{', and `(' to the list of keywords that may
precede the `time' reserved word.
v.
w.
The conditional command execution code now treats `=' the same as `=='
for deciding when to perform pattern matching.
x.
The `-e' option no longer causes the shell to exit if a command exits
with a non-zero status while running the startup files.
y.
z.
aa. The parser was fixed to obey the POSIX.2 rules for finding the closing
`}' in a ${...} expression.
bb. The history file is now opened with mode 0600 rather than 0666, so bash
no longer relies on the user's umask being set appropriately.
cc. Setting LANG no longer causes LC_ALL to be assigned a value; bash now
relies on proper behavior from the C library.
dd. Minor changes were made to allow quoted variable expansions using
${...} to be completed correctly if there is no closing `"'.
ee. Changes were made to builtins/Makefile.in so that configuring the shell
with `--enable-profiling' works right and builtins/mkbuiltins is
generated.
2.
Changes to Readline
a.
b.
c.
Some changes were made to the key binding code to fix memory leaks and
better support Win32 systems.
d.
Fixed a silly typo in the paren matching code -- it's microseconds, not
milliseconds.
e.
f.
The readline.h public header file now includes function prototypes for
all readline functions, and some changes were made to fix errors in the
source files uncovered by the use of prototypes.
g.
h.
i.
Fixed a bug in the display code that caused core dumps if the prompt
string length exceeded 1024 characters.
j.
The menu completion code was fixed to properly insert a single completion
if there is only one match.
k.
A bug was fixed that caused the display code to improperly display tabs
after newlines.
3.
a.
b.
c.
d.
4.
a.
b.
c.
d.
e.
f.
These were
Changes to Bash
a.
A bug that caused the bash readline support to not compile unless aliases
and csh-style history were configured into the shell was fixed.
b.
Fixed a bug that could cause a core dump when here documents contained
more than 1000 characters.
c.
Fixed a bug that caused a CDPATH entry of "" to not be treated the same
as the current directory when in POSIX mode.
d.
Fixed an alignment problem with the memory returned by the bash malloc,
so returned memory is now 64-bit aligned.
e.
f.
Fixes to support/config.sub for: alphas, SCO Open Server and Open Desktop,
Unixware 2, and Unixware 7.
g.
Fixes to the pattern matching code to make it work correctly for eight-bit
characters.
h.
Fixed a problem that occasionally caused the shell to display the wrong
value for the new working directory when changing to a directory found
in $CDPATH when in physical mode.
i.
Fixed a bug that caused core dumps when using conditional commands in
shell functions.
j.
Fixed a bug that caused the printf builtin to loop forever if the format
string did not consume any of the arguments.
k.
l.
Fixed a bug that could cause a core dump when completing hostnames if
the number of matching hostnames was an exact multiple of 16.
m.
Fixed a bug that caused the shell to fork too early when a command
such as `%2 &' was given.
2.
Changes to Readline
a.
Fixed a problem with redisplay that showed up when the prompt string was
longer than the screen width and the prompt contained invisible characters.
Changes to Bash
a.
A bug was fixed that caused the terminal process group to be set
incorrectly when performing command substitution of builtins in a
pipeline.
Changes to Bash
a.
b.
c.
d.
Fixed a bug that caused the shell not to compile if configured with
dparen arithmetic but without aliases.
e.
Fixed a bug that caused the input stream to be switched when assigning
empty arrays with `bash -c'.
f.
A bug was fixed in the readline expansion glue code that caused bash to
dump core when expanding lines with an unclosed single quote.
g.
A fix was made to the `cd' builtin so that using a non-empty directory
from $CDPATH results in an absolute pathname of the new current working
directory to be displayed after the current directory is changed.
h.
Fixed a bug in the variable assignment code that caused the shell to
dump core when referencing an unset variable with `set -u' enabled in
an assignment statement preceding a command.
i.
Fixed a bug in the exit trap code that caused reserved words to not be
recognized under certain circumstances.
j.
k.
l.
The `kill' builtin now prints a usage message if it is not passed any
arguments.
Changes to Bash
a.
A few compilation bugs were fixed in the new extended globbing code.
b.
c.
d.
e.
The code that creates here-documents now behaves better if the file it's
trying to create already exists for some reason.
f.
Fixed a problem with the extended globbing code that made patterns like
`x+*' expand incorrectly.
g.
The prompt string expansion code no longer quotes tildes with backslashes.
h.
i.
Fixed a bug with strsub() that caused core dumps when executing `fc -s'.
j.
The mail checking code now ensures that it has a valid default mailpath.
k.
l.
A bug was fixed in the history saving code so that functions are saved
in the history list correctly if `cmdhist' is enabled, but `lithist'
is not.
m.
A bug was fixed that caused printf overflows when displaying error
messages.
n.
o.
p.
Some updates were made to support/config.guess from the GNU master copy.
q.
Some changes were made to the autoconf support for Solaris 2.6 large
files.
r.
The `command' builtins now does the right thing when confstr(3) cannot
find a value for _CS_PATH.
s.
t.
Using the `-P' option to `cd' will force the value that is assigned to
PWD to not contain any symbolic links.
2.
Changes to Readline
a.
The code that prints completion listings now behaves better if one or
more of the filenames contains non-printable characters.
b.
The time delay when showing matching parentheses is now 0.5 seconds.
Changes to Bash
a.
b.
c.
d.
A fix was made to the pipeline code to make sure that the shell forks
to execute simple commands consisting solely of assignment statements.
e.
f.
The default sizes of some internal hash tables have been made smaller
to reduce the shell's memory footprint.
g.
h.
Fixes were made to the expansion code so that "$*", "$@", "${array[@]}",
and "${array[@]}" expand correctly when IFS does not contain a space
character, is unset, or is set to NULL.
i.
The indirect expansion code (${!var}) was changed so that the only
valid values of `var' are variable names, positional parameters, `#',
`@', and `*'.
j.
k.
Compound array assignment now splits the words within the parentheses
on shell metacharacters like the parser would before expansing them
and performing the assignment. This is for compatibility with ksh-93.
l.
m.
n.
`bash +o' now displays the same output as `set +o' before starting an
interactive shell.
o.
p.
q.
A bug was fixed so that the job containing the last asynchronous
process is not removed from the job table until a `wait' is executed
for that process or another asynchronous process is started. This
satisfies a POSIX.2 requirement.
r.
s.
The shell no longer parses the value of SHELLOPTS from the environment
if it is restricted, running setuid, or running in `privileged mode'.
t.
u.
The filename hashing code was fixed to not add `./' to the beginning of
filenames which already begin with `./'.
v.
The configure script was changed so that the GNU termcap library is not
compiled in if `prefer-curses' has been specified.
w.
x.
y.
z.
A bug that caused the output of `jobs' to have extra carriage returns
was fixed.
aa. A bug that caused PIPESTATUS to not be set when builtins or shell
functions were executed in the foreground was fixed.
bb. Bash now attempts to detect when it is being run by sshd, and treats
that case identically to being run by rshd.
cc. A bug that caused `set -a' to export SHELLOPTS when one of the shell
options was changed was fixed.
dd. The `kill' builtin now disallows empty or missing process id arguments
instead of treating them as identical to `0', which means the current
process.
ee. `var=value declare -x var' now behaves identically to
`var=value export var'. Similarly for `var=value declare -r var' and
`var=value readonly var'.
ff. A few memory leaks were fixed.
gg. `alias' and `unalias' now print error messages when passed an argument
that is not an alias for printing or deletion, even when the shell is
not interactive, as POSIX.2 specifies.
hh. `alias' and `alias -p' now return a status of 0 when no aliases are
defined, as POSIX.2 specifes.
ii. `cd -' now prints the pathname of the new working directory if the shell
is interactive.
jj. A fix was made so that the code that binds $PWD now copes with getcwd()
returning NULL.
kk. `unset' now checks whether or not a function name it's trying to unset
is a valid shell identifier only when the shell is running in posix mode.
ll. A change was made to the code that generates filenames for here documents
to make them less prone to name collisions.
mm. The parser was changed so that `time' is recognized as a reserved word
only at the beginning of a pipeline.
nn. The pathname canonicalization code was changed so that `//' is converted
into `/', but all other pathnames beginning with `//' are left alone, as
POSIX.2 specifies.
oo. The `logout' builtin will no longer exit a non-interactive non-login
shell.
2.
Changes to Readline
a.
Fixed a problem in the readline test program rltest.c that caused a core
dump.
b.
The code that handles parser directives in inputrc files now displays
more error messages.
c.
The history expansion code was fixed so that the appearance of the
history comment character at the beginning of a word inhibits history
expansion for that word and the rest of the input line.
3.
a.
A new version of malloc, based on the older GNU malloc, that has many
changes, is more page-based, is more conservative with memory usage,
and does not `orphan' large blocks when they are freed.
b.
A new version of gmalloc, based on the old GLIBC malloc, with many
changes and range checking included by default.
c.
matching.
d.
e.
f.
g.
There is a new feature for command substitution: $(< filename) now expands
to the contents of `filename', with any trailing newlines removed
(equivalent to $(cat filename)).
h.
There are new tilde prefixes which expand to directories from the
directory stack.
i.
j.
k.
l.
m.
n.
o.
p.
q.
`bind' has a new `-u' option, which takes a readline function name as an
argument and unbinds all key sequences bound to that function in a
specified keymap.
r.
`disown' now has `-a' and `-r' options, to limit operation to all jobs
and running jobs, respectively.
s.
t.
`test' has a new `-N' option, which returns true if the filename argument
has been modified since it was last accessed.
u.
v.
A new escape sequence, `\xNNN', has been added to the `echo -e' and $'...'
translation code. It expands to the character whose ascii code is NNN
in hexadecimal.
w.
The prompt string expansion code has a new `\r' escape sequence.
x.
4.
a.
b.
c.
d.
e.
f.
g.
h.
Changes to Bash
a.
The select command was fixed to check the validity of the user's
input more strenuously.
b.
A bug was fixed that prevented `time' from timing commands correctly
when supplied as an argument to `bash -c'.
c.
A fix was made to the mail checking code to keep from adding the same
mail file to the list of files to check multiple times when parsing
$MAILPATH.
d.
e.
When using the compound array assignment syntax, the old value of
the array is cleared before assigning the new value.
f.
Fixed a bug that could cause a core dump when a trap handler was reset
to the default in the trap command associated with that signal.
g.
Fixed a bug in the locale code that occurred when assigning a value
to LC_ALL.
h.
A change was made to the parser so that words of the form xxx=(...)
are not considered compound assignment statements unless there are
characters before the `='.
i.
A fix was made to the command tracing code to correctly quote each
word of output.
j.
Some changes were made to the bash-specific autoconf tests to make them
more portable.
k.
l.
m.
The brace completion code was fixed to not quote the `{' and `}'.
n.
o.
p.
q.
The window size is now recomputed after a job is stopped with SIGTSTP if
the user has set `checkwinsize' with `shopt'.
r.
s.
A fix was made so that you can no longer trap `SIGEXIT' or `SIGDEBUG' -only `EXIT' and `DEBUG' are accepted.
t.
The display of trapped signals now uses the signal number if signals
for which bash does not know the name are trapped.
u.
A fix was made so that `bash -r' does not turn on restricted mode until
after the startup files are executed.
v.
A bug was fixed that occasionally caused a core dump when a variable
found in the temporary environment of export/declare/readonly had a
null value.
w.
x.
y.
z.
A bug was fixed so that the `read' builtin restarts reads when
interrupted by signals other than SIGINT.
aa. Fixed a bug that caused a command to be freed twice when there was
an evaluation error in the `eval' command.
2.
Changes to Readline
a.
The history file is now opened with mode 0600 when it is written for
better security.
c.
Changes were made to the SIGWINCH handling code so that prompt redisplay
is done better.
d.
e.
A bug that caused a core dump when the set of characters to be quoted
when completing words was empty was fixed.
Changes to Bash
a.
b.
The test suite was changed slightly to ensure that the error messages
are printed in English.
c.
A bug that caused the shell to dump core when a filename containing a
`/' was passed to `hash' was fixed.
d.
e.
f.
A memory leak that occurred when checking the hash table for commands
with relative paths was fixed.
Changes to Bash
a.
b.
c.
A bug that caused memory to be freed twice when a trap handler resets
the trap more than once was fixed.
d.
A bug that caused machines where sizeof (pointer) > sizeof (int) to
fail (and possibly dump core) when trying to unwind-protect a null
pointer was fixed.
e.
The startup files should not be run with job control enabled.
allows SIGINT to once again interrupt startup file execution.
f.
g.
This fix
h.
i.
A bug that caused the shell to dump core when `disown' was called without
arguments and there was no current job was fixed.
j.
k.
A couple of bugs that caused `fc' to not obey the `cmdhist' and `lithist'
shell options when editing and re-executing a series of commands were
fixed.
l.
A fix was made to the grammar -- the list of commands between `do' and
`done' in the body of a `for' command should be treated the same as a
while loop.
2.
Changes to Readline
a.
b.
c.
If the filename completion function finds that a directory was not closed
by a previous (interrupted) completion, it closes the directory with
closedir().
3.
a.
Changes to Bash
a.
Fixed a problem that could cause file descriptors used for process
substitution to conflict with those used explicitly in redirections.
b.
c.
d.
e.
f.
g.
h.
A more meaningful message is now printed when the file in /tmp for a
here document cannot be created.
i.
j.
k.
The output of `set' and `export' is once again sorted, as POSIX wants.
l.
m.
The tilde code no longer calls getenv() when it's compiled as part of
the shell, which should eliminate problems on systems that cannot
redefine getenv(), like the NeXT OS.
n.
Fixed a problem that caused `bash -o' or `bash +o' to not list all
the shell options.
o.
p.
q.
r.
The bash special tilde expansions (~-, ~+) are now attempted before
calling the standard tilde expansion code, which should eliminate the
problems people have been seeing with this on Solaris 2.5.1.
s.
t.
Changed the code that reads the output of a command substitution to not
go through stdio. This reduces the memory requirements and is faster.
u.
v.
A number of memory leaks were fixed as the result of running the test
scripts through Purify.
w.
2.
Changes to Readline
a.
History library has less `#ifdef SHELL' code -- abstracted stuff out
into application-specific function hooks.
b.
c.
d.
The region kill operation now fixes the mark if it ends up beyond the
boundaries of the line after the region is deleted.
3.
a.
deficient.
-----------------------------------------------------------------------------This document details the changes between this version, bash-2.01-alpha1,
and the previous version, bash-2.0-release.
1.
Changes to Bash
a.
b.
System-specific code changes were made for: Linux, 4.4 BSD, QNX 4.2,
HP-UX, AIX 4.2.
c.
A bug that caused the exec builtin to fail because the full pathname of
the command could not be found was fixed.
d.
e.
A bug that caused the shell to dump core when performing pattern
substitutions on variable values was fixed.
f.
g.
h.
A bug that caused shell scripts using array assignments in POSIX mode
to exit after the assignment was performed was fixed.
i.
The substring expansion code is now more careful about running off the
ends of the expanded variable value.
j.
k.
The `source' builtin no longer turns off history if it has been enabled
in a non-interactive shell.
l.
A bug that caused the shell to crash when `disown' was given a pid
instead of a job number was fixed.
m.
The `cd' spelling correction code will not try to change to `.' if no
directory entries match a single-character argument.
n.
o.
p.
The bash completion code now quotes characters that readline would
treat as word breaks for completion but are not shell metacharacters.
q.
r.
Fixes were made to the code that handles DEBUG traps so that the trap
string is not freed inappropriately.
s.
t.
A problem that caused the default filename used for mail checking to be
wrong was fixed.
u.
A fix was made to the `echo' builtin so that NUL characters printed with
`echo -e' do not cause the output to be truncated.
v.
A fix was made to the job control code so that the shell behaves better
when monitor mode is enabled in a non-interactive shell.
w.
Bash no longer catches all of the terminating signals in a noninteractive shell until a trap is set on EXIT, which should result in
quicker startup.
x.
A fix was made to the command timing code so that `time' can be used in
a loop.
y.
A fix was made to the parser so that `((cmd); cmd2)' is now parsed as
a nested subshell rather than strictly as an (erroneous) arithmetic
command.
z.
A fix was made to the globbing code so that it correctly matches quoted
filenames beginning with a `.'.
aa. A bug in `fc' that caused some multi-line commands to not be stored as
one command in the history when they were re-executed after editing
(with `fc -e') was fixed.
bb. The `ulimit' builtin now attempts to catch some classes of integer
overflows.
cc. The command-oriented-history code no longer attempts to add `;'
inappropriately when a newline appears while reading a $(...) command
substitution.
dd. A bug that caused the shell to dump core when `help --' was executed
was fixed.
ee. A bug that caused the shell to crash when an unset variable appeared
in the body of a here document after `set -u' had been executed was
fixed.
ff. Implicit input redirections from /dev/null for asynchronous commands
are now handled better.
gg. A bug that caused the shell to fail to compile when configured with
`--disable-readline' was fixed.
hh. The globbing code should now be interruptible.
ii. Bash now notices when the `kill' builtin is used to send SIGCONT to a
stopped job and adjusts the data structures accordingly, as if `bg' had
been executed instead.
jj. A bug that caused the shell to crash when mixing calls to `getopts'
and `shift' on the same set of positional parameters was fixed.
kk. The command printing code now preserves the `-p' flag to `time'.
ll. The command printing code now handles here documents better when there
are other redirections associated with the command.
mm. The special glibc environment variable (NNN_GNU_nonoption_argv_flags_)
is no longer placed into the environment of executed commands -- users
Changes to Readline
a.
A bug that caused an extra newline to be printed when the cursor was on
an otherwise empty line was fixed.
b.
c.
The redisplay code now works when the prompt is longer than the screen
width.
d.
e.
f.
3.
a.
There is a new builtin array variable: GROUPS, the set of groups to which
the user belongs. This is used by the test suite.
4.
a.
Changes to Bash
a.
Fix to the `getopts' builtin so that it does the right thing when a
required option argument is not present.
b.
The completion code now updates the common prefix of matched names
after FIGNORE processing is done, since any names that were removed
may have changed the common prefix.
c.
Fixed a bug that made messages in MAILPATH entries not work correctly.
d.
e.
f.
g.
h.
i.
j.
k.
l.
If the shell is named `-su', and `-c command' is supplied, read and
execute the login shell startup files even though the shell is not
interactive. This is to support the `-' option to `su'.
m.
Fixed a bug that caused core dumps when the DEBUG trap was ignored
with `trap "" DEBUG' and a shell function was subsequently executed.
n.
Fixed a bug that caused core dumps in the read builtin when IFS was
set to the null string and the input had leading whitespace.
2.
Changes to Readline
a.
b.
Fixed the display code so that the numeric argument is displayed as it's
being entered.
c.
3.
a.
`ulimit' now sets both hard and soft limits and reports the soft limit
by default (when neither -H nor -S is specified). This is compatible
with versions of sh and ksh that implement `ulimit'.
b.
4.
a.
The `home' and `end' keys are now bound to beginning-of-line and
end-of-line, respectively, if the corresponding termcap capabilities
are present.
Changes to Bash
a.
b.
c.
d.
Fixed a bug that caused seg faults when executing scripts with the
execute bit set but without a leading `#!'.
e.
f.
A bug was fixed in the code that expands ${name[@]} to the number of
elements in an array variable.
g.
A bug was fixed in the array compound assignment code ( A=( ... ) ).
h.
i.
A fix was made in the code that expands to the length of a variable
value (${#var}).
j.
A fix was made to the command builtin so that it did not turn on the
`no fork' flag inappropriately.
k.
l.
A fix was made to the job control initialization code so that the
terminal process group is set to the shell's process group if the
shell changes its own process group.
2.
Changes to Readline
a.
b.
The behavior of the vi-mode `.' when redoing an `i' command was changed
to insert the text previously inserted by the `i' command rather than
simply entering insert mode.
3.
a.
b.
4.
a.
Changes to Bash
a.
b.
c.
A change was made to the fix for the recently-reported security hole
when reading characters with octal value 255 to make it work better on
systems with restartable system calls when not using readline.
d.
Some changes were made to the test suite so that it works if you
configure bash with --enable-usg-echo-default.
e.
f.
g.
h.
i.
j.
k.
l.
The values inserted into the prompt by the \w and \W escape sequences
are now quoted to prevent further expansion.
m.
n.
2.
Changes to Readline
a.
A few changes were made to hide some macros and functions that should not
be public.
b.
An off-by-one error that caused seg faults in the history expansion code
was fixed.
3.
a.
b.
c.
`ulimit' has a `-l' option that reports the maximum amount of data that
may be locked into memory on 4.4BSD-based systems.
Changes to Bash
a.
b.
c.
d.
e.
Added `:' to the set of characters that cause word breaks for the
completion code so that pathnames in assignments to $PATH can be
completed.
f.
g.
Fixed an error in the manual page section describing the effect that
setting and unsetting GLOBIGNORE has on the setting of the `dotglob'
option.
h.
The time conversion code now uses CLK_TCK rather than CLOCKS_PER_SEC
on systems without gettimeofday() and resources.
i.
The getopt static variables are now initialized each time a subshell
is started, so subshells using `getopts' work right.
j.
k.
The parser now reads characters between backquotes within a doublequoted string as a single word, so double quotes in the backquoted
string don't terminate the enclosing double-quoted string.
l.
A bug that caused `^O' to work incorrectly when typed as the first
thing to an interactive shell was fixed.
m.
n.
2.
Changes to Readline
a.
3.
a.
The command timing code now uses the value of the TIMEFORMAT variable
to format and display timing statistics.
b.
The `time' reserved word now accepts a `-p' option to force the
POSIX.2 output format.
c.
There are a couple of new and updated scripts to convert csh startup
files to bash format.
d.
4.
a.
Changes to Bash
a.
b.
c.
The word tokenizer was rewritten to handle nested quotes and pairs
('', "", ``, ${...}, $(...), $[...], $'...', $"...", <(...), >(...))
correctly. Some of the parameter expansion code was updated as a
consequence.
d.
A fix was made to `test' when given three arguments so that a binary
operator is checked for first, before checking that the first argument
is `!'.
e.
f.
Parser error messages were regularized, and in most cases the name of
the shell script being read by a non-interactive shell is not printed
twice.
g.
A fix was made to the completion code so that it no longer removes the
text the user typed in some cases.
h.
i.
The expansion of ${...} now follows the POSIX.2 rules for finding the
closing `}'.
j.
k.
l.
m.
n.
o.
p.
`test' now handles `-a' and `-o' as binary operators when three arguments
are supplied, and correctly parses `( word )' as equivalent to `word'.
q.
`test' was fixed so that file names of the form /dev/fd/NN mean the same
thing on all systems, even Linux.
r.
Fixed a bug in the globbing code that caused patterns with multiple
consecutive `*'s to not be matched correctly.
s.
Fixed a bug that caused $PS2 to not be printed when an interactive shell
not using readline is reading a here document.
t.
u.
`getopts' now checks that the variable name passed by the user as the
second argument is a legal shell identifier and that the variable is
not read-only.
v.
w.
x.
Fixed a bug in the code that keeps track of whether or not local variables
have been declared at the current level of function nesting.
y.
z.
The job control code now ignores stopped children when the shell is not
interactive.
aa. The `cd' builtin no longer attempts spelling correction on the directory
name if the shell is not interactive, regardless of the setting of the
`cdspell' option.
bb. Some OS-specific changes were made for SCO 3.2v[45] and AIX 4.2.
cc. `time' now prints its output to stderr, as POSIX.2 specifies.
2.
Fixes to Readline
a.
b.
3.
a.
b.
4.
a.
b.
(The
aa. The `ulimit' builtin now allows the maximum virtual memory size to be
set via setrlimit(2) if RLIMIT_VMEM is defined.
bb. `bash -nc 'command'' no longer runs `command'.
2. Changes to Readline
a. Fixed a typo in the code that checked for FIONREAD in input.c.
b. Fixed a bug in the code that outputs keybindings, so things like C-\
are quoted properly.
c. Fixed a bug in the inputrc file parsing code to handle the problems
caused by inputrc files created from the output of `bind -p' in
previous versions of bash. The problem was due to the bug fixed
in item b above.
d. Readline no longer turns off the terminal's meta key, and turns it on
once the first time it's called.
-----------------------------------------------------------------------------This file documents the changes between this version, bash-2.0-alpha2,
and the previous version, bash-2.0-alpha.
1. Changes to Bash
a. The shell no longer thinks directories are executable.
b. `disown' has a new option, `h', which inhibits the resending of SIGHUP
but does not remove the job from the jobs table.
c. The varargs functions in error.c now use ANSI-C `stdarg' if available.
d. The build process now treats the `build version' in .build as local to
the build directory, so different versions built from the same source
tree have different `build versions'.
e. Some problems with the grammar have been fixed. (It used `list' in a few
productions where `compound_list' was needed. A `list' must be terminated
with a newline or semicolon; a `compound_list' need not be.)
f. A fix was made to keep `wait' from hanging when waiting for all background
jobs.
g. `bash --help' now writes its output to stdout, like the GNU Coding Standards
specify, and includes the machine type (the value of MACHTYPE).
h. `bash --version' now prints more information and exits successfully, like
the GNU Coding Standards specify.
i. The output of `time' and `times' now prints fractional seconds with three
places after the decimal point.
j. A bug that caused process substitutions to screw up the pipeline printed
by `jobs' was fixed.
k. Fixes were made to the code that implements $'...' and $"..." so they
work as documented.
l. The process substitution code now opens named pipes for reading with
O_NONBLOCK to avoid hanging.
m. Fixes were made to the trap code so the shell cleans up correctly if the
trap command contains a `return' and we're executing a function or
sourcing a script with `.'.
n. Fixes to doc/Makefile.in so that it doesn't try to remake all of the
documentation (ps, dvi, etc.) on a `make install'.
o. Fixed an auto-increment error that caused bash -c args to sometimes dump
core.
p. Fixed a bug that caused $HISTIGNORE to fail when the history line
contained globbing characters.
2. Changes to Readline
a. There is a new string variable, rl_library_version, available for use by
applications. The current value is "2.1".
b. A bug encountered when expand-tilde was enabled and file completion was
attempted on a word beginning with `~/' was fixed.
c. A slight change was made to the incremental search termination behavior.
ESC still terminates the search, but if input is pending or arrives
within 0.1 seconds (on systems with select(2)), it is used as a prefix
character. This is intented to allow users to terminate searches with
the arrow keys and get the behavior they expect.