Chapter 8: Command Line Editing

117

in a history line. This is a non-incremental search. By default, this command is unbound. history-substr-search-backward ()

Search backward through the history for the string of characters between the start of the current line and the point. The search string may match anywhere in a history line. This is a non-incremental search. By default, this command is unbound. yank-nth-arg (M-C-y)

Insert the first argument to the previous command (usually the second word on the previous line) at point. With an argument n, insert the nth word from the previous command (the words in the previous command begin with word

0). A negative argument inserts the nth word from the end of the previous command. Once the argument n is computed, the argument is extracted as if the ā€˜!n’ history expansion had been specified. yank-last-arg (M-. or M-_)

Insert last argument to the previous command (the last word of the previous history entry). With a numeric argument, behave exactly like yank-nth-arg.

Successive calls to yank-last-arg move back through the history list, inserting the last word (or the word specified by the argument to the first call) of each line in turn. Any numeric argument supplied to these successive calls determines the direction to move through the history. A negative argument switches the direction through the history (back or forward). The history expansion facilities are used to extract the last argument, as if the ā€˜!$’ history expansion had been specified.

8.4.3 Commands For Changing Text end-of-file (usually C-d)

The character indicating end-of-file as set, for example, by stty. If this charac- ter is read when there are no characters on the line, and point is at the beginning of the line, Readline interprets it as the end of input and returns eof. delete-char (C-d)

Delete the character at point. If this function is bound to the same character as the tty eof character, as C-d commonly is, see above for the effects. backward-delete-char (Rubout)

Delete the character behind the cursor. A numeric argument means to kill the characters instead of deleting them. forward-backward-delete-char ()

Delete the character under the cursor, unless the cursor is at the end of the line, in which case the character behind the cursor is deleted. By default, this is not bound to a key. quoted-insert (C-q or C-v)

Add the next character typed to the line verbatim. This is how to insert key sequences like C-q, for example.