| 1 |
This document details the changes between this version, readline-8.3, and |
| 2 |
the previous version, readline-8.2. |
| 3 |
|
| 4 |
1. Changes to Readline |
| 5 |
|
| 6 |
a. Fixed a bug in clearing the visible line structure before redisplay. |
| 7 |
|
| 8 |
b. Fix a bug where setlocale(3) returning NULL caused a crash. |
| 9 |
|
| 10 |
c. Fixed signal checking in callback mode to handle signals that arrive before |
| 11 |
readline restore's the application's signal handlers. |
| 12 |
|
| 13 |
d. Fixed a bug with word completion where the directory name needs to be |
| 14 |
dequoted and tilde-expanded. |
| 15 |
|
| 16 |
e. Fixed a bug that caused compilation to fail on systems with select but not |
| 17 |
pselect. |
| 18 |
|
| 19 |
f. System-specific changes for: WIN32, z/OS, Cygwin, MSYS |
| 20 |
|
| 21 |
g. Fixed a bug that caused word completion mismatches if the quoted text the |
| 22 |
user typed was longer than the unquoted match. |
| 23 |
|
| 24 |
h. Fixes for freeing undo lists that might appear in history list entries |
| 25 |
after non-incremental searches. |
| 26 |
|
| 27 |
i. Fixes for some errors revealed by address sanitizer. |
| 28 |
|
| 29 |
j. In vi mode, if an `f' or `F' move command associated with a `c' or `C' |
| 30 |
command fails, don't enter insert mode. |
| 31 |
|
| 32 |
k. Fixed bug with truncating a history file containing timestamps that caused |
| 33 |
the timestamp associated with the first history entry not to be written. |
| 34 |
|
| 35 |
l. Fix vi-mode so that a motion command attached to d/D, y/Y, or t/T must |
| 36 |
consume or delete at least one character. |
| 37 |
|
| 38 |
m. Fix a redisplay error when displaying meta characters as octal sequences |
| 39 |
and other C locale issues. |
| 40 |
|
| 41 |
n. Fix error that caused characters composing an incomplete multibyte |
| 42 |
character not to be inserted into the line. |
| 43 |
|
| 44 |
o. In callback mode, let the application echo the signal characters (e.g., ^C) |
| 45 |
when the application's signal handlers are installed. |
| 46 |
|
| 47 |
p. Added some support for lines that consume more than the physical number of |
| 48 |
screen lines. |
| 49 |
|
| 50 |
q. Make sure dump-variables returns the string values for active-region-start-color |
| 51 |
and active-region-end-color if they're set. |
| 52 |
|
| 53 |
r. Fixes to how characters between 128 and 159 are printed when displaying |
| 54 |
macro values (use symbolic notation instead of directly printing the |
| 55 |
character). |
| 56 |
|
| 57 |
s. Don't convert meta characters that contain NULL (\M-\C-@) to actual NULs, |
| 58 |
which prematurely terminates the macro value. |
| 59 |
|
| 60 |
t. Fix typo in the readline color prefix extension that it uses for coloring |
| 61 |
filename prefixes when displaying possible completions. |
| 62 |
|
| 63 |
u. Call the filename rewrite hook on the word being completed before comparing |
| 64 |
it against possible completions from the file system to get consistent |
| 65 |
strings. |
| 66 |
|
| 67 |
v. Fix infinite recursion that can happen if someone binds a key that doesn't |
| 68 |
have a different upper and lower case represenation to do-lowercase-version. |
| 69 |
|
| 70 |
w. Check for non-ANSI (dumb) terminals a little more thoroughly. |
| 71 |
|
| 72 |
x. Don't attempt to history-expand the `quick substitution' character at the |
| 73 |
beginning of a line if the application has set the quoting state to single |
| 74 |
quotes. |
| 75 |
|
| 76 |
y. Fix small memory leak if non-incremental or incremental search is |
| 77 |
interrupted by a signal. |
| 78 |
|
| 79 |
z. Loading very large history files should be much faster. |
| 80 |
|
| 81 |
aa. Retry opening startup files if the open is interrupted by a signal |
| 82 |
and is not automatically restarted. |
| 83 |
|
| 84 |
bb. Make sure the bracketed-paste input buffer is null-terminated when read |
| 85 |
returns an error. |
| 86 |
|
| 87 |
cc. Fixed a small memory leak in execute-named-command if the command doesn't |
| 88 |
exist or the function doesn't return. |
| 89 |
|
| 90 |
dd. Fix for attempting to change case of invalid multibyte characters. |
| 91 |
|
| 92 |
ee. Fix for possible completions that compare identically when using case- |
| 93 |
insensitive completion but have different byte lengths. |
| 94 |
|
| 95 |
ff. Fix to make non-incremental searches use undo lists and set the history |
| 96 |
position the same way as incremental searches. |
| 97 |
|
| 98 |
gg. Don't check for signals when handling a received signal. |
| 99 |
|
| 100 |
hh. Fix off-by-one error when tokenizing words like $((expr)) while performing |
| 101 |
history expansion. |
| 102 |
|
| 103 |
ii. Fixes for incremental searches and redisplay in the C locale. |
| 104 |
|
| 105 |
jj. Fixes for some use-after-free of the undo list errors when stacking multiple |
| 106 |
commands that use rl_maybe_replace_line to save changes to a history entry. |
| 107 |
|
| 108 |
kk. Fixes to ensure that completion-prefix-display-length and |
| 109 |
colored-completion-prefix are mutually exclusive. |
| 110 |
|
| 111 |
ll. Fixed a bug that allowed a history search to change the current history |
| 112 |
list position. |
| 113 |
|
| 114 |
mm. Fixed a bug that allowed ^G to retain a saved command to execute. |
| 115 |
|
| 116 |
nn. Updates to new export-completions command to allow filename suffixes. |
| 117 |
|
| 118 |
oo. Fixed a redisplay bug with prompts containing multiple sequences of |
| 119 |
invisible characters that are longer than the screen width. |
| 120 |
|
| 121 |
pp. The history library no longer skips blank lines while it is reading a |
| 122 |
multiline history entry from a history file. |
| 123 |
|
| 124 |
2. New Features in Readline |
| 125 |
|
| 126 |
a. Output a newline if there is no prompt and readline reads an empty line. |
| 127 |
|
| 128 |
b. The history library falls back to stdio when writing the history list if |
| 129 |
mmap fails. |
| 130 |
|
| 131 |
c. New bindable variable `search-ignore-case', causes readline to perform |
| 132 |
case-insensitive incremental and non-incremental history searches. |
| 133 |
|
| 134 |
d. rl_full_quoting_desired: new application-settable variable, causes all |
| 135 |
completions to be quoted as if they were filenames. |
| 136 |
|
| 137 |
e. rl_macro_display_hook: new application-settable function pointer, used if |
| 138 |
the application wants to print macro values itself instead of letting |
| 139 |
readline do it |
| 140 |
|
| 141 |
f. rl_reparse_colors: new application-callable function, reparses $LS_COLORS |
| 142 |
(presumably after the user changes it) |
| 143 |
|
| 144 |
g. rl_completion_rewrite_hook: new application-settable function pointer, |
| 145 |
called to modify the word being completed before comparing it against |
| 146 |
pathnames from the file system. |
| 147 |
|
| 148 |
h. execute-named-command: a new bindable command that reads the name of a |
| 149 |
readline command from the standard input and executes it. Bound to M-x |
| 150 |
in emacs mode by default. |
| 151 |
|
| 152 |
i. Incremental and non-incremental searches now allow ^V/^Q (or, in the former |
| 153 |
case, anything bound to quoted-insert) to quote characters in the search |
| 154 |
string. |
| 155 |
|
| 156 |
j. Documentation has been significantly updated. |
| 157 |
|
| 158 |
k. New `force-meta-prefix' bindable variable, which forces the use of ESC as |
| 159 |
the meta prefix when using "\M-" in key bindings instead of overloading |
| 160 |
convert-meta. |
| 161 |
|
| 162 |
l. The default value for `readline-colored-completion-prefix' no longer has a |
| 163 |
leading `.'; the original report was based on a misunderstanding. |
| 164 |
|
| 165 |
m. There is a new bindable command, `export-completions', which writes the |
| 166 |
possible completions for a word to the standard output in a defined format. |
| 167 |
|
| 168 |
n. Readline can reset its idea of the screen dimensions when executing after |
| 169 |
a SIGCONT. |
| 170 |
|
| 171 |
------------------------------------------------------------------------------- |
| 172 |
This document details the changes between this version, readline-8.2, and |
| 173 |
the previous version, readline-8.1. |
| 174 |
|
| 175 |
1. Changes to Readline |
| 176 |
|
| 177 |
a. Fixed a problem with cleaning up active marks when using callback mode. |
| 178 |
|
| 179 |
b. Fixed a problem with arithmetic comparison operators checking the version. |
| 180 |
|
| 181 |
c. Fixed a problem that could cause readline not to build on systems without |
| 182 |
POSIX signal functions. |
| 183 |
|
| 184 |
d. Fixed a bug that could cause readline to crash if the application removed |
| 185 |
the callback line handler before readline read all typeahead. |
| 186 |
|
| 187 |
e. Added additional checks for read errors in the middle of readline commands. |
| 188 |
|
| 189 |
f. Fixed a redisplay problem that occurred when switching from the digit- |
| 190 |
argument prompt `(arg: N)' back to the regular prompt and the regular |
| 191 |
prompt contained invisible characters. |
| 192 |
|
| 193 |
g. Fixed a problem with restoring the prompt when aborting an incremental |
| 194 |
search. |
| 195 |
|
| 196 |
h. Fix a problem with characters > 128 not being displayed correctly in certain |
| 197 |
single-byte encodings. |
| 198 |
|
| 199 |
i. Fixed a problem with unix-filename-rubout that caused it to delete too much |
| 200 |
when applied to a pathname consisting only of one or more slashes. |
| 201 |
|
| 202 |
j. Fixed a display problem that caused the prompt to be wrapped incorrectly if |
| 203 |
the screen changed dimensions during a call to readline() and the prompt |
| 204 |
became longer than the screen width. |
| 205 |
|
| 206 |
k. Fixed a problem that caused the \r output by turning off bracketed paste |
| 207 |
to overwrite the line if terminal echo was disabled. |
| 208 |
|
| 209 |
l. Fixed a bug that could cause colored-completion-prefix to not display if |
| 210 |
completion-prefix-display-length was set. |
| 211 |
|
| 212 |
m. Fixed a problem with line wrapping prompts when a group of invisible |
| 213 |
characters runs to the right edge of the screen and the prompt extends |
| 214 |
longer then the screen width. |
| 215 |
|
| 216 |
n. Fixed a couple problems that could cause rl_end to be set incorrectly by |
| 217 |
transpose-words. |
| 218 |
|
| 219 |
o. Prevent some display problems when running a command as the result of a |
| 220 |
trap or one bound using `bind -x' and the command generates output. |
| 221 |
|
| 222 |
p. Fixed an issue with multi-line prompt strings that have one or more |
| 223 |
invisible characters at the end of a physical line. |
| 224 |
|
| 225 |
q. Fixed an issue that caused a history line's undo list to be cleared when |
| 226 |
it should not have been. |
| 227 |
|
| 228 |
r. When replacing a history entry, make sure the existing entry has a non-NULL |
| 229 |
timestamp before copying it; it may have been added by the application, not |
| 230 |
the history library. |
| 231 |
|
| 232 |
2. New Features in Readline |
| 233 |
|
| 234 |
a. There is now an HS_HISTORY_VERSION containing the version number of the |
| 235 |
history library for applications to use. |
| 236 |
|
| 237 |
b. History expansion better understands multiple history expansions that may |
| 238 |
contain strings that would ordinarily inhibit history expansion (e.g., |
| 239 |
`abc!$!$'). |
| 240 |
|
| 241 |
c. There is a new framework for readline timeouts, including new public |
| 242 |
functions to set timeouts and query how much time is remaining before a |
| 243 |
timeout hits, and a hook function that can trigger when readline times |
| 244 |
out. There is a new state value to indicate a timeout. |
| 245 |
|
| 246 |
d. Automatically bind termcap key sequences for page-up and page-down to |
| 247 |
history-search-backward and history-search-forward, respectively. |
| 248 |
|
| 249 |
e. There is a new `fetch-history' bindable command that retrieves the history |
| 250 |
entry corresponding to its numeric argument. Negative arguments count back |
| 251 |
from the end of the history. |
| 252 |
|
| 253 |
f. `vi-undo' is now a bindable command. |
| 254 |
|
| 255 |
g. There is a new option: `enable-active-region'. This separates control of |
| 256 |
the active region and bracketed-paste. It has the same default value as |
| 257 |
bracketed-paste, and enabling bracketed paste enables the active region. |
| 258 |
Users can now turn off the active region while leaving bracketed paste |
| 259 |
enabled. |
| 260 |
|
| 261 |
h. rl_completer_word_break_characters is now `const char *' like |
| 262 |
rl_basic_word_break_characters. |
| 263 |
|
| 264 |
i. Readline looks in $LS_COLORS for a custom filename extension |
| 265 |
(*.readline-colored-completion-prefix) and uses that as the default color |
| 266 |
for the common prefix displayed when `colored-completion-prefix' is set. |
| 267 |
|
| 268 |
j. Two new bindable string variables: active-region-start-color and |
| 269 |
active-region-end-color. The first sets the color used to display the |
| 270 |
active region; the second turns it off. If set, these are used in place |
| 271 |
of terminal standout mode. |
| 272 |
|
| 273 |
k. New readline state (RL_STATE_EOF) and application-visible variable |
| 274 |
(rl_eof_found) to allow applications to detect when readline reads EOF |
| 275 |
before calling the deprep-terminal hook. |
| 276 |
|
| 277 |
l. There is a new configuration option: --with-shared-termcap-library, which |
| 278 |
forces linking the shared readline library with the shared termcap (or |
| 279 |
curses/ncurses/termlib) library so applications don't have to do it. |
| 280 |
|
| 281 |
m. Readline now checks for changes to locale settings (LC_ALL/LC_CTYPE/LANG) |
| 282 |
each time it is called, and modifies the appropriate locale-specific display |
| 283 |
and key binding variables when the locale changes. |
| 284 |
|
| 285 |
------------------------------------------------------------------------------- |
| 286 |
This document details the changes between this version, readline-8.1, and |
| 287 |
the previous version, readline-8.0. |
| 288 |
|
| 289 |
1. Changes to Readline |
| 290 |
|
| 291 |
a. There are a number of fixes that were found as the result of fuzzing with |
| 292 |
random input. |
| 293 |
|
| 294 |
b. Changed the revert-all-at-newline behavior to make sure to start at the end |
| 295 |
of the history list when doing it, instead of the line where the user hit |
| 296 |
return. |
| 297 |
|
| 298 |
c. When parsing `set' commands from the inputrc file or an application, readline |
| 299 |
now allows trailing whitespace. |
| 300 |
|
| 301 |
d. Fixed a bug that left a file descriptor open to the history file if the |
| 302 |
file size was 0. |
| 303 |
|
| 304 |
e. Fixed a problem with binding key sequences containing meta characters. |
| 305 |
|
| 306 |
f. Fixed a bug that caused the wrong line to be displayed if the user tried to |
| 307 |
move back beyond the beginning of the history list, or forward past the end |
| 308 |
of the history list. |
| 309 |
|
| 310 |
g. If readline catches SIGTSTP, it now sets a hook that allows the calling |
| 311 |
application to handle it if it desires. |
| 312 |
|
| 313 |
h. Fixed a redisplay problem with a prompt string containing embedded newlines. |
| 314 |
|
| 315 |
i. Fixed a problem with completing filenames containing invalid multibyte |
| 316 |
sequences when case-insensitive comparisons are enabled. |
| 317 |
|
| 318 |
j. Fixed a redisplay problem with prompt strings containing invisible multibyte |
| 319 |
characters. |
| 320 |
|
| 321 |
k. Fixed a problem with multibyte characters mapped to editing commands that |
| 322 |
modify the search string in incremental search. |
| 323 |
|
| 324 |
l. Fixed a bug with maintaining the key sequence while resolving a bound |
| 325 |
command in the presence of ambiguous sequences (sequences with a common |
| 326 |
prefix), in most cases while attempting to unbind it. |
| 327 |
|
| 328 |
m. Fixed several buffer overflows found as the result of fuzzing. |
| 329 |
|
| 330 |
n. Reworked backslash handling when translating key sequences for key binding |
| 331 |
to be more uniform and consistent, which introduces a slight backwards |
| 332 |
incompatibility. |
| 333 |
|
| 334 |
o. Fixed a bug with saving the history that resulted in errors not being |
| 335 |
propagated to the calling application when the history file is not writable. |
| 336 |
|
| 337 |
p. Readline only calls chown(2) on a newly-written history file if it really |
| 338 |
needs to, instead of having it be a no-op. |
| 339 |
|
| 340 |
q. Readline now behaves better when operate-and-get-next is used when the |
| 341 |
history list is `full': when there are already $HISTSIZE entries. |
| 342 |
|
| 343 |
r. Fixed a bug that could cause vi redo (`.') of a replace command not to work |
| 344 |
correctly in the C or POSIX locale. |
| 345 |
|
| 346 |
s. Fixed a bug with vi-mode digit arguments that caused the last command to be |
| 347 |
set incorrectly. This prevents yank-last-arg from working as intended, for |
| 348 |
example. |
| 349 |
|
| 350 |
t. Make sure that all undo groups are closed when leaving vi insertion mode. |
| 351 |
|
| 352 |
u. Make sure that the vi-mode `C' and `c' commands enter insert mode even if |
| 353 |
the motion command doesn't have any effect. |
| 354 |
|
| 355 |
v. Fixed several potential memory leaks in the callback mode context handling. |
| 356 |
|
| 357 |
w. If readline is handling a SIGTTOU, make sure SIGTTOU is blocked while |
| 358 |
executing the terminal cleanup code, since it's no longer run in a signal |
| 359 |
handling context. |
| 360 |
|
| 361 |
x. Fixed a bug that could cause an application with an application-specific |
| 362 |
redisplay function to crash if the line data structures had not been |
| 363 |
initialized. |
| 364 |
|
| 365 |
y. Terminals that are named "dumb" or unknown do not enable bracketed paste |
| 366 |
by default. |
| 367 |
|
| 368 |
z. Ensure that disabling bracketed paste turns off highlighting the incremental |
| 369 |
search string when the search is successful. |
| 370 |
|
| 371 |
2. New Features in Readline |
| 372 |
|
| 373 |
a. If a second consecutive completion attempt produces matches where the first |
| 374 |
did not, treat it as a new completion attempt and insert a match as |
| 375 |
appropriate. |
| 376 |
|
| 377 |
b. Bracketed paste mode works in more places: incremental search strings, vi |
| 378 |
overstrike mode, character search, and reading numeric arguments. |
| 379 |
|
| 380 |
c. Readline automatically switches to horizontal scrolling if the terminal has |
| 381 |
only one line. |
| 382 |
|
| 383 |
d. Unbinding all key sequences bound to a particular readline function now |
| 384 |
descends into keymaps for multi-key sequences. |
| 385 |
|
| 386 |
e. rl-clear-display: new bindable command that clears the screen and, if |
| 387 |
possible, the scrollback buffer (bound to emacs mode M-C-l by default). |
| 388 |
|
| 389 |
f. New active mark and face feature: when enabled, it will highlight the text |
| 390 |
inserted by a bracketed paste (the `active region') and the text found by |
| 391 |
incremental and non-incremental history searches. This is tied to bracketed |
| 392 |
paste and can be disabled by turning off bracketed paste. |
| 393 |
|
| 394 |
g. Readline sets the mark in several additional commands. |
| 395 |
|
| 396 |
h. Bracketed paste mode is enabled by default. There is a configure-time |
| 397 |
option (--enable-bracketed-paste-default) to set the default to on or off. |
| 398 |
|
| 399 |
i. Readline tries to take advantage of the more regular structure of UTF-8 |
| 400 |
characters to identify the beginning and end of characters when moving |
| 401 |
through the line buffer. |
| 402 |
|
| 403 |
j. The bindable operate-and-get-next command (and its default bindings) are |
| 404 |
now part of readline instead of a bash-specific addition. |
| 405 |
|
| 406 |
k. The signal cleanup code now blocks SIGINT while processing after a SIGINT. |
| 407 |
|
| 408 |
------------------------------------------------------------------------------- |
| 409 |
This document details the changes between this version, readline-8.0, and the |
| 410 |
previous version, readline-7.0. |
| 411 |
|
| 412 |
1. Changes to Readline |
| 413 |
|
| 414 |
a. Added a guard to prevent nested macros from causing an infinite expansion |
| 415 |
loop. |
| 416 |
|
| 417 |
b. Instead of allocating enough history list entries to hold the maximum list |
| 418 |
size, cap the number allocated initially. |
| 419 |
|
| 420 |
c. Added a strategy to avoid allocating huge amounts of memory if a block of |
| 421 |
history entries without timestamps occurs after a block with timestamps. |
| 422 |
|
| 423 |
d. Added support for keyboard timeouts when an ESC character is the last |
| 424 |
character in a macro. |
| 425 |
|
| 426 |
e. There are several performance improvements when in a UTF-8 locale. |
| 427 |
|
| 428 |
f. Readline does a better job of preserving the original set of blocked |
| 429 |
signals when using pselect() to wait for input. |
| 430 |
|
| 431 |
g. Fixed a bug that caused multibyte characters in macros to be mishandled. |
| 432 |
|
| 433 |
h. Fixed several bugs in the code that calculates line breaks when expanding |
| 434 |
prompts that span several lines, contain multibyte characters, and contain |
| 435 |
invisible character seqeuences. |
| 436 |
|
| 437 |
i. Fixed several bugs in cursor positioning when displaying lines with prompts |
| 438 |
containing invisible characters and multibyte characters. |
| 439 |
|
| 440 |
j. When performing case-insensitive completion, Readline no longer sorts the |
| 441 |
list of matches unless directed to do so. |
| 442 |
|
| 443 |
k. Fixed a problem with key sequences ending with a backslash. |
| 444 |
|
| 445 |
l. Fixed out-of-bounds and free memory read errors found via fuzzing. |
| 446 |
|
| 447 |
m. Fixed several cases where the mark was set to an invalid value. |
| 448 |
|
| 449 |
n. Fixed a problem with the case-changing operators in the case where the |
| 450 |
lower and upper case versions of a character do not have the same number |
| 451 |
of bytes. |
| 452 |
|
| 453 |
o. Handle incremental and non-incremental search character reads returning EOF. |
| 454 |
|
| 455 |
p. Handle the case where a failing readline command at the end of a multi-key |
| 456 |
sequence could be misinterpreted. |
| 457 |
|
| 458 |
q. The history library now prints a meaningful error message if the history |
| 459 |
file isn't a regular file. |
| 460 |
|
| 461 |
r. Fixed a problem with vi-mode redo (`.') on a command when trying to replace |
| 462 |
a multibyte character. |
| 463 |
|
| 464 |
s. The key binding code now attempts to remove a keymap if a key unbinding |
| 465 |
leaves it empty. |
| 466 |
|
| 467 |
t. Fixed a line-wrapping issue that caused problems for some terminal |
| 468 |
emulators. |
| 469 |
|
| 470 |
u. If there is a key bound to the tty's VDISCARD special character, readline |
| 471 |
disables VDISCARD while it is active. |
| 472 |
|
| 473 |
v. Fixed a problem with exiting bracketed paste mode on terminals that assume |
| 474 |
the bracketed paste mode character sequence contains visible characters. |
| 475 |
|
| 476 |
w. Fixed a bug that could cause a key binding command to refer to an |
| 477 |
uninitialized variable. |
| 478 |
|
| 479 |
x. Added more UTF-8-specific versions of multibyte functions, and optimized |
| 480 |
existing functions if the current locale uses UTF-8 encoding. |
| 481 |
|
| 482 |
y. Fixed a problem with bracketed-paste inserting more than one character and |
| 483 |
interacting with other readline functions. |
| 484 |
|
| 485 |
z. Fixed a bug that caused the history library to attempt to append a history |
| 486 |
line to a non-existent history entry. |
| 487 |
|
| 488 |
aa. If using bracketed paste mode, output a newline after the \r that is the |
| 489 |
last character of the mode disable string to avoid overwriting output. |
| 490 |
|
| 491 |
bb. Fixes to the vi-mode `b', `B', `w', `W', `e', and `E' commands to better |
| 492 |
handle multibyte characters. |
| 493 |
|
| 494 |
cc. Fixed a redisplay problem that caused an extra newline to be generated on |
| 495 |
accept-line when the line length is exactly the screenwidth. |
| 496 |
|
| 497 |
dd. Fixed a bug with adding multibyte characters to an incremental search |
| 498 |
string. |
| 499 |
|
| 500 |
ee. Fixed a bug with redoing text insertions in vi mode. |
| 501 |
|
| 502 |
ff. Fixed a bug with pasting text into an incremental search string if bracketed |
| 503 |
paste mode is enabled. ESC cannot be one of the incremental search |
| 504 |
terminator characters for this to work. |
| 505 |
|
| 506 |
gg. Fixed a bug with anchored search patterns when performing searches in vi |
| 507 |
mode. |
| 508 |
|
| 509 |
2. New Features in Readline |
| 510 |
|
| 511 |
a. Non-incremental vi-mode search (`N', `n') can search for a shell pattern, as |
| 512 |
Posix specifies (uses fnmatch(3) if available). |
| 513 |
|
| 514 |
b. There are new `next-screen-line' and `previous-screen-line' bindable |
| 515 |
commands, which move the cursor to the same column in the next, or previous, |
| 516 |
physical line, respectively. |
| 517 |
|
| 518 |
c. There are default key bindings for control-arrow-key key combinations. |
| 519 |
|
| 520 |
d. A negative argument (-N) to `quoted-insert' means to insert the next N |
| 521 |
characters using quoted-insert. |
| 522 |
|
| 523 |
e. New public function: rl_check_signals(), which allows applications to |
| 524 |
respond to signals that readline catches while waiting for input using |
| 525 |
a custom read function. |
| 526 |
|
| 527 |
f. There is new support for conditionally testing the readline version in an |
| 528 |
inputrc file, with a full set of arithmetic comparison operators available. |
| 529 |
|
| 530 |
g. There is a simple variable comparison facility available for use within an |
| 531 |
inputrc file. Allowable operators are equality and inequality; string |
| 532 |
variables may be compared to a value; boolean variables must be compared to |
| 533 |
either `on' or `off'; variable names are separated from the operator by |
| 534 |
whitespace. |
| 535 |
|
| 536 |
h. The history expansion library now understands command and process |
| 537 |
substitution and extended globbing and allows them to appear anywhere in a |
| 538 |
word. |
| 539 |
|
| 540 |
i. The history library has a new variable that allows applications to set the |
| 541 |
initial quoting state, so quoting state can be inherited from a previous |
| 542 |
line. |
| 543 |
|
| 544 |
j. Readline now allows application-defined keymap names; there is a new public |
| 545 |
function, rl_set_keymap_name(), to do that. |
| 546 |
|
| 547 |
k. The "Insert" keypad key, if available, now puts readline into overwrite |
| 548 |
mode. |
| 549 |
|
| 550 |
------------------------------------------------------------------------------- |
| 551 |
This document details the changes between this version, readline-7.0, and the |
| 552 |
previous version, readline-6.3. |
| 553 |
|
| 554 |
1. Changes to Readline |
| 555 |
|
| 556 |
a. A bug that caused vi-mode `.' to be unable to redo `c', `d', and `y' |
| 557 |
commands with modifiers was fixed. |
| 558 |
|
| 559 |
b. Fixed a bug that caused callback mode to dump core when reading a |
| 560 |
multiple-key sequence (e.g., arrow keys). |
| 561 |
|
| 562 |
c. Fixed a bug that caused the redisplay code to erase some of the line when |
| 563 |
using horizontal scrolling with incremental search. |
| 564 |
|
| 565 |
d. Readline's input handler now performs signal processing if read(2) is |
| 566 |
interrupted by SIGALRM or SIGVTALRM. |
| 567 |
|
| 568 |
e. Fixed a problem with revert-all-at-newline freeing freed memory. |
| 569 |
|
| 570 |
f. Clarified the documentation for the history_quotes_inhibit_expansion |
| 571 |
variable to note that it inhibits scanning for the history comment |
| 572 |
character and that it only affects double-quoted strings. |
| 573 |
|
| 574 |
g. Fixed an off-by-one error in the prompt printed when performing searches. |
| 575 |
|
| 576 |
h. Use pselect(2), if available, to wait for input before calling read(2), so |
| 577 |
a SIGWINCH can interrupt it, since it doesn't interrupt read(2). |
| 578 |
|
| 579 |
i. Some memory leaks caused by signals interrupting filename completion have |
| 580 |
been fixed. |
| 581 |
|
| 582 |
j. Reading EOF twice on a non-empty line causes EOF to be returned, rather |
| 583 |
than the partial line. This can cause partial lines to be executed on |
| 584 |
SIGHUP, for example. |
| 585 |
|
| 586 |
k. Fixed a bug concerning deleting multibyte characters from the search |
| 587 |
string while performing an incremental search. |
| 588 |
|
| 589 |
l. Fixed a bug with tilde expanding directory names in filename completion. |
| 590 |
|
| 591 |
m. Fixed a bug that did not allow binding sequences beginning with a `\'. |
| 592 |
|
| 593 |
n. Fixed a redisplay bug involving incorrect line wrapping when the prompt |
| 594 |
contains a multibyte character in the last screen column. |
| 595 |
|
| 596 |
o. Fixed a bug that caused history expansion to disregard characters that are |
| 597 |
documented to delimit a history event specifier without requiring `:'. |
| 598 |
|
| 599 |
p. Fixed a bug that could cause reading past the end of a string when reading |
| 600 |
the value when binding the set of isearch terminators. |
| 601 |
|
| 602 |
q. Fixed a bug that caused readline commands that depend on knowing which |
| 603 |
key invoked them to misbehave when dispatching key sequences that are |
| 604 |
prefixes of other key bindings. |
| 605 |
|
| 606 |
r. Paren matching now works in vi insert mode. |
| 607 |
|
| 608 |
s. Colored completion prefixes are now displayed using a different color, less |
| 609 |
likely to collide with files. |
| 610 |
|
| 611 |
t. Fixed a bug that caused vi-mode character search to misbehave when |
| 612 |
running in callback mode. |
| 613 |
|
| 614 |
u. Fixed a bug that caused output to be delayed when input is coming from a |
| 615 |
macro in vi-mode. |
| 616 |
|
| 617 |
v. Fixed a bug that caused the vi-mode `.' command to misbehave when redoing |
| 618 |
a multi-key key sequence via a macro. |
| 619 |
|
| 620 |
w. Fixed a bug that caused problems with applications that supply their own |
| 621 |
input function when performing completion. |
| 622 |
|
| 623 |
x. When read returns -1/EIO when attempting to read a key, return an error |
| 624 |
instead of line termination back to the caller. |
| 625 |
|
| 626 |
y. Updated tty auditing feature based on patch from Red Hat. |
| 627 |
|
| 628 |
z. Fixed a bug that could cause the history library to crash on overflows |
| 629 |
introduced by malicious editing of timestamps in the history file. |
| 630 |
|
| 631 |
aa. The history file writing functions only attempt to create and use a backup |
| 632 |
history file if the history file exists and is a regular file. |
| 633 |
|
| 634 |
bb. Fixed an out-of-bounds read in readline's internal tilde expansion interface. |
| 635 |
|
| 636 |
cc. Fixed several redisplay bugs with prompt strings containing multibyte |
| 637 |
and non-visible characters whose physical length is longer than the screen |
| 638 |
width. |
| 639 |
|
| 640 |
dd. Fixed a redisplay bug with prompt strings containing invisible characters |
| 641 |
whose physical length exceeds the screen width and using incremental search. |
| 642 |
|
| 643 |
ee. Readline prints more descriptive error messages when it encounters errors |
| 644 |
while reading an inputrc file. |
| 645 |
|
| 646 |
ff. Fixed a bug in the character insertion code that attempts to optimize |
| 647 |
typeahead when it reads a character that is not bound to self-insert and |
| 648 |
resets the key sequence state. |
| 649 |
|
| 650 |
gg. When refreshing the line as the result of a key sequence, Readline attempts |
| 651 |
to redraw only the last line of a multiline prompt. |
| 652 |
|
| 653 |
hh. Fixed an issue that caused completion of git commands to display |
| 654 |
incorrectly when using colored-completion-prefix. |
| 655 |
|
| 656 |
ii. Fixed several redisplay bugs having to do with multibyte characters and |
| 657 |
invisible characters in prompt strings. |
| 658 |
|
| 659 |
jj. Fixed a bug that caused mode strings to be displayed incorrectly if the |
| 660 |
prompt was shorter than the mode string. |
| 661 |
|
| 662 |
2. New Features in Readline |
| 663 |
|
| 664 |
a. The history truncation code now uses the same error recovery mechanism as |
| 665 |
the history writing code, and restores the old version of the history file |
| 666 |
on error. The error recovery mechanism handles symlinked history files. |
| 667 |
|
| 668 |
b. There is a new bindable variable, `enable-bracketed-paste', which enables |
| 669 |
support for a terminal's bracketed paste mode. |
| 670 |
|
| 671 |
c. The editing mode indicators can now be strings and are user-settable |
| 672 |
(new `emacs-mode-string', `vi-cmd-mode-string' and `vi-ins-mode-string' |
| 673 |
variables). Mode strings can contain invisible character sequences. |
| 674 |
Setting mode strings to null strings restores the defaults. |
| 675 |
|
| 676 |
d. Prompt expansion adds the mode string to the last line of a multi-line |
| 677 |
prompt (one with embedded newlines). |
| 678 |
|
| 679 |
e. There is a new bindable variable, `colored-completion-prefix', which, if |
| 680 |
set, causes the common prefix of a set of possible completions to be |
| 681 |
displayed in color. |
| 682 |
|
| 683 |
f. There is a new bindable command `vi-yank-pop', a vi-mode version of emacs- |
| 684 |
mode yank-pop. |
| 685 |
|
| 686 |
g. The redisplay code underwent several efficiency improvements for multibyte |
| 687 |
locales. |
| 688 |
|
| 689 |
h. The insert-char function attempts to batch-insert all pending typeahead |
| 690 |
that maps to self-insert, as long as it is coming from the terminal. |
| 691 |
|
| 692 |
i. rl_callback_sigcleanup: a new application function that can clean up and |
| 693 |
unset any state set by readline's callback mode. Intended to be used |
| 694 |
after a signal. |
| 695 |
|
| 696 |
j. If an incremental search string has its last character removed with DEL, the |
| 697 |
resulting empty search string no longer matches the previous line. |
| 698 |
|
| 699 |
k. If readline reads a history file that begins with `#' (or the value of |
| 700 |
the history comment character) and has enabled history timestamps, the history |
| 701 |
entries are assumed to be delimited by timestamps. This allows multi-line |
| 702 |
history entries. |
| 703 |
|
| 704 |
l. Readline now throws an error if it parses a key binding without a terminating |
| 705 |
`:' or whitespace. |
| 706 |
|
| 707 |
m. The default binding for ^W in vi mode now uses word boundaries specified |
| 708 |
by Posix (vi-unix-word-rubout is bindable command name). |
| 709 |
|
| 710 |
n. rl_clear_visible_line: new application-callable function; clears all |
| 711 |
screen lines occupied by the current visible readline line. |
| 712 |
|
| 713 |
o. rl_tty_set_echoing: application-callable function that controls whether |
| 714 |
or not readline thinks it is echoing terminal output. |
| 715 |
|
| 716 |
p. Handle >| and strings of digits preceding and following redirection |
| 717 |
specifications as single tokens when tokenizing the line for history |
| 718 |
expansion. |
| 719 |
|
| 720 |
q. Fixed a bug with displaying completions when the prefix display length |
| 721 |
is greater than the length of the completions to be displayed. |
| 722 |
|
| 723 |
r. The :p history modifier now applies to the entire line, so any expansion |
| 724 |
specifying :p causes the line to be printed instead of expanded. |
| 725 |
|
| 726 |
s. New application-callable function: rl_pending_signal(): returns the signal |
| 727 |
number of any signal readline has caught but not yet handled. |
| 728 |
|
| 729 |
t. New application-settable variable: rl_persistent_signal_handlers: if set |
| 730 |
to a non-zero value, readline will enable the readline-6.2 signal handler |
| 731 |
behavior in callback mode: handlers are installed when |
| 732 |
rl_callback_handler_install is called and removed removed when a complete |
| 733 |
line has been read. |
| 734 |
|
| 735 |
------------------------------------------------------------------------------- |
| 736 |
This document details the changes between this version, readline-6.3, and the |
| 737 |
previous version, readline-6.2. |
| 738 |
|
| 739 |
1. Changes to Readline |
| 740 |
|
| 741 |
a. Fixed a bug that did not allow the `dd', `cc', or `yy' vi editing mode |
| 742 |
commands to work on the entire line. |
| 743 |
|
| 744 |
b. Fixed a bug that caused redisplay problems with prompts longer than 128 |
| 745 |
characters and history searches. |
| 746 |
|
| 747 |
c. Fixed a bug that caused readline to try and run code to modify its idea |
| 748 |
of the screen size in a signal handler context upon receiving a SIGWINCH. |
| 749 |
|
| 750 |
d. Fixed a bug that caused the `meta' key to be enabled beyond the duration |
| 751 |
of an individual call top readline(). |
| 752 |
|
| 753 |
e. Added a workaround for a wcwidth bug in Mac OS X that caused readline's |
| 754 |
redisplay to mishandle zero-width combining characters. |
| 755 |
|
| 756 |
f. Fixed a bug that caused readline to `forget' part of a key sequence when |
| 757 |
a multiple-key sequence caused it to break out of an incremental search. |
| 758 |
|
| 759 |
g. Fixed bugs that caused readline to execute code in a signal handler |
| 760 |
context if interrupted while reading from the file system during completion. |
| 761 |
|
| 762 |
h. Fixed a bug that caused readline to `forget' part of a key sequence when |
| 763 |
reading an unbound multi-character key sequence. |
| 764 |
|
| 765 |
i. Fixed a bug that caused Readline's signal handlers to be installed beyond |
| 766 |
the bounds of a single call to readline(). |
| 767 |
|
| 768 |
j. Fixed a bug that caused the `.' command to not redo the most recent `R' |
| 769 |
command in vi mode. |
| 770 |
|
| 771 |
k. Fixed a bug that caused ignoring case in completion matches to result in |
| 772 |
readline using the wrong match. |
| 773 |
|
| 774 |
l. Paren matching now works in vi insert mode. |
| 775 |
|
| 776 |
m. Fix menu-completion to make show-all-if-ambiguous and menu-complete-display-prefix |
| 777 |
work together. |
| 778 |
|
| 779 |
n. Fixed a bug that didn't allow the `cc', `dd', or `yy' commands to be redone |
| 780 |
in vi editing mode. |
| 781 |
|
| 782 |
o. Fixed a bug that caused the filename comparison code to not compare |
| 783 |
multibyte characters correctly when using case-sensitive or case-mapping |
| 784 |
comparisons. |
| 785 |
|
| 786 |
p. Fixed the input reading loop to call the input hook function only when there |
| 787 |
is no terminal input available. |
| 788 |
|
| 789 |
q. Fixed a bug that caused binding a macro to a multi-character key sequence |
| 790 |
where the sequence and macro value share a common prefix to not perform |
| 791 |
the macro replacement. |
| 792 |
|
| 793 |
r. Fixed several redisplay errors with multibyte characters and prompts |
| 794 |
containing invisible characters when using horizontal scrolling. |
| 795 |
|
| 796 |
s. Fixed a bug that caused redisplay errors when trying to overwrite |
| 797 |
existing characters using multibyte characters. |
| 798 |
|
| 799 |
t. Fixed a bug in vi mode that caused the arrow keys to set the saved last |
| 800 |
vi-mode command to the wrong value. |
| 801 |
|
| 802 |
u. Fixed a bug that caused double-quoted strings to be scanned incorrectly |
| 803 |
when being used as the value of a readline variable assignment. |
| 804 |
|
| 805 |
v. Fixed a bug with vi mode that prevented `.' from repeating a command |
| 806 |
entered on a previous line (command). |
| 807 |
|
| 808 |
w. Fixed a bug that could cause completion to core dump if it was interrupted |
| 809 |
by a signal. |
| 810 |
|
| 811 |
x. Fixed a bug that could cause readline to crash and seg fault attempting to |
| 812 |
expand an empty history entry. |
| 813 |
|
| 814 |
y. Fixed a bug that caused display problems with multi-line prompts containing |
| 815 |
invisible characters on multiple lines. |
| 816 |
|
| 817 |
z. Fixed a bug that caused effects made by undoing changes to a history line to |
| 818 |
be discarded. |
| 819 |
|
| 820 |
2. New Features in Readline |
| 821 |
|
| 822 |
a. Readline is now more responsive to SIGHUP and other fatal signals when |
| 823 |
reading input from the terminal or performing word completion but no |
| 824 |
longer attempts to run any not-allowable functions from a signal handler |
| 825 |
context. |
| 826 |
|
| 827 |
b. There are new bindable commands to search the history for the string of |
| 828 |
characters between the beginning of the line and the point |
| 829 |
(history-substring-search-forward, history-substring-search-backward) |
| 830 |
|
| 831 |
c. Readline allows quoted strings as the values of variables when setting |
| 832 |
them with `set'. As a side effect, trailing spaces and tabs are ignored |
| 833 |
when setting a string variable's value. |
| 834 |
|
| 835 |
d. The history library creates a backup of the history file when writing it |
| 836 |
and restores the backup on a write error. |
| 837 |
|
| 838 |
e. New application-settable variable: rl_filename_stat_hook: a function called |
| 839 |
with a filename before using it in a call to stat(2). Bash uses it to |
| 840 |
expand shell variables so things like $HOME/Downloads have a slash |
| 841 |
appended. |
| 842 |
|
| 843 |
f. New bindable function `print-last-kbd-macro', prints the most-recently- |
| 844 |
defined keyboard macro in a reusable format. |
| 845 |
|
| 846 |
g. New user-settable variable `colored-stats', enables use of colored text |
| 847 |
to denote file types when displaying possible completions (colored analog |
| 848 |
of visible-stats). |
| 849 |
|
| 850 |
h. New user-settable variable `keyseq-timout', acts as an inter-character |
| 851 |
timeout when reading input or incremental search strings. |
| 852 |
|
| 853 |
i. New application-callable function: rl_clear_history. Clears the history list |
| 854 |
and frees all readline-associated private data. |
| 855 |
|
| 856 |
j. New user-settable variable, show-mode-in-prompt, adds a characters to the |
| 857 |
beginning of the prompt indicating the current editing mode. |
| 858 |
|
| 859 |
k. New application-settable variable: rl_input_available_hook; function to be |
| 860 |
called when readline needs to check whether there is data available on its |
| 861 |
input source. The default hook checks rl_instream. |
| 862 |
|
| 863 |
l. Readline calls an application-set event hook (rl_signal_event_hook) after |
| 864 |
it gets a signal while reading input (read returns -1/EINTR but readline |
| 865 |
does not handle the signal immediately) to allow the application to handle |
| 866 |
or otherwise note it. Not currently called for SIGHUP or SIGTERM. |
| 867 |
|
| 868 |
m. If the user-settable variable `history-size' is set to a value less than |
| 869 |
0, the history list size is unlimited. |
| 870 |
|
| 871 |
n. When creating shared libraries on Mac OS X, the pathname written into the |
| 872 |
library (install_name) no longer includes the minor version number. |
| 873 |
|
| 874 |
------------------------------------------------------------------------------- |
| 875 |
This document details the changes between this version, readline-6.2, |
| 876 |
and the previous version, readline-6.1. |
| 877 |
|
| 878 |
1. Changes to Readline |
| 879 |
|
| 880 |
a. Fixed a bug that caused the unconverted filename to be added to the list of |
| 881 |
completions when the application specified filename conversion functions. |
| 882 |
|
| 883 |
b. Fixed a bug that caused the wrong filename to be passed to opendir when the |
| 884 |
application has specified a filename dequoting function. |
| 885 |
|
| 886 |
c. Fixed a bug when repeating a character search in vi mode in the case where |
| 887 |
there was no search to repeat. |
| 888 |
|
| 889 |
d. When show-all-if-ambiguous is set, the completion routines no longer insert |
| 890 |
a common match prefix that is shorter than the text being completed. |
| 891 |
|
| 892 |
e. The full set of vi editing commands may now be used in callback mode. |
| 893 |
|
| 894 |
f. Fixed a bug that caused readline to not update its idea of the terminal |
| 895 |
dimensions while running in `no-echo' mode. |
| 896 |
|
| 897 |
h. Fixed a bug that caused readline to dump core if an application called |
| 898 |
rl_prep_terminal without setting rl_instream. |
| 899 |
|
| 900 |
i. Fixed a bug that caused meta-prefixed characters bound to incremental |
| 901 |
search forward or backward to not be recognized if they were typed |
| 902 |
subsequently. |
| 903 |
|
| 904 |
j. The incremental search code treats key sequences that map to the same |
| 905 |
functions as (default) ^G, ^W, and ^Y as equivalent to those characters. |
| 906 |
|
| 907 |
k. Fixed a bug in menu-complete that caused it to misbehave with large |
| 908 |
negative argument. |
| 909 |
|
| 910 |
l. Fixed a bug that caused vi-mode yank-last-arg to ring the bell when invoked |
| 911 |
at the end of the line. |
| 912 |
|
| 913 |
m. Fixed a bug that made an explicit argument of 0 to yank-last-arg behave |
| 914 |
as if it were a negative argument. |
| 915 |
|
| 916 |
n. Fixed a bug that caused directory names in words to be completed to not |
| 917 |
be dequoted correctly. |
| 918 |
|
| 919 |
2. New Features in Readline |
| 920 |
|
| 921 |
a. The history library does not try to write the history filename in the |
| 922 |
current directory if $HOME is unset. This closes a potential security |
| 923 |
problem if the application does not specify a history filename. |
| 924 |
|
| 925 |
b. New bindable variable `completion-display-width' to set the number of |
| 926 |
columns used when displaying completions. |
| 927 |
|
| 928 |
c. New bindable variable `completion-case-map' to cause case-insensitive |
| 929 |
completion to treat `-' and `_' as identical. |
| 930 |
|
| 931 |
d. There are new bindable vi-mode command names to avoid readline's case- |
| 932 |
insensitive matching not allowing them to be bound separately. |
| 933 |
|
| 934 |
e. New bindable variable `menu-complete-display-prefix' causes the menu |
| 935 |
completion code to display the common prefix of the possible completions |
| 936 |
before cycling through the list, instead of after. |
| 937 |
|
| 938 |
------------------------------------------------------------------------------- |
| 939 |
This document details the changes between this version, readline-6.1, |
| 940 |
and the previous version, readline-6.0. |
| 941 |
|
| 942 |
1. Changes to Readline |
| 943 |
|
| 944 |
a. The SIGWINCH signal handler now avoids calling the redisplay code if |
| 945 |
one arrives while in the middle of redisplay. |
| 946 |
|
| 947 |
b. Changes to the timeout code to make sure that timeout values greater |
| 948 |
than one second are handled better. |
| 949 |
|
| 950 |
c. Fixed a bug in the redisplay code that was triggered by a prompt |
| 951 |
containing invisible characters exactly the width of the screen. |
| 952 |
|
| 953 |
d. Fixed a bug in the redisplay code encountered when running in horizontal |
| 954 |
scroll mode. |
| 955 |
|
| 956 |
e. Fixed a bug that prevented menu completion from properly completing |
| 957 |
filenames. |
| 958 |
|
| 959 |
f. Fixed a redisplay bug caused by a multibyte character causing a line to |
| 960 |
wrap. |
| 961 |
|
| 962 |
g. Fixed a bug that caused key sequences of two characters to not be |
| 963 |
recognized when a longer sequence identical in the first two characters |
| 964 |
was bound. |
| 965 |
|
| 966 |
h. Fixed a bug that caused history expansion to be attempted on $'...' |
| 967 |
single-quoted strings. |
| 968 |
|
| 969 |
i. Fixed a bug that caused incorrect redisplay when the prompt contained |
| 970 |
multibyte characters in an `invisible' sequence bracketed by \[ and |
| 971 |
\]. |
| 972 |
|
| 973 |
j. Fixed a bug that caused history expansion to short-circuit after |
| 974 |
encountering a multibyte character. |
| 975 |
|
| 976 |
k. Fixed a bug that caused applications using the callback interface to not |
| 977 |
react to SIGINT (or other signals) until another character arrived. |
| 978 |
|
| 979 |
2. New Features in Readline |
| 980 |
|
| 981 |
a. New bindable function: menu-complete-backward. |
| 982 |
|
| 983 |
b. In the vi insertion keymap, C-n is now bound to menu-complete by default, |
| 984 |
and C-p to menu-complete-backward. |
| 985 |
|
| 986 |
c. When in vi command mode, repeatedly hitting ESC now does nothing, even |
| 987 |
when ESC introduces a bound key sequence. This is closer to how |
| 988 |
historical vi behaves. |
| 989 |
|
| 990 |
d. New bindable function: skip-csi-sequence. Can be used as a default to |
| 991 |
consume key sequences generated by keys like Home and End without having |
| 992 |
to bind all keys. |
| 993 |
|
| 994 |
e. New application-settable function: rl_filename_rewrite_hook. Can be used |
| 995 |
to rewrite or modify filenames read from the file system before they are |
| 996 |
compared to the word to be completed. |
| 997 |
|
| 998 |
f. New bindable variable: skip-completed-text, active when completing in the |
| 999 |
middle of a word. If enabled, it means that characters in the completion |
| 1000 |
that match characters in the remainder of the word are "skipped" rather |
| 1001 |
than inserted into the line. |
| 1002 |
|
| 1003 |
g. The pre-readline-6.0 version of menu completion is available as |
| 1004 |
"old-menu-complete" for users who do not like the readline-6.0 version. |
| 1005 |
|
| 1006 |
h. New bindable variable: echo-control-characters. If enabled, and the |
| 1007 |
tty ECHOCTL bit is set, controls the echoing of characters corresponding |
| 1008 |
to keyboard-generated signals. |
| 1009 |
|
| 1010 |
i. New bindable variable: enable-meta-key. Controls whether or not readline |
| 1011 |
sends the smm/rmm sequences if the terminal indicates it has a meta key |
| 1012 |
that enables eight-bit characters. |
| 1013 |
|
| 1014 |
------------------------------------------------------------------------------- |
| 1015 |
This document details the changes between this version, readline-6.0, |
| 1016 |
and the previous version, readline-5.2. |
| 1017 |
|
| 1018 |
1. Changes to Readline |
| 1019 |
|
| 1020 |
a. Fixed a number of redisplay errors in environments supporting multibyte |
| 1021 |
characters. |
| 1022 |
|
| 1023 |
b. Fixed bugs in vi command mode that caused motion commands to inappropriately |
| 1024 |
set the mark. |
| 1025 |
|
| 1026 |
c. When using the arrow keys in vi insertion mode, readline allows movement |
| 1027 |
beyond the current end of the line (unlike command mode). |
| 1028 |
|
| 1029 |
d. Fixed bugs that caused readline to loop when the terminal has been taken |
| 1030 |
away and reads return -1/EIO. |
| 1031 |
|
| 1032 |
e. Fixed bugs in redisplay occurring when displaying prompts containing |
| 1033 |
invisible characters. |
| 1034 |
|
| 1035 |
f. Fixed a bug that caused the completion append character to not be reset to |
| 1036 |
the default after an application-specified completion function changed it. |
| 1037 |
|
| 1038 |
g. Fixed a problem that caused incorrect positioning of the cursor while in |
| 1039 |
emacs editing mode when moving forward at the end of a line while using |
| 1040 |
a locale supporting multibyte characters. |
| 1041 |
|
| 1042 |
h. Fixed an off-by-one error that caused readline to drop every 511th |
| 1043 |
character of buffered input. |
| 1044 |
|
| 1045 |
i. Fixed a bug that resulted in SIGTERM not being caught or cleaned up. |
| 1046 |
|
| 1047 |
j. Fixed redisplay bugs caused by multiline prompts with invisible characters |
| 1048 |
or no characters following the final newline. |
| 1049 |
|
| 1050 |
k. Fixed redisplay bug caused by prompts consisting solely of invisible |
| 1051 |
characters. |
| 1052 |
|
| 1053 |
l. Fixed a bug in the code that buffers characters received very quickly in |
| 1054 |
succession which caused characters to be dropped. |
| 1055 |
|
| 1056 |
m. Fixed a bug that caused readline to reference uninitialized data structures |
| 1057 |
if it received a SIGWINCH before completing initialization. |
| 1058 |
|
| 1059 |
n. Fixed a bug that caused the vi-mode `last command' to be set incorrectly |
| 1060 |
and therefore unrepeatable. |
| 1061 |
|
| 1062 |
o. Fixed a bug that caused readline to disable echoing when it was being used |
| 1063 |
with an output file descriptor that was not a terminal. |
| 1064 |
|
| 1065 |
p. Readline now blocks SIGINT while manipulating internal data structures |
| 1066 |
during redisplay. |
| 1067 |
|
| 1068 |
q. Fixed a bug in redisplay that caused readline to segfault when pasting a |
| 1069 |
very long line (over 130,000 characters). |
| 1070 |
|
| 1071 |
r. Fixed bugs in redisplay when using prompts with no visible printing |
| 1072 |
characters. |
| 1073 |
|
| 1074 |
s. Fixed a bug that caused redisplay errors when using prompts with invisible |
| 1075 |
characters and numeric arguments to a command in a multibyte locale. |
| 1076 |
|
| 1077 |
t. Fixed a bug that caused redisplay errors when using prompts with invisible |
| 1078 |
characters spanning more than two physical screen lines. |
| 1079 |
|
| 1080 |
2. New Features in Readline |
| 1081 |
|
| 1082 |
a. A new variable, rl_sort_completion_matches; allows applications to inhibit |
| 1083 |
match list sorting (but beware: some things don't work right if |
| 1084 |
applications do this). |
| 1085 |
|
| 1086 |
b. A new variable, rl_completion_invoking_key; allows applications to discover |
| 1087 |
the key that invoked rl_complete or rl_menu_complete. |
| 1088 |
|
| 1089 |
c. The functions rl_block_sigint and rl_release_sigint are now public and |
| 1090 |
available to calling applications who want to protect critical sections |
| 1091 |
(like redisplay). |
| 1092 |
|
| 1093 |
d. The functions rl_save_state and rl_restore_state are now public and |
| 1094 |
available to calling applications; documented rest of readline's state |
| 1095 |
flag values. |
| 1096 |
|
| 1097 |
e. A new user-settable variable, `history-size', allows setting the maximum |
| 1098 |
number of entries in the history list. |
| 1099 |
|
| 1100 |
f. There is a new implementation of menu completion, with several improvements |
| 1101 |
over the old; the most notable improvement is a better `completions |
| 1102 |
browsing' mode. |
| 1103 |
|
| 1104 |
g. The menu completion code now uses the rl_menu_completion_entry_function |
| 1105 |
variable, allowing applications to provide their own menu completion |
| 1106 |
generators. |
| 1107 |
|
| 1108 |
h. There is support for replacing a prefix of a pathname with a `...' when |
| 1109 |
displaying possible completions. This is controllable by setting the |
| 1110 |
`completion-prefix-display-length' variable. Matches with a common prefix |
| 1111 |
longer than this value have the common prefix replaced with `...'. |
| 1112 |
|
| 1113 |
i. There is a new `revert-all-at-newline' variable. If enabled, readline will |
| 1114 |
undo all outstanding changes to all history lines when `accept-line' is |
| 1115 |
executed. |
| 1116 |
|
| 1117 |
------------------------------------------------------------------------------- |
| 1118 |
This document details the changes between this version, readline-5.2, |
| 1119 |
and the previous version, readline-5.1. |
| 1120 |
|
| 1121 |
1. Changes to Readline |
| 1122 |
|
| 1123 |
a. Fixed a problem that caused segmentation faults when using readline in |
| 1124 |
callback mode and typing consecutive DEL characters on an empty line. |
| 1125 |
|
| 1126 |
b. Fixed several redisplay problems with multibyte characters, all having to |
| 1127 |
do with the different code paths and variable meanings between single-byte |
| 1128 |
and multibyte character redisplay. |
| 1129 |
|
| 1130 |
c. Fixed a problem with key sequence translation when presented with the |
| 1131 |
sequence \M-\C-x. |
| 1132 |
|
| 1133 |
d. Fixed a problem that prevented the `a' command in vi mode from being |
| 1134 |
undone and redone properly. |
| 1135 |
|
| 1136 |
e. Fixed a problem that prevented empty inserts in vi mode from being undone |
| 1137 |
properly. |
| 1138 |
|
| 1139 |
f. Fixed a problem that caused readline to initialize with an incorrect idea |
| 1140 |
of whether or not the terminal can autowrap. |
| 1141 |
|
| 1142 |
g. Fixed output of key bindings (like bash `bind -p') to honor the setting of |
| 1143 |
convert-meta and use \e where appropriate. |
| 1144 |
|
| 1145 |
h. Changed the default filename completion function to call the filename |
| 1146 |
dequoting function if the directory completion hook isn't set. This means |
| 1147 |
that any directory completion hooks need to dequote the directory name, |
| 1148 |
since application-specific hooks need to know how the word was quoted, |
| 1149 |
even if no other changes are made. |
| 1150 |
|
| 1151 |
i. Fixed a bug with creating the prompt for a non-interactive search string |
| 1152 |
when there are non-printing characters in the primary prompt. |
| 1153 |
|
| 1154 |
j. Fixed a bug that caused prompts with invisible characters to be redrawn |
| 1155 |
multiple times in a multibyte locale. |
| 1156 |
|
| 1157 |
k. Fixed a bug that could cause the key sequence scanning code to return the |
| 1158 |
wrong function. |
| 1159 |
|
| 1160 |
l. Fixed a problem with the callback interface that caused it to fail when |
| 1161 |
using multi-character keyboard macros. |
| 1162 |
|
| 1163 |
m. Fixed a bug that could cause a core dump when an edited history entry was |
| 1164 |
re-executed under certain conditions. |
| 1165 |
|
| 1166 |
n. Fixed a bug that caused readline to reference freed memory when attmpting |
| 1167 |
to display a portion of the prompt. |
| 1168 |
|
| 1169 |
o. Fixed a bug with prompt redisplay in a multi-byte locale to avoid redrawing |
| 1170 |
the prompt and input line multiple times. |
| 1171 |
|
| 1172 |
p. Fixed history expansion to not be confused by here-string redirection. |
| 1173 |
|
| 1174 |
q. Readline no longer treats read errors by converting them to newlines, as |
| 1175 |
it does with EOF. This caused partial lines to be returned from readline(). |
| 1176 |
|
| 1177 |
r. Fixed a redisplay bug that occurred in multibyte-capable locales when the |
| 1178 |
prompt was one character longer than the screen width. |
| 1179 |
|
| 1180 |
2. New Features in Readline |
| 1181 |
|
| 1182 |
a. Calling applications can now set the keyboard timeout to 0, allowing |
| 1183 |
poll-like behavior. |
| 1184 |
|
| 1185 |
b. The value of SYS_INPUTRC (configurable at compilation time) is now used as |
| 1186 |
the default last-ditch startup file. |
| 1187 |
|
| 1188 |
c. The history file reading functions now allow windows-like \r\n line |
| 1189 |
terminators. |
| 1190 |
|
| 1191 |
------------------------------------------------------------------------------- |
| 1192 |
This document details the changes between this version, readline-5.1, |
| 1193 |
and the previous version, readline-5.0. |
| 1194 |
|
| 1195 |
1. Changes to Readline |
| 1196 |
|
| 1197 |
a. Fixed a bug that caused multiliine prompts to be wrapped and displayed |
| 1198 |
incorrectly. |
| 1199 |
|
| 1200 |
b. Fixed a bug that caused ^P/^N in emacs mode to fail to display the current |
| 1201 |
line correctly. |
| 1202 |
|
| 1203 |
c. Fixed a problem in computing the number of invisible characters on the first |
| 1204 |
line of a prompt whose length exceeds the screen width. |
| 1205 |
|
| 1206 |
d. Fixed vi-mode searching so that failure preserves the current line rather |
| 1207 |
than the last line in the history list. |
| 1208 |
|
| 1209 |
e. Fixed the vi-mode `~' command (change-case) to have the correct behavior at |
| 1210 |
end-of-line when manipulating multibyte characters. |
| 1211 |
|
| 1212 |
f. Fixed the vi-mode `r' command (change-char) to have the correct behavior at |
| 1213 |
end-of-line when manipulating multibyte characters. |
| 1214 |
|
| 1215 |
g. Fixed multiple bugs in the redisplay of multibyte characters: displaying |
| 1216 |
prompts longer than the screen width containing multibyte characters, |
| 1217 |
|
| 1218 |
h. Fix the calculation of the number of physical characters in the prompt |
| 1219 |
string when it contains multibyte characters. |
| 1220 |
|
| 1221 |
i. A non-zero value for the `rl_complete_suppress_append' variable now causes |
| 1222 |
no `/' to be appended to a directory name. |
| 1223 |
|
| 1224 |
j. Fixed forward-word and backward-word to work when words contained |
| 1225 |
multibyte characters. |
| 1226 |
|
| 1227 |
k. Fixed a bug in finding the delimiter of a `?' substring when performing |
| 1228 |
history expansion in a locale that supports multibyte characters. |
| 1229 |
|
| 1230 |
l. Fixed a memory leak caused by not freeing the timestamp in a history entry. |
| 1231 |
|
| 1232 |
m. Fixed a bug that caused "\M-x" style key bindings to not obey the setting |
| 1233 |
of the `convert-meta' variable. |
| 1234 |
|
| 1235 |
n. Fixed saving and restoring primary prompt when prompting for incremental |
| 1236 |
and non-incremental searches; search prompts now display multibyte |
| 1237 |
characters correctly. |
| 1238 |
|
| 1239 |
o. Fixed a bug that caused keys originally bound to self-insert but shadowed |
| 1240 |
by a multi-character key sequence to not be inserted. |
| 1241 |
|
| 1242 |
p. Fixed code so rl_prep_term_function and rl_deprep_term_function aren't |
| 1243 |
dereferenced if NULL (matching the documentation). |
| 1244 |
|
| 1245 |
q. Extensive changes to readline to add enough state so that commands |
| 1246 |
requiring additional characters (searches, multi-key sequences, numeric |
| 1247 |
arguments, commands requiring an additional specifier character like |
| 1248 |
vi-mode change-char, etc.) work without synchronously waiting for |
| 1249 |
additional input. |
| 1250 |
|
| 1251 |
r. Lots of changes so readline builds and runs on MinGW. |
| 1252 |
|
| 1253 |
s. Readline no longer tries to modify the terminal settings when running in |
| 1254 |
callback mode. |
| 1255 |
|
| 1256 |
t. The Readline display code no longer sets the location of the last invisible |
| 1257 |
character in the prompt if the \[\] sequence is empty. |
| 1258 |
|
| 1259 |
u. The `change-case' command now correctly changes the case of multibyte |
| 1260 |
characters. |
| 1261 |
|
| 1262 |
v. Changes to the shared library construction scripts to deal with Windows |
| 1263 |
DLL naming conventions for Cygwin. |
| 1264 |
|
| 1265 |
w. Fixed the redisplay code to avoid core dumps resulting from a poorly-timed |
| 1266 |
SIGWINCH. |
| 1267 |
|
| 1268 |
x. Fixed the non-incremental search code in vi mode to dispose of any current |
| 1269 |
undo list when copying a line from the history into the current editing |
| 1270 |
buffer. |
| 1271 |
|
| 1272 |
y. Fixed a bug that caused reversing the incremental search direction to |
| 1273 |
not work correctly. |
| 1274 |
|
| 1275 |
z. Fixed the vi-mode `U' command to only undo up to the first time insert mode |
| 1276 |
was entered, as Posix specifies. |
| 1277 |
|
| 1278 |
aa. Fixed a bug in the vi-mode `r' command that left the cursor in the wrong |
| 1279 |
place. |
| 1280 |
|
| 1281 |
bb. Fixed a redisplay bug caused by moving the cursor vertically to a line |
| 1282 |
with invisible characters in the prompt in a multibyte locale. |
| 1283 |
|
| 1284 |
cc. Fixed a bug that could cause the terminal special chars to be bound in the |
| 1285 |
wrong keymap in vi mode. |
| 1286 |
|
| 1287 |
2. New Features in Readline |
| 1288 |
|
| 1289 |
a. The key sequence sent by the keypad `delete' key is now automatically |
| 1290 |
bound to delete-char. |
| 1291 |
|
| 1292 |
b. A negative argument to menu-complete now cycles backward through the |
| 1293 |
completion list. |
| 1294 |
|
| 1295 |
c. A new bindable readline variable: bind-tty-special-chars. If non-zero, |
| 1296 |
readline will bind the terminal special characters to their readline |
| 1297 |
equivalents when it's called (on by default). |
| 1298 |
|
| 1299 |
d. New bindable command: vi-rubout. Saves deleted text for possible |
| 1300 |
reinsertion, as with any vi-mode `text modification' command; `X' is bound |
| 1301 |
to this in vi command mode. |
| 1302 |
|
| 1303 |
e. If the rl_completion_query_items is set to a value < 0, readline never |
| 1304 |
asks the user whether or not to view the possible completions. |
| 1305 |
|
| 1306 |
f. The `C-w' binding in incremental search now understands multibyte |
| 1307 |
characters. |
| 1308 |
|
| 1309 |
g. New application-callable auxiliary function, rl_variable_value, returns |
| 1310 |
a string corresponding to a readline variable's value. |
| 1311 |
|
| 1312 |
h. When parsing inputrc files and variable binding commands, the parser |
| 1313 |
strips trailing whitespace from values assigned to boolean variables |
| 1314 |
before checking them. |
| 1315 |
|
| 1316 |
i. A new external application-controllable variable that allows the LINES |
| 1317 |
and COLUMNS environment variables to set the window size regardless of |
| 1318 |
what the kernel returns. |
| 1319 |
|
| 1320 |
------------------------------------------------------------------------------- |
| 1321 |
This document details the changes between this version, readline-5.0, |
| 1322 |
and the previous version, readline-4.3. |
| 1323 |
|
| 1324 |
1. Changes to Readline |
| 1325 |
|
| 1326 |
a. Fixes to avoid core dumps because of null pointer references in the |
| 1327 |
multibyte character code. |
| 1328 |
|
| 1329 |
b. Fix to avoid infinite recursion caused by certain key combinations. |
| 1330 |
|
| 1331 |
c. Fixed a bug that caused the vi-mode `last command' to be set incorrectly. |
| 1332 |
|
| 1333 |
d. Readline no longer tries to read ahead more than one line of input, even |
| 1334 |
when more is available. |
| 1335 |
|
| 1336 |
e. Fixed the code that adjusts the point to not mishandle null wide |
| 1337 |
characters. |
| 1338 |
|
| 1339 |
f. Fixed a bug in the history expansion `g' modifier that caused it to skip |
| 1340 |
every other match. |
| 1341 |
|
| 1342 |
g. Fixed a bug that caused the prompt to overwrite previous output when the |
| 1343 |
output doesn't contain a newline and the locale supports multibyte |
| 1344 |
characters. This same change fixes the problem of readline redisplay |
| 1345 |
slowing down dramatically as the line gets longer in multibyte locales. |
| 1346 |
|
| 1347 |
h. History traversal with arrow keys in vi insertion mode causes the cursor |
| 1348 |
to be placed at the end of the new line, like in emacs mode. |
| 1349 |
|
| 1350 |
i. The locale initialization code does a better job of using the right |
| 1351 |
precedence and defaulting when checking the appropriate environment |
| 1352 |
variables. |
| 1353 |
|
| 1354 |
j. Fixed the history word tokenizer to handle <( and >( better when used as |
| 1355 |
part of bash. |
| 1356 |
|
| 1357 |
k. The overwrite mode code received several bug fixes to improve undo. |
| 1358 |
|
| 1359 |
l. Many speedups to the multibyte character redisplay code. |
| 1360 |
|
| 1361 |
m. The callback character reading interface should not hang waiting to read |
| 1362 |
keyboard input. |
| 1363 |
|
| 1364 |
n. Fixed a bug with redoing vi-mode `s' command. |
| 1365 |
|
| 1366 |
o. The code that initializes the terminal tracks changes made to the terminal |
| 1367 |
special characters with stty(1) (or equivalent), so that these changes |
| 1368 |
are reflected in the readline bindings. New application-callable function |
| 1369 |
to make it work: rl_tty_unset_default_bindings(). |
| 1370 |
|
| 1371 |
p. Fixed a bug that could cause garbage to be inserted in the buffer when |
| 1372 |
changing character case in vi mode when using a multibyte locale. |
| 1373 |
|
| 1374 |
q. Fixed a bug in the redisplay code that caused problems on systems |
| 1375 |
supporting multibyte characters when moving between history lines when the |
| 1376 |
new line has more glyphs but fewer bytes. |
| 1377 |
|
| 1378 |
r. Undo and redo now work better after exiting vi insertion mode. |
| 1379 |
|
| 1380 |
s. Make sure system calls are restarted after a SIGWINCH is received using |
| 1381 |
SA_RESTART. |
| 1382 |
|
| 1383 |
t. Improvements to the code that displays possible completions when using |
| 1384 |
multibyte characters. |
| 1385 |
|
| 1386 |
u. Fixed a problem when parsing nested if statements in inputrc files. |
| 1387 |
|
| 1388 |
v. The completer now takes multibyte characters into account when looking for |
| 1389 |
quoted substrings on which to perform completion. |
| 1390 |
|
| 1391 |
w. The history search functions now perform better bounds checking on the |
| 1392 |
history list. |
| 1393 |
|
| 1394 |
x. Change to history expansion functions to treat `^' as equivalent to word |
| 1395 |
one, as the documentation states. |
| 1396 |
|
| 1397 |
y. Some changes to the display code to improve display and redisplay of |
| 1398 |
multibyte characters. |
| 1399 |
|
| 1400 |
z. Changes to speed up the multibyte character redisplay code. |
| 1401 |
|
| 1402 |
aa. Fixed a bug in the vi-mode `E' command that caused it to skip over the |
| 1403 |
last character of a word if invoked while point was on the word's |
| 1404 |
next-to-last character. |
| 1405 |
|
| 1406 |
bb. Fixed a bug that could cause incorrect filename quoting when |
| 1407 |
case-insensitive completion was enabled and the word being completed |
| 1408 |
contained backslashes quoting word break characters. |
| 1409 |
|
| 1410 |
cc. Fixed a bug in redisplay triggered when the prompt string contains |
| 1411 |
invisible characters. |
| 1412 |
|
| 1413 |
dd. Fixed some display (and other) bugs encountered in multibyte locales |
| 1414 |
when a non-ascii character was the last character on a line. |
| 1415 |
|
| 1416 |
ee. Fixed some display bugs caused by multibyte characters in prompt strings. |
| 1417 |
|
| 1418 |
ff. Fixed a problem with history expansion caused by non-whitespace characters |
| 1419 |
used as history word delimiters. |
| 1420 |
|
| 1421 |
gg. Fixed a problem that could cause readline to refer to freed memory when |
| 1422 |
moving between history lines while doing searches. |
| 1423 |
|
| 1424 |
hh. Improvements to the code that expands and displays prompt strings |
| 1425 |
containing multibyte characters. |
| 1426 |
|
| 1427 |
ii. Fixed a problem with vi-mode not correctly remembering the numeric argument |
| 1428 |
to the last `c'hange command for later use with `.'. |
| 1429 |
|
| 1430 |
jj. Fixed a bug in vi-mode that caused multi-digit count arguments to work |
| 1431 |
incorrectly. |
| 1432 |
|
| 1433 |
kk. Fixed a problem in vi-mode that caused the last text modification command |
| 1434 |
to not be remembered across different command lines. |
| 1435 |
|
| 1436 |
ll. Fixed problems with changing characters and changing case at the end of |
| 1437 |
the line. |
| 1438 |
|
| 1439 |
mm. Fixed a problem with readline saving the contents of the current line |
| 1440 |
before beginning a non-interactive search. |
| 1441 |
|
| 1442 |
nn. Fixed a problem with EOF detection when using rl_event_hook. |
| 1443 |
|
| 1444 |
oo. Fixed a problem with the vi mode `p' and `P' commands ignoring numeric |
| 1445 |
arguments. |
| 1446 |
|
| 1447 |
2. New Features in Readline |
| 1448 |
|
| 1449 |
a. History expansion has a new `a' modifier equivalent to the `g' modifier |
| 1450 |
for compatibility with the BSD csh. |
| 1451 |
|
| 1452 |
b. History expansion has a new `G' modifier equivalent to the BSD csh `g' |
| 1453 |
modifier, which performs a substitution once per word. |
| 1454 |
|
| 1455 |
c. All non-incremental search operations may now undo the operation of |
| 1456 |
replacing the current line with the history line. |
| 1457 |
|
| 1458 |
d. The text inserted by an `a' command in vi mode can be reinserted with |
| 1459 |
`.'. |
| 1460 |
|
| 1461 |
e. New bindable variable, `show-all-if-unmodified'. If set, the readline |
| 1462 |
completer will list possible completions immediately if there is more |
| 1463 |
than one completion and partial completion cannot be performed. |
| 1464 |
|
| 1465 |
f. There is a new application-callable `free_history_entry()' function. |
| 1466 |
|
| 1467 |
g. History list entries now contain timestamp information; the history file |
| 1468 |
functions know how to read and write timestamp information associated |
| 1469 |
with each entry. |
| 1470 |
|
| 1471 |
h. Four new key binding functions have been added: |
| 1472 |
|
| 1473 |
rl_bind_key_if_unbound() |
| 1474 |
rl_bind_key_if_unbound_in_map() |
| 1475 |
rl_bind_keyseq_if_unbound() |
| 1476 |
rl_bind_keyseq_if_unbound_in_map() |
| 1477 |
|
| 1478 |
i. New application variable, rl_completion_quote_character, set to any |
| 1479 |
quote character readline finds before it calls the application completion |
| 1480 |
function. |
| 1481 |
|
| 1482 |
j. New application variable, rl_completion_suppress_quote, settable by an |
| 1483 |
application completion function. If set to non-zero, readline does not |
| 1484 |
attempt to append a closing quote to a completed word. |
| 1485 |
|
| 1486 |
k. New application variable, rl_completion_found_quote, set to a non-zero |
| 1487 |
value if readline determines that the word to be completed is quoted. |
| 1488 |
Set before readline calls any application completion function. |
| 1489 |
|
| 1490 |
l. New function hook, rl_completion_word_break_hook, called when readline |
| 1491 |
needs to break a line into words when completion is attempted. Allows |
| 1492 |
the word break characters to vary based on position in the line. |
| 1493 |
|
| 1494 |
m. New bindable command: unix-filename-rubout. Does the same thing as |
| 1495 |
unix-word-rubout, but adds `/' to the set of word delimiters. |
| 1496 |
|
| 1497 |
n. When listing completions, directories have a `/' appended if the |
| 1498 |
`mark-directories' option has been enabled. |
| 1499 |
|
| 1500 |
------------------------------------------------------------------------------- |
| 1501 |
This document details the changes between this version, readline-4.3, |
| 1502 |
and the previous version, readline-4.2a. |
| 1503 |
|
| 1504 |
1. Changes to Readline |
| 1505 |
|
| 1506 |
a. Fixed output of comment-begin character when listing variable values. |
| 1507 |
|
| 1508 |
b. Added some default key bindings for common escape sequences produced by |
| 1509 |
HOME and END keys. |
| 1510 |
|
| 1511 |
c. Fixed the mark handling code to be more emacs-compatible. |
| 1512 |
|
| 1513 |
d. A bug was fixed in the code that prints possible completions to keep it |
| 1514 |
from printing empty strings in certain circumstances. |
| 1515 |
|
| 1516 |
e. Change the key sequence printing code to print ESC as M\- if ESC is a |
| 1517 |
meta-prefix character -- it's easier for users to understand than \e. |
| 1518 |
|
| 1519 |
f. Fixed unstifle_history() to return values that match the documentation. |
| 1520 |
|
| 1521 |
g. Fixed the event loop (rl_event_hook) to handle the case where the input |
| 1522 |
file descriptor is invalidated. |
| 1523 |
|
| 1524 |
h. Fixed the prompt display code to work better when the application has a |
| 1525 |
custom redisplay function. |
| 1526 |
|
| 1527 |
i. Changes to make reading and writing the history file a little faster, and |
| 1528 |
to cope with huge history files without calling abort(3) from xmalloc. |
| 1529 |
|
| 1530 |
j. The vi-mode `S' and `s' commands are now undone correctly. |
| 1531 |
|
| 1532 |
k. Fixed a problem which caused the display to be messed up when the last |
| 1533 |
line of a multi-line prompt (possibly containing invisible characters) |
| 1534 |
was longer than the screen width. |
| 1535 |
|
| 1536 |
2. New Features in Readline |
| 1537 |
|
| 1538 |
a. Support for key `subsequences': allows, e.g., ESC and ESC-a to both |
| 1539 |
be bound to readline functions. Now the arrow keys may be used in vi |
| 1540 |
insert mode. |
| 1541 |
|
| 1542 |
b. When listing completions, and the number of lines displayed is more than |
| 1543 |
the screen length, readline uses an internal pager to display the results. |
| 1544 |
This is controlled by the `page-completions' variable (default on). |
| 1545 |
|
| 1546 |
c. New code to handle editing and displaying multibyte characters. |
| 1547 |
|
| 1548 |
d. The behavior introduced in bash-2.05a of deciding whether or not to |
| 1549 |
append a slash to a completed name that is a symlink to a directory has |
| 1550 |
been made optional, controlled by the `mark-symlinked-directories' |
| 1551 |
variable (default is the 2.05a behavior). |
| 1552 |
|
| 1553 |
e. The `insert-comment' command now acts as a toggle if given a numeric |
| 1554 |
argument: if the first characters on the line don't specify a |
| 1555 |
comment, insert one; if they do, delete the comment text |
| 1556 |
|
| 1557 |
f. New application-settable completion variable: |
| 1558 |
rl_completion_mark_symlink_dirs, allows an application's completion |
| 1559 |
function to temporarily override the user's preference for appending |
| 1560 |
slashes to names which are symlinks to directories. |
| 1561 |
|
| 1562 |
g. New function available to application completion functions: |
| 1563 |
rl_completion_mode, to tell how the completion function was invoked |
| 1564 |
and decide which argument to supply to rl_complete_internal (to list |
| 1565 |
completions, etc.). |
| 1566 |
|
| 1567 |
h. Readline now has an overwrite mode, toggled by the `overwrite-mode' |
| 1568 |
bindable command, which could be bound to `Insert'. |
| 1569 |
|
| 1570 |
i. New application-settable completion variable: |
| 1571 |
rl_completion_suppress_append, inhibits appending of |
| 1572 |
rl_completion_append_character to completed words. |
| 1573 |
|
| 1574 |
j. New key bindings when reading an incremental search string: ^W yanks |
| 1575 |
the currently-matched word out of the current line into the search |
| 1576 |
string; ^Y yanks the rest of the current line into the search string, |
| 1577 |
DEL or ^H deletes characters from the search string. |
| 1578 |
|
| 1579 |
------------------------------------------------------------------------------- |
| 1580 |
This document details the changes between this version, readline-4.2a, |
| 1581 |
and the previous version, readline-4.2. |
| 1582 |
|
| 1583 |
1. Changes to Readline |
| 1584 |
|
| 1585 |
a. More `const' and type casting fixes. |
| 1586 |
|
| 1587 |
b. Changed rl_message() to use vsnprintf(3) (if available) to fix buffer |
| 1588 |
overflow problems. |
| 1589 |
|
| 1590 |
c. The completion code no longer appends a `/' or ` ' to a match when |
| 1591 |
completing a symbolic link that resolves to a directory name, unless |
| 1592 |
the match does not add anything to the word being completed. This |
| 1593 |
means that a tab will complete the word up to the full name, but not |
| 1594 |
add anything, and a subsequent tab will add a slash. |
| 1595 |
|
| 1596 |
d. Fixed a trivial typo that made the vi-mode `dT' command not work. |
| 1597 |
|
| 1598 |
e. Fixed the tty code so that ^S and ^Q can be inserted with rl_quoted_insert. |
| 1599 |
|
| 1600 |
f. Fixed the tty code so that ^V works more than once. |
| 1601 |
|
| 1602 |
g. Changed the use of __P((...)) for function prototypes to PARAMS((...)) |
| 1603 |
because the use of __P in typedefs conflicted g++ and glibc. |
| 1604 |
|
| 1605 |
h. The completion code now attempts to do a better job of preserving the |
| 1606 |
case of the word the user typed if ignoring case in completions. |
| 1607 |
|
| 1608 |
i. Readline defaults to not echoing the input and lets the terminal |
| 1609 |
initialization code enable echoing if there is a controlling terminal. |
| 1610 |
|
| 1611 |
j. The key binding code now processes only two hex digits after a `\x' |
| 1612 |
escape sequence, and the documentation was changed to note that the |
| 1613 |
octal and hex escape sequences result in an eight-bit value rather |
| 1614 |
than strict ASCII. |
| 1615 |
|
| 1616 |
k. Fixed a few places where negative array subscripts could have occurred. |
| 1617 |
|
| 1618 |
l. Fixed the vi-mode code to use a better method to determine the bounds of |
| 1619 |
the array used to hold the marks, and to avoid out-of-bounds references. |
| 1620 |
|
| 1621 |
m. Fixed the defines in chardefs.h to work better when chars are signed. |
| 1622 |
|
| 1623 |
n. Fixed configure.in to use the new names for bash autoconf macros. |
| 1624 |
|
| 1625 |
o. Readline no longer attempts to define its own versions of some ctype |
| 1626 |
macros if they are implemented as functions in libc but not as macros in |
| 1627 |
<ctype.h>. |
| 1628 |
|
| 1629 |
p. Fixed a problem where rl_backward could possibly set point to before |
| 1630 |
the beginning of the line. |
| 1631 |
|
| 1632 |
q. Fixed Makefile to not put -I/usr/include into CFLAGS, since it can cause |
| 1633 |
include file problems. |
| 1634 |
|
| 1635 |
2. New Features in Readline |
| 1636 |
|
| 1637 |
a. Added extern declaration for rl_get_termcap to readline.h, making it a |
| 1638 |
public function (it was always there, just not in readline.h). |
| 1639 |
|
| 1640 |
b. New #defines in readline.h: RL_READLINE_VERSION, currently 0x0402, |
| 1641 |
RL_VERSION_MAJOR, currently 4, and RL_VERSION_MINOR, currently 2. |
| 1642 |
|
| 1643 |
c. New readline variable: rl_readline_version, mirrors RL_READLINE_VERSION. |
| 1644 |
|
| 1645 |
d. New bindable boolean readline variable: match-hidden-files. Controls |
| 1646 |
completion of files beginning with a `.' (on Unix). Enabled by default. |
| 1647 |
|
| 1648 |
e. The history expansion code now allows any character to terminate a |
| 1649 |
`:first-' modifier, like csh. |
| 1650 |
|
| 1651 |
f. The incremental search code remembers the last search string and uses |
| 1652 |
it if ^R^R is typed without a search string. |
| 1653 |
|
| 1654 |
h. New bindable variable `history-preserve-point'. If set, the history |
| 1655 |
code attempts to place the user at the same location on each history |
| 1656 |
line retrieved with previous-history or next-history. |
| 1657 |
|
| 1658 |
------------------------------------------------------------------------------- |
| 1659 |
This document details the changes between this version, readline-4.2, |
| 1660 |
and the previous version, readline-4.1. |
| 1661 |
|
| 1662 |
1. Changes to Readline |
| 1663 |
|
| 1664 |
a. When setting the terminal attributes on systems using `struct termio', |
| 1665 |
readline waits for output to drain before changing the attributes. |
| 1666 |
|
| 1667 |
b. A fix was made to the history word tokenization code to avoid attempts to |
| 1668 |
dereference a null pointer. |
| 1669 |
|
| 1670 |
c. Readline now defaults rl_terminal_name to $TERM if the calling application |
| 1671 |
has left it unset, and tries to initialize with the resultant value. |
| 1672 |
|
| 1673 |
d. Instead of calling (*rl_getc_function)() directly to get input in certain |
| 1674 |
places, readline now calls rl_read_key() consistently. |
| 1675 |
|
| 1676 |
e. Fixed a bug in the completion code that allowed a backslash to quote a |
| 1677 |
single quote inside a single-quoted string. |
| 1678 |
|
| 1679 |
f. rl_prompt is no longer assigned directly from the argument to readline(), |
| 1680 |
but uses memory allocated by readline. This allows constant strings to |
| 1681 |
be passed to readline without problems arising when the prompt processing |
| 1682 |
code wants to modify the string. |
| 1683 |
|
| 1684 |
g. Fixed a bug that caused non-interactive history searches to return the |
| 1685 |
wrong line when performing multiple searches backward for the same string. |
| 1686 |
|
| 1687 |
h. Many variables, function arguments, and function return values are now |
| 1688 |
declared `const' where appropriate, to improve behavior when linking with |
| 1689 |
C++ code. |
| 1690 |
|
| 1691 |
i. The control character detection code now works better on systems where |
| 1692 |
`char' is unsigned by default. |
| 1693 |
|
| 1694 |
j. The vi-mode numeric argument is now capped at 999999, just like emacs mode. |
| 1695 |
|
| 1696 |
k. The Function, CPFunction, CPPFunction, and VFunction typedefs have been |
| 1697 |
replaced with a set of specific prototyped typedefs, though they are |
| 1698 |
still in the readline header files for backwards compatibility. |
| 1699 |
|
| 1700 |
m. Nearly all of the (undocumented) internal global variables in the library |
| 1701 |
now have an _rl_ prefix -- there were a number that did not, like |
| 1702 |
screenheight, screenwidth, alphabetic, etc. |
| 1703 |
|
| 1704 |
n. The ding() convenience function has been renamed to rl_ding(), though the |
| 1705 |
old function is still defined for backwards compatibility. |
| 1706 |
|
| 1707 |
o. The completion convenience functions filename_completion_function, |
| 1708 |
username_completion_function, and completion_matches now have an rl_ |
| 1709 |
prefix, though the old names are still defined for backwards compatibility. |
| 1710 |
|
| 1711 |
p. The functions shared by readline and bash (linkage is satisfied from bash |
| 1712 |
when compiling with bash, and internally otherwise) now have an sh_ prefix. |
| 1713 |
|
| 1714 |
q. Changed the shared library creation procedure on Linux and BSD/OS 4.x so |
| 1715 |
that the `soname' contains only the major version number rather than the |
| 1716 |
major and minor numbers. |
| 1717 |
|
| 1718 |
r. Fixed a redisplay bug that occurred when the prompt spanned more than one |
| 1719 |
physical line and contained invisible characters. |
| 1720 |
|
| 1721 |
s. Added a missing `includedir' variable to the Makefile. |
| 1722 |
|
| 1723 |
t. When installing the shared libraries, make sure symbolic links are relative. |
| 1724 |
|
| 1725 |
u. Added configure test so that it can set `${MAKE}' appropriately. |
| 1726 |
|
| 1727 |
v. Fixed a bug in rl_forward that could cause the point to be set to before |
| 1728 |
the beginning of the line in vi mode. |
| 1729 |
|
| 1730 |
w. Fixed a bug in the callback read-char interface to make it work when a |
| 1731 |
readline function pushes some input onto the input stream with |
| 1732 |
rl_execute_next (like the incremental search functions). |
| 1733 |
|
| 1734 |
x. Fixed a file descriptor leak in the history file manipulation code that |
| 1735 |
was tripped when attempting to truncate a non-regular file (like |
| 1736 |
/dev/null). |
| 1737 |
|
| 1738 |
y. Changes to make all of the exported readline functions declared in |
| 1739 |
readline.h have an rl_ prefix (rltty_set_default_bindings is now |
| 1740 |
rl_tty_set_default_bindings, crlf is now rl_crlf, etc.) |
| 1741 |
|
| 1742 |
z. The formatted documentation included in the base readline distribution |
| 1743 |
is no longer removed on a `make distclean'. |
| 1744 |
|
| 1745 |
aa. Some changes were made to avoid gcc warnings with -Wall. |
| 1746 |
|
| 1747 |
bb. rl_get_keymap_by_name now finds keymaps case-insensitively, so |
| 1748 |
`set keymap EMACS' works. |
| 1749 |
|
| 1750 |
cc. The history file writing and truncation functions now return a useful |
| 1751 |
status on error. |
| 1752 |
|
| 1753 |
dd. Fixed a bug that could cause applications to dereference a NULL pointer |
| 1754 |
if a NULL second argument was passed to history_expand(). |
| 1755 |
|
| 1756 |
ee. If a hook function assigned to rl_event_hook sets rl_done to a non-zero |
| 1757 |
value, rl_read_key() now immediately returns '\n' (which is assumed to |
| 1758 |
be bound to accept-line). |
| 1759 |
|
| 1760 |
2. New Features in Readline |
| 1761 |
|
| 1762 |
a. The blink timeout for paren matching is now settable by applications, |
| 1763 |
via the rl_set_paren_blink_timeout() function. |
| 1764 |
|
| 1765 |
b. _rl_executing_macro has been renamed to rl_executing_macro, which means |
| 1766 |
it's now part of the public interface. |
| 1767 |
|
| 1768 |
c. Readline has a new variable, rl_readline_state, which is a bitmap that |
| 1769 |
encapsulates the current state of the library; intended for use by |
| 1770 |
callbacks and hook functions. |
| 1771 |
|
| 1772 |
d. rlfe has a new -l option to log input and output (-a appends to logfile), |
| 1773 |
a new -n option to set the readline application name, and -v and -h |
| 1774 |
options for version and help information. |
| 1775 |
|
| 1776 |
e. rlfe can now perform filename completion for the inferior process if the |
| 1777 |
OS has a /proc/<PID>/cwd that can be read with readlink(2) to get the |
| 1778 |
inferior's current working directory. |
| 1779 |
|
| 1780 |
f. A new file, rltypedefs.h, contains the new typedefs for function pointers |
| 1781 |
and is installed by `make install'. |
| 1782 |
|
| 1783 |
g. New application-callable function rl_set_prompt(const char *prompt): |
| 1784 |
expands its prompt string argument and sets rl_prompt to the result. |
| 1785 |
|
| 1786 |
h. New application-callable function rl_set_screen_size(int rows, int cols): |
| 1787 |
public method for applications to set readline's idea of the screen |
| 1788 |
dimensions. |
| 1789 |
|
| 1790 |
i. The history example program (examples/histexamp.c) is now built as one |
| 1791 |
of the examples. |
| 1792 |
|
| 1793 |
j. The documentation has been updated to cover nearly all of the public |
| 1794 |
functions and variables declared in readline.h. |
| 1795 |
|
| 1796 |
k. New function, rl_get_screen_size (int *rows, int *columns), returns |
| 1797 |
readline's idea of the screen dimensions. |
| 1798 |
|
| 1799 |
l. The timeout in rl_gather_tyi (readline keyboard input polling function) |
| 1800 |
is now settable via a function (rl_set_keyboard_input_timeout()). |
| 1801 |
|
| 1802 |
m. Renamed the max_input_history variable to history_max_entries; the old |
| 1803 |
variable is maintained for backwards compatibility. |
| 1804 |
|
| 1805 |
n. The list of characters that separate words for the history tokenizer is |
| 1806 |
now settable with a variable: history_word_delimiters. The default |
| 1807 |
value is as before. |
| 1808 |
|
| 1809 |
o. There is a new history.3 manual page documenting the history library. |
| 1810 |
|
| 1811 |
------------------------------------------------------------------------------- |
| 1812 |
This document details the changes between this version, readline-4.1, |
| 1813 |
and the previous version, readline-4.0. |
| 1814 |
|
| 1815 |
1. Changes to Readline |
| 1816 |
|
| 1817 |
a. Changed the HTML documents so that the table-of-contents is no longer |
| 1818 |
a separate file. |
| 1819 |
|
| 1820 |
b. Changes to the shared object configuration for: Irix 5.x, Irix 6.x, |
| 1821 |
OSF/1. |
| 1822 |
|
| 1823 |
c. The shared library major and minor versions are now constructed |
| 1824 |
automatically by configure and substituted into the makefiles. |
| 1825 |
|
| 1826 |
d. It's now possible to install the shared libraries separately from the |
| 1827 |
static libraries. |
| 1828 |
|
| 1829 |
e. The history library tries to truncate the history file only if it is a |
| 1830 |
regular file. |
| 1831 |
|
| 1832 |
f. A bug that caused _rl_dispatch to address negative array indices on |
| 1833 |
systems with signed chars was fixed. |
| 1834 |
|
| 1835 |
g. rl-yank-nth-arg now leaves the history position the same as when it was |
| 1836 |
called. |
| 1837 |
|
| 1838 |
h. Changes to the completion code to handle MS-DOS drive-letter:pathname |
| 1839 |
filenames. |
| 1840 |
|
| 1841 |
i. Completion is now case-insensitive by default on MS-DOS. |
| 1842 |
|
| 1843 |
j. Fixes to the history file manipulation code for MS-DOS. |
| 1844 |
|
| 1845 |
k. Readline attempts to bind the arrow keys to appropriate defaults on MS-DOS. |
| 1846 |
|
| 1847 |
l. Some fixes were made to the redisplay code for better operation on MS-DOS. |
| 1848 |
|
| 1849 |
m. The quoted-insert code will now insert tty special chars like ^C. |
| 1850 |
|
| 1851 |
n. A bug was fixed that caused the display code to reference memory before |
| 1852 |
the start of the prompt string. |
| 1853 |
|
| 1854 |
o. More support for __EMX__ (OS/2). |
| 1855 |
|
| 1856 |
p. A bug was fixed in readline's signal handling that could cause infinite |
| 1857 |
recursion in signal handlers. |
| 1858 |
|
| 1859 |
q. A bug was fixed that caused the point to be less than zero when rl_forward |
| 1860 |
was given a very large numeric argument. |
| 1861 |
|
| 1862 |
r. The vi-mode code now gets characters via the application-settable value |
| 1863 |
of rl_getc_function rather than calling rl_getc directly. |
| 1864 |
|
| 1865 |
s. The history file code now uses O_BINARY mode when reading and writing |
| 1866 |
the history file on cygwin32. |
| 1867 |
|
| 1868 |
t. Fixed a bug in the redisplay code for lines with more than 256 line |
| 1869 |
breaks. |
| 1870 |
|
| 1871 |
u. A bug was fixed which caused invisible character markers to not be |
| 1872 |
stripped from the prompt string if the terminal was in no-echo mode. |
| 1873 |
|
| 1874 |
v. Readline no longer tries to get the variables it needs for redisplay |
| 1875 |
from the termcap entry if the calling application has specified its |
| 1876 |
own redisplay function. Readline treats the terminal as `dumb' in |
| 1877 |
this case. |
| 1878 |
|
| 1879 |
w. Fixes to the SIGWINCH code so that a multiple-line prompt with escape |
| 1880 |
sequences is redrawn correctly. |
| 1881 |
|
| 1882 |
x. Changes to the install and install-shared targets so that the libraries |
| 1883 |
and header files are installed separately. |
| 1884 |
|
| 1885 |
2. New Features in Readline |
| 1886 |
|
| 1887 |
a. A new Readline `user manual' is in doc/rluserman.texinfo. |
| 1888 |
|
| 1889 |
b. Parentheses matching is now always compiled into readline, and enabled |
| 1890 |
or disabled when the value of the `blink-matching-paren' variable is |
| 1891 |
changed. |
| 1892 |
|
| 1893 |
c. MS-DOS systems now use ~/_inputrc as the last-ditch inputrc filename. |
| 1894 |
|
| 1895 |
d. MS-DOS systems now use ~/_history as the default history file. |
| 1896 |
|
| 1897 |
e. history-search-{forward,backward} now leave the point at the end of the |
| 1898 |
line when the string to search for is empty, like |
| 1899 |
{reverse,forward}-search-history. |
| 1900 |
|
| 1901 |
f. history-search-{forward,backward} now leave the last history line found |
| 1902 |
in the readline buffer if the second or subsequent search fails. |
| 1903 |
|
| 1904 |
g. New function for use by applications: rl_on_new_line_with_prompt, used |
| 1905 |
when an application displays the prompt itself before calling readline(). |
| 1906 |
|
| 1907 |
h. New variable for use by applications: rl_already_prompted. An application |
| 1908 |
that displays the prompt itself before calling readline() must set this to |
| 1909 |
a non-zero value. |
| 1910 |
|
| 1911 |
i. A new variable, rl_gnu_readline_p, always 1. The intent is that an |
| 1912 |
application can verify whether or not it is linked with the `real' |
| 1913 |
readline library or some substitute. |
| 1914 |
|
| 1915 |
j. Per Bothner's `rlfe' (pronounced `Ralphie') readline front-end program |
| 1916 |
is included in the examples subdirectory, though it is not built |
| 1917 |
by default. |
| 1918 |
|
| 1919 |
------------------------------------------------------------------------------- |
| 1920 |
This document details the changes between this version, readline-4.0, |
| 1921 |
and the previous version, readline-2.2. |
| 1922 |
|
| 1923 |
1. Changes to Readline |
| 1924 |
|
| 1925 |
a. The version number is now 4.0, to match the major and minor version |
| 1926 |
numbers on the shared readline and history libraries. Future |
| 1927 |
releases will maintain the identical numbering. |
| 1928 |
|
| 1929 |
b. Fixed a typo in the `make install' recipe that copied libreadline.a |
| 1930 |
to libhistory.old right after installing it. |
| 1931 |
|
| 1932 |
c. The readline and history info files are now installed out of the source |
| 1933 |
directory if they are not found in the build directory. |
| 1934 |
|
| 1935 |
d. The library no longer exports a function named `savestring' -- backwards |
| 1936 |
compatibility be damned. |
| 1937 |
|
| 1938 |
e. There is no longer any #ifdef SHELL code in the source files. |
| 1939 |
|
| 1940 |
f. Some changes were made to the key binding code to fix memory leaks and |
| 1941 |
better support Win32 systems. |
| 1942 |
|
| 1943 |
g. Fixed a silly typo in the paren matching code -- it's microseconds, not |
| 1944 |
milliseconds. |
| 1945 |
|
| 1946 |
h. The readline library should be compilable by C++ compilers. |
| 1947 |
|
| 1948 |
i. The readline.h public header file now includes function prototypes for |
| 1949 |
all readline functions, and some changes were made to fix errors in the |
| 1950 |
source files uncovered by the use of prototypes. |
| 1951 |
|
| 1952 |
j. The maximum numeric argument is now clamped at 1000000. |
| 1953 |
|
| 1954 |
k. Fixes to rl_yank_last_arg to make it behave better. |
| 1955 |
|
| 1956 |
l. Fixed a bug in the display code that caused core dumps if the prompt |
| 1957 |
string length exceeded 1024 characters. |
| 1958 |
|
| 1959 |
m. The menu completion code was fixed to properly insert a single completion |
| 1960 |
if there is only one match. |
| 1961 |
|
| 1962 |
n. A bug was fixed that caused the display code to improperly display tabs |
| 1963 |
after newlines. |
| 1964 |
|
| 1965 |
o. A fix was made to the completion code in which a typo caused the wrong |
| 1966 |
value to be passed to the function that computed the longest common |
| 1967 |
prefix of the list of matches. |
| 1968 |
|
| 1969 |
p. The completion code now checks the value of rl_filename_completion_desired, |
| 1970 |
which is set by application-supplied completion functions to indicate |
| 1971 |
that filename completion is being performed, to decide whether or not to |
| 1972 |
call an application-supplied `ignore completions' function. |
| 1973 |
|
| 1974 |
q. Code was added to the history library to catch history substitutions |
| 1975 |
using `&' without a previous history substitution or search having been |
| 1976 |
performed. |
| 1977 |
|
| 1978 |
|
| 1979 |
2. New Features in Readline |
| 1980 |
|
| 1981 |
a. There is a new script, support/shobj-conf, to do system-specific shared |
| 1982 |
object and library configuration. It generates variables for configure |
| 1983 |
to substitute into makefiles. The README file provides a detailed |
| 1984 |
explanation of the shared library creation process. |
| 1985 |
|
| 1986 |
b. Shared libraries and objects are now built in the `shlib' subdirectory. |
| 1987 |
There is a shlib/Makefile.in to control the build process. `make shared' |
| 1988 |
from the top-level directory is still the right way to build shared |
| 1989 |
versions of the libraries. |
| 1990 |
|
| 1991 |
c. rlconf.h is now installed, so applications can find out which features |
| 1992 |
have been compiled into the installed readline and history libraries. |
| 1993 |
|
| 1994 |
d. rlstdc.h is now an installed header file. |
| 1995 |
|
| 1996 |
e. Many changes to the signal handling: |
| 1997 |
o Readline now catches SIGQUIT and cleans up the tty before returning; |
| 1998 |
o A new variable, rl_catch_signals, is available to application writers |
| 1999 |
to indicate to readline whether or not it should install its own |
| 2000 |
signal handlers for SIGINT, SIGTERM, SIGQUIT, SIGALRM, SIGTSTP, |
| 2001 |
SIGTTIN, and SIGTTOU; |
| 2002 |
o A new variable, rl_catch_sigwinch, is available to application |
| 2003 |
writers to indicate to readline whether or not it should install its |
| 2004 |
own signal handler for SIGWINCH, which will chain to the calling |
| 2005 |
applications's SIGWINCH handler, if one is installed; |
| 2006 |
o There is a new function, rl_free_line_state, for application signal |
| 2007 |
handlers to call to free up the state associated with the current |
| 2008 |
line after receiving a signal; |
| 2009 |
o There is a new function, rl_cleanup_after_signal, to clean up the |
| 2010 |
display and terminal state after receiving a signal; |
| 2011 |
o There is a new function, rl_reset_after_signal, to reinitialize the |
| 2012 |
terminal and display state after an application signal handler |
| 2013 |
returns and readline continues |
| 2014 |
|
| 2015 |
f. There is a new function, rl_resize_terminal, to reset readline's idea of |
| 2016 |
the screen size after a SIGWINCH. |
| 2017 |
|
| 2018 |
g. New public functions: rl_save_prompt and rl_restore_prompt. These were |
| 2019 |
previously private functions with a `_' prefix. These functions are |
| 2020 |
used when an application wants to write a message to the `message area' |
| 2021 |
with rl_message and have the prompt restored correctly when the message |
| 2022 |
is erased. |
| 2023 |
|
| 2024 |
h. New function hook: rl_pre_input_hook, called just before readline starts |
| 2025 |
reading input, after initialization. |
| 2026 |
|
| 2027 |
i. New function hook: rl_display_matches_hook, called when readline would |
| 2028 |
display the list of completion matches. The new function |
| 2029 |
rl_display_match_list is what readline uses internally, and is available |
| 2030 |
for use by application functions called via this hook. |
| 2031 |
|
| 2032 |
j. New bindable function, delete-char-or-list, like tcsh. |
| 2033 |
|
| 2034 |
k. A new variable, rl_erase_empty_line, which, if set by an application using |
| 2035 |
readline, will cause readline to erase, prompt and all, lines on which the |
| 2036 |
only thing typed was a newline. |
| 2037 |
|
| 2038 |
l. There is a new script, support/shlib-install, to install and uninstall |
| 2039 |
the shared readline and history libraries. |
| 2040 |
|
| 2041 |
m. A new bindable variable, `isearch-terminators', which is a string |
| 2042 |
containing the set of characters that should terminate an incremental |
| 2043 |
search without being executed as a command. |
| 2044 |
|
| 2045 |
n. A new bindable function, forward-backward-delete-char. |
| 2046 |
|
| 2047 |
------------------------------------------------------------------------------- |
| 2048 |
This document details the changes between this version, readline-2.2, |
| 2049 |
and the previous version, readline-2.1. |
| 2050 |
|
| 2051 |
1. Changes to Readline |
| 2052 |
|
| 2053 |
a. Added a missing `extern' to a declaration in readline.h that kept |
| 2054 |
readline from compiling cleanly on some systems. |
| 2055 |
|
| 2056 |
b. The history file is now opened with mode 0600 when it is written for |
| 2057 |
better security. |
| 2058 |
|
| 2059 |
c. Changes were made to the SIGWINCH handling code so that prompt redisplay |
| 2060 |
is done better. |
| 2061 |
|
| 2062 |
d. ^G now interrupts incremental searches correctly. |
| 2063 |
|
| 2064 |
e. A bug that caused a core dump when the set of characters to be quoted |
| 2065 |
when completing words was empty was fixed. |
| 2066 |
|
| 2067 |
f. Fixed a problem in the readline test program rltest.c that caused a core |
| 2068 |
dump. |
| 2069 |
|
| 2070 |
g. The code that handles parser directives in inputrc files now displays |
| 2071 |
more error messages. |
| 2072 |
|
| 2073 |
h. The history expansion code was fixed so that the appearance of the |
| 2074 |
history comment character at the beginning of a word inhibits history |
| 2075 |
expansion for that word and the rest of the input line. |
| 2076 |
|
| 2077 |
i. The code that prints completion listings now behaves better if one or |
| 2078 |
more of the filenames contains non-printable characters. |
| 2079 |
|
| 2080 |
j. The time delay when showing matching parentheses is now 0.5 seconds. |
| 2081 |
|
| 2082 |
|
| 2083 |
2. New Features in Readline |
| 2084 |
|
| 2085 |
a. There is now an option for `iterative' yank-last-arg handline, so a user |
| 2086 |
can keep entering `M-.', yanking the last argument of successive history |
| 2087 |
lines. |
| 2088 |
|
| 2089 |
b. New variable, `print-completions-horizontally', which causes completion |
| 2090 |
matches to be displayed across the screen (like `ls -x') rather than up |
| 2091 |
and down the screen (like `ls'). |
| 2092 |
|
| 2093 |
c. New variable, `completion-ignore-case', which causes filename completion |
| 2094 |
and matching to be performed case-insensitively. |
| 2095 |
|
| 2096 |
d. There is a new bindable command, `magic-space', which causes history |
| 2097 |
expansion to be performed on the current readline buffer and a space to |
| 2098 |
be inserted into the result. |
| 2099 |
|
| 2100 |
e. There is a new bindable command, `menu-complete', which enables tcsh-like |
| 2101 |
menu completion (successive executions of menu-complete insert a single |
| 2102 |
completion match, cycling through the list of possible completions). |
| 2103 |
|
| 2104 |
f. There is a new bindable command, `paste-from-clipboard', for use on Win32 |
| 2105 |
systems, to insert the text from the Win32 clipboard into the editing |
| 2106 |
buffer. |
| 2107 |
|
| 2108 |
g. The key sequence translation code now understands printf-style backslash |
| 2109 |
escape sequences, including \NNN octal escapes. These escape sequences |
| 2110 |
may be used in key sequence definitions or macro values. |
| 2111 |
|
| 2112 |
h. An `$include' inputrc file parser directive has been added. |