Opened 5 years ago

Closed 5 years ago

#4405 closed task (fixed)

readline-8.0

Reported by: Anton Maisak Owned by: lfs-book
Priority: normal Milestone: 8.4
Component: Book Version: SVN
Severity: normal Keywords:
Cc:

Description (last modified by Anton Maisak)

ftp://ftp.cwru.edu/pub/bash/readline-8.0.tar.gz

  1. Changes to Readline
  1. Added a guard to prevent nested macros from causing an infinite expansion loop.
  1. Instead of allocating enough history list entries to hold the maximum list size, cap the number allocated initially.

  1. Added a strategy to avoid allocating huge amounts of memory if a block of history entries without timestamps occurs after a block with timestamps.
  1. Added support for keyboard timeouts when an ESC character is the last character in a macro.
  1. There are several performance improvements when in a UTF-8 locale.
  1. Readline does a better job of preserving the original set of blocked signals when using pselect() to wait for input.
  1. Fixed a bug that caused multibyte characters in macros to be mishandled.
  1. Fixed several bugs in the code that calculates line breaks when expanding prompts that span several lines, contain multibyte characters, and contain invisible character seqeuences.
  1. Fixed several bugs in cursor positioning when displaying lines with prompts containing invisible characters and multibyte characters.
  1. When performing case-insensitive completion, Readline no longer sorts the list of matches unless directed to do so.
  1. Fixed a problem with key sequences ending with a backslash.
  1. Fixed out-of-bounds and free memory read errors found via fuzzing.
  1. Fixed several cases where the mark was set to an invalid value.
  1. Fixed a problem with the case-changing operators in the case where the lower and upper case versions of a character do not have the same number of bytes.
  1. Handle incremental and non-incremental search character reads returning EOF.
  1. Handle the case where a failing readline command at the end of a multi-key sequence could be misinterpreted.
  1. The history library now prints a meaningful error message if the history file isn't a regular file.
  1. Fixed a problem with vi-mode redo (`.') on a command when trying to replace a multibyte character.
  1. The key binding code now attempts to remove a keymap if a key unbinding leaves it empty.
  1. Fixed a line-wrapping issue that caused problems for some terminal emulators.
  1. If there is a key bound to the tty's VDISCARD special character, readline disables VDISCARD while it is active.
  1. Fixed a problem with exiting bracketed paste mode on terminals that assume the bracketed paste mode character sequence contains visible characters.
  1. Fixed a bug that could cause a key binding command to refer to an uninitialized variable.
  1. Added more UTF-8-specific versions of multibyte functions, and optimized existing functions if the current locale uses UTF-8 encoding.
  1. Fixed a problem with bracketed-paste inserting more than one character and interacting with other readline functions.
  1. Fixed a bug that caused the history library to attempt to append a history line to a non-existent history entry.

aa. If using bracketed paste mode, output a newline after the \r that is the

last character of the mode disable string to avoid overwriting output.

bb. Fixes to the vi-mode b', B', w', W', e', and E' commands to better

handle multibyte characters.

cc. Fixed a redisplay problem that caused an extra newline to be generated on

accept-line when the line length is exactly the screenwidth.

dd. Fixed a bug with adding multibyte characters to an incremental search

string.

ee. Fixed a bug with redoing text insertions in vi mode.

ff. Fixed a bug with pasting text into an incremental search string if bracketed

paste mode is enabled. ESC cannot be one of the incremental search terminator characters for this to work.

gg. Fixed a bug with anchored search patterns when performing searches in vi

mode.

  1. New Features in Readline
  1. Non-incremental vi-mode search (N', n') can search for a shell pattern, as Posix specifies (uses fnmatch(3) if available).
  1. There are new next-screen-line' and previous-screen-line' bindable commands, which move the cursor to the same column in the next, or previous, physical line, respectively.
  1. There are default key bindings for control-arrow-key key combinations.
  1. A negative argument (-N) to `quoted-insert' means to insert the next N characters using quoted-insert.
  1. New public function: rl_check_signals(), which allows applications to respond to signals that readline catches while waiting for input using a custom read function.
  1. There is new support for conditionally testing the readline version in an inputrc file, with a full set of arithmetic comparison operators available.
  1. There is a simple variable comparison facility available for use within an inputrc file. Allowable operators are equality and inequality; string variables may be compared to a value; boolean variables must be compared to either on' or off'; variable names are separated from the operator by whitespace.
  1. The history expansion library now understands command and process substitution and extended globbing and allows them to appear anywhere in a word.
  1. The history library has a new variable that allows applications to set the initial quoting state, so quoting state can be inherited from a previous line.
  1. Readline now allows application-defined keymap names; there is a new public function, rl_set_keymap_name(), to do that.
  1. The "Insert" keypad key, if available, now puts readline into overwrite mode.

Change History (2)

comment:1 by Anton Maisak, 5 years ago

Description: modified (diff)

comment:2 by Bruce Dubbs, 5 years ago

Resolution: fixed
Status: newclosed

Fixed at revision 11499.

Note: See TracTickets for help on using tickets.