commit bash-20041202 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 13:40:44 -05:00
parent 54cdd75ae4
commit 76a8d78dfd
9 changed files with 91 additions and 50 deletions
+30
View File
@@ -10644,3 +10644,33 @@ execute_cmd.c
trap.c
- change reset_or_restore_signal_handlers so that the RETURN trap is
not inherited by command substitution when DEBUGGER is not defined
11/30
-----
lib/readline/misc.c
- fix memory leaks in _rl_free_history_entry and rl_maybe_replace_line
caused by not freeing `timestamp' member of history entry
- make sure timestamp is initialized to NULL in rl_maybe_save_line
12/1
----
execute_cmd.c
- fix execute_function so a function calling `return' will run the
RETURN trap, if one's defined
doc/{bash.1,bashref.texi}
- fix description of RETURN trap in various places to indicate that it's
only inherited by shell functions if function tracing is on globally
or has been enabled for that function
- fix documentation to indicate that the DEBUG and RETURN traps are
inherited under the same conditions
execute_cmd.c
- a function does not inherit the RETURN trap if a DEBUG trap is
currently running
12/2
----
lib/glob/xmbsrtowcs.c
- change xmbsrtowcs to handle the one case where malloc can fail
(though it should not matter) -- don't try to free a null pointer