commit bash-20040108 snapshot

This commit is contained in:
Chet Ramey
2011-12-03 12:53:09 -05:00
parent 5e13499c55
commit 545f34cfd4
34 changed files with 75981 additions and 5820 deletions
+48
View File
@@ -8916,3 +8916,51 @@ lib/readline/complete.c
lib/readline/readline.h
- extern declaration for rl_completion_found_quote
1/8
---
lib/readline/doc/rltech.texi
- documented rl_completion_found_quote
lib/readline/complete.c
- in compute_lcd_of_matches, if it looks like what the user typed was
dequoted before generating filename matches, dequote the user's
text again before figuring out the case-insensitive lcd
1/9
---
lib/readline/display.c
- fix from Edward Catmur <ed@catmur.co.uk> to logic that handles
invisible characters in prompt string. Original code was wrong
about local_prompt_prefix; it gave incorrect results when prompt
contained invisible characters after a line break
1/10
----
subst.c
- new function, mb_substring(), does character (possibly multibyte)
oriented rather than strictly byte-oriented substring extraction.
The passed indices, rather than strictly indexing into the string,
indicate character positions that need to be calculated. From
Tim Waugh <twaugh@redhat.com>
- change parameter_brace_substring to use mb_substring if necessary
included/shmbutil.h
- new define SADD_MBQCHAR_BODY, common code for adding a quoted
(preceded by CTLESC) multibyte character to an accumulating string
in the subst.c expansion code
subst.c
- use SADD_MBQCHAR_BODY in expand_word_internal
- new static function, mb_getcharlens, allocates and returns an array
of character lengths for (possibly multibyte) characters in the
argument string
- change pattern matching operations to use while loops instead of
for loops to handle multibyte characters better (no more simple
increment or decrement)
- change pattern matching operations to use multibyte character
operations instead of simple increments and decrements. Don't
use BACKUP_CHAR_P -- use the mblen array instead, because that
avoids the N**2 behavior of having to count from the beginning
of the string each time you want to back up one character. Changes
to remove_pattern and match_pattern
+8964
View File
File diff suppressed because it is too large Load Diff