commit bash-20141031 snapshot

This commit is contained in:
Chet Ramey
2014-11-03 14:32:12 -05:00
parent e0722a04ec
commit f3aad56dce
52 changed files with 55059 additions and 2492 deletions
+103 -4
View File
@@ -6576,10 +6576,10 @@ lib/readline/display.c
8/26
----
builtins/evalstring.c
- evalstring: if CURRENT_TOKEN == yacc_EOF, reset it to newline. This is
instead of calling reset_parser(); that might still be needed. Fixes
bug with eval and a subsequent statement ending with EOF reported by
<jim.avera@gmail.org>
- evalstring: if CURRENT_TOKEN == yacc_EOF, reset it to newline. This
is instead of calling reset_parser(); that might still be needed.
Fixes bug with eval and a subsequent statement ending with EOF
reported by <jim.avera@gmail.org>
pcomplete.c
- filter_stringlist: when extglob is on, a leading ! in the filter
@@ -7037,3 +7037,102 @@ subst.c
the outer quotes don't make the characters in the expansion of
$* special. Posix interp 221. Reported by Stephane Chazelas
<stephane.chazelas@gmail.com>
10/28
-----
lib/readline/bind.c
- enable-bracketed-paste: new bindable variable, enables support for
a terminal's `bracketed paste mode'. Code contributed by
Daniel Colascione <dancol@dancol.org>
lib/readline/doc/{readline.3,rluser.texi}
- enable-bracketed-paste: add description
lib/readline/{readline.c,rlprivate.h}
- _rl_enable_bracketed_paste: declarations
- #defines for use by bracketed paste implementation
lib/readline/rltty.c
- rl_prep_terminal: send BRACK_PASTE_INIT string to terminal if we
are supposed to enable bracketed-paste mode; change terminal_prepped
to indicate we sent that string and need to clean up
- rl_deprep_terminal: if terminal_prepped indicates we sent the
bracketed-paste mode init string to the terminal, send the cleanup
string before restoring the terminal modes
lib/readline/kill.c
- rl_bracketed_paste_begin: function to read bracketed paste until
BRACK_PASTE_SUFF; discard the suffix, and insert the rest of the
paste as a single (undoable) object. Bound to BRACK_PASTE_PREF
lib/readline/funmap.c
- bracketed-paste-begin: new bindable command, executes
rl_bracketed_paste_begin
lib/readline/readline.c
- bind_bracketed_paste_prefix: new function, sets up to recognize
the bracketed paste prefix sequence (BRACK_PASTE_PREF) in emacs
keymap and vi insertion keymap
- readline_initialize_everything: call bind_bracketed_paste_prefix
11/1
----
builtins/ulimit.def
- RLIMIT_POSIXLOCKS: now synonym for RLIMIT_LOCKS
- -k: new option: RLIMIT_KQUEUES, max kqueues allocated for this
process
- -P: new option: RLIMIT_NPTS, max number of pseudoterminals available
to this process
doc/{bash.1,bashref.texi}
- document `ulimit -k' option
- document `ulimit -P' option
parse.y
- `timespec list_terminator' production: if the list terminator is `;'
set last_read_token to `;' to allow things like `time ; command' to
time null commands and not throw a syntax error. Patch from
Piotr Grzybowski <narsil.pl@gmail.com>
- `BANG list_terminator' production: do the same thing
variables.c
- sv_optind: use find_shell_variable and get_variable_value so we can
have the variable's context in the case we need to do something
when we are restoring a previous variable context's value
builtins/getopt.h
- sh_getopt_state_t: struct to save sh_getopt's internal state so we
can restore it around function calls in the event that we have a
local copy of OPTIND
builtins/getopt.[ch]
- sh_getopt_{save,restore}_istate: new functions to save and restore
getopt's internal state
- sh_getopt_{alloc,dispose}_istate: new functions to allocate and
deallocate sh_getopt_istate_t objects
execute_cmd.c
- maybe_restore_getopt_state: restore sh_getopt state after executing
function body iff the funtion declared a local copy of OPTIND
- execute_function: save sh_getopt state before executing function body
- execute_function: note in getopt_state->flags whether or not the
function declared a local copy of OPTIND; used by maybe_restore_getopt_state
- execute_function: maybe restore sh_getopt state before returning via
call to maybe_restore_getopt_state. Fixes bugs with getopts and
state between calls reported in 2011 by Bernd Eggink <monoped@sudrala.de>
and in 2014 by Oyvind Hvidsten <oyvind.hvidsten@dampir.no>
configure.ac
- enable-function-import: new option, controls whether function imports
are included. Enabled by default. Patch from David Galos
<davegalos@google.com>
config.h.in
- FUNCTION_IMPORT: define controlled by enable-function-import above
variables.c
- initialize_shell_variables: include code to import function definitions
from the environment if FUNCTION_IMPORT is defined
doc/bashref.texi
- --enable_function-import: document new configuration option
+7135
View File
File diff suppressed because it is too large Load Diff