Imported from ../bash-4.0.tar.gz.

This commit is contained in:
Jari Aalto 2009-02-19 22:21:29 +00:00
commit 17345e5ad2
134 changed files with 74214 additions and 4584 deletions

View file

@ -7286,3 +7286,244 @@ subst.c
string. Fixes bug reported by os@sernet.de.
[bash-4.0-rc1 frozen]
1/9
---
locale.c
- since setlocale() doesn't set errno to anything meaningful,
don't include the strerror() result in the error message if
it fails
- make sure the error messages printed when setlocale fails are
localizable
1/11
----
lib/readline/histexpand.c
- make sure that every time history_no_expand_chars is tested, we
also call the history_inhibit_expansion_function if it's set.
Fixes bug reported by Yang Zhang <yanghatespam@gmail.com>
1/12
----
trap.c
- make sure to call parse_and_execute with the SEVAL_RESETLINE bit
set in the flags so it will reset the line number when running
the trap commands. Partial fix for bug reported by
peter360@fastmail.us
1/14
----
builtins/reserved.def
- document `coproc' so it can be used with `help' builtin. Pointed
out by Pierre Gaston <pgas@freeshell.org>
lib/sh/casemod.c
- added two new flags: CASE_UPFIRST and CASE_LOWFIRST to casemod
the first character of the passed string and pass the rest
through unchanged. Fixes bug reported by Jan Schampera
<jan.schampera@web.de>
externs.h
- new defines for CASE_UPFIRST and CASE_LOWFIRST
subst.c
- use CASE_UPFIRST for ^ and CASE_LOWFIRST for , casemod operators
builtins/mapfile.def
- call zreset() before calling first zgetline(), to clean out any
remaining data in local buffer used by zreadc. Fixes bug
reported by Pierre Gaston <pierre.gaston@gmail.com>
1/15
----
lib/sh/zread.c
- renamed zreadintr to zreadretry -- not perfect, but better
- new functions: zreadintr, which just calls read so it can be
interruptible, and zreadcintr, which is like zreadc but uses
zreadintr to fill the buffer
lib/sh/zgetline.c
- in zgetline, when zread/zreadc return <= 0, make sure line is
non-null before assigning to line[nr]
builtins/mapfile.def
- return an error right away if the supplied array variable name
refers to a readonly or noassign array
- set interrupt_immediately so calls to zgetline can be
interrupted. Fixes bug reported by Pierre Gaston
<pierre.gaston@gmail.com>
- if interactive, pass the SEVAL_INTERACT and SEVAL_NOHIST flags
to parse_and_execute when calling callbacks. Fixes bug reported
by Pierre Gaston <pierre.gaston@gmail.com>
- add `readarray' as a synonym for mapfile
doc/{bash.1,bashref.texi}
- document behavior of mapfile builtin adding index of array element
to be assigned as additional argument to callback string. Reported
by Pierre Gaston <pierre.gaston@gmail.com>
- document readarray as synonym for mapfile
builtins/common.c
- new error function, sh_ttyerror(set), prints an error message having
to do with setting or getting terminal attributes
builtins/read.def
- print error message if read fails to set terminal attributes
1/16
----
execute_cmd.c
- new function, coproc_reap, calls coproc_dispose if sh_coproc is
marked as COPROC_DEAD
- new function, cpl_reap, disposes coprocs marked as COPROC_DEAD
from coproc list
- change coproc_pidchk to just mark the coproc as dead instead of
calling coproc_dispose, so we don't call unsafe functions from
a signal handler. Fixes bug reported by Andreas Schwab
<schwab@suse.de>
execute_cmd.h
- new extern declaration for coproc_reap
command.h
- new flags for c_flags member of a struct coproc
{jobs,nojobs}.c
- add call to coproc_reap in cleanup_dead_jobs, which will do the
right queueing or blocking of SIGCHLD
trap.c
- modify change from 1/12 to not reset the line number when running
the DEBUG and RETURN traps
1/18
----
lib/sh/casemod.c
- change default operations to work on entire passed string instead
of breaking into words at non-alpha-numerics. Use new
CASE_USEWORDS flag to enable by-word behavior. Fixes bug reported
by Jan Schampera <jan.schampera@web.de>
builtins/printf.def
- in vbprintf, bracket each call to vsnprintf (which uses the args
passed to vbprintf) with SH_VA_START and va_end, so we can
reninitialize the argument list for each call. This is actually
what the C standard requires. Fixes bug that caused printf -b
to `ignore' first % format specifier if it came first in the
string. Reported by David Leverton <levertond@googlemail.com>
builtins/mapfile.def
- start the line count at 1, since it doesn't get incremented before
(or after) reading the first line, so things like
`mapfile -n 5 -c 1 -C 'echo foo' array < file' work right and call
the callback after the first line is read. Fixes bug reported by
Pierre Gaston <pierre.gaston@gmail.com>
1/22
----
lib/readline/complete.c
- set _rl_interrupt_immediately non-zero before reading from the file
system or calling an application-defined completion function
lib/readline/signals.c
- renamed rl_signal_handler to _rl_handle_signal; new version of
rl_signal_handler that just calls _rl_handle_signal (for now)
- new function _rl_signal_handler that calls _rl_handle_signal without
any checking
lib/readline/rlprivate.h
- new extern declaration for _rl_signal_handler
- new define, RL_CHECK_SIGNALS, checks whether or not _rl_caught_signal
is set and calls _rl_signal_handler if so
lib/readline/{bind,input,readline}.c
- add RL_CHECK_SIGNALS in appropriate places
lib/readline/signals.c
- change rl_signal_handler to set a flag and return rather than
run through the entire signal handling process. If
_rl_interrupt_immediately is set, call the signal handling code
right away instead of setting the flag. Initial fix for crash
bug reported by Roman Rakus <rrakus@redhat.com>
aclocal.m4
- new macro, BASH_TYPE_SIG_ATOMIC_T, tests for sig_atomic_t in
<signal.h>, defines as int if not defined
configure.in
- call BASH_TYPE_SIG_ATOMIC_T
- call AC_C_VOLATILE
config.h.in
- empty define for sig_atomic_t
- empty define for volatile
1/27
----
subst.c
- audit calls to add_character and change to add_ifs_character (which
quotes characters in $IFS). Affects primarily `:', `=', and `~'.
Fixes bug reported by Jan Schampera <jan.schampera@web.de>; fix
suggested by Stephane Chazelas <stephane_chazelas@yahoo.fr>
2/1
---
configure.in
- call AC_C_RESTRICT
config.h.in
- add empty defintion for `restrict'
pcomplete.c
- use unwind_protects around call to execute_shell_function in
gen_shell_function_matches to prevent data corruption if
throw_to_top_level is called. Bug report and fix from
werner@suse.de.
execute_cmd.c
- don't clamp CPU usage at 100% in print_formatted_time. Bug reported
by Linda Walsh <bash@tlinx.org>
2/5
---
locale.c
- in set_locale_var, set errno to 0 before calling setlocale(), and
print strerror (errno) if setlocale fails and errno ends up non-zero
2/6
---
configure.in
- backed out of solaris change from 10/23/2008 (adding `-z interpose'
to LDFLAGS) due to solaris updates to fix a linker problem.
Updatted by Serge Dussud <Serge.Dussud@Sun.COM>
2/12
----
execute_cmd.c
- change execute_connection so failure of a pipeline will cause the
shell to exit if -e is on. From discussion on austin-group
mailing list
- change execute_command_internal so failure of a user-specified
subshell will cause the shell to exit if -e is on. From discussion
on austin-group mailing list
2/13
----
doc/{bash.1,bashref.texi}
- clarified description of set -e option to accurately reflect current
implementation
2/19
----
print_cmd.c
- fix print_deferred_heredocs to not print a space if the separator
string is null
- change print_deferred_heredocs to set `was_heredoc' after printing
something
- change connection printing code to only print the `;' separator
if we haven't just printed a here-document
- change connection printing code to print any deferred here
documents after the rhs of the connection. Fixes bug reported by
Bo Andresen <bo.andresen@zlin.dk>
[bash-4.0 frozen]