mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-01 09:29:51 +02:00
commit bash-20140124 snapshot
This commit is contained in:
+82
-76
@@ -3274,51 +3274,56 @@ RREEAADDLLIINNEE
|
||||
$$EEDDIITTOORR, and _e_m_a_c_s as the editor, in that order.
|
||||
|
||||
CCoommmmaannddss ffoorr CChhaannggiinngg TTeexxtt
|
||||
_e_n_d_-_o_f_-_f_i_l_e ((uussuuaallllyy CC--dd))
|
||||
The character indicating end-of-file as set, for example, by
|
||||
``stty''. If this character is read when there are no charac-
|
||||
ters on the line, and point is at the beginning of the line,
|
||||
Readline interprets it as the end of input and returns EEOOFF.
|
||||
ddeelleettee--cchhaarr ((CC--dd))
|
||||
Delete the character at point. If point is at the beginning of
|
||||
the line, there are no characters in the line, and the last
|
||||
character typed was not bound to ddeelleettee--cchhaarr, then return EEOOFF.
|
||||
Delete the character at point. If this function is bound to the
|
||||
same character as the tty EEOOFF character, as CC--dd commonly is, see
|
||||
above for the effects.
|
||||
bbaacckkwwaarrdd--ddeelleettee--cchhaarr ((RRuubboouutt))
|
||||
Delete the character behind the cursor. When given a numeric
|
||||
Delete the character behind the cursor. When given a numeric
|
||||
argument, save the deleted text on the kill ring.
|
||||
ffoorrwwaarrdd--bbaacckkwwaarrdd--ddeelleettee--cchhaarr
|
||||
Delete the character under the cursor, unless the cursor is at
|
||||
Delete the character under the cursor, unless the cursor is at
|
||||
the end of the line, in which case the character behind the cur-
|
||||
sor is deleted.
|
||||
qquuootteedd--iinnsseerrtt ((CC--qq,, CC--vv))
|
||||
Add the next character typed to the line verbatim. This is how
|
||||
Add the next character typed to the line verbatim. This is how
|
||||
to insert characters like CC--qq, for example.
|
||||
ttaabb--iinnsseerrtt ((CC--vv TTAABB))
|
||||
Insert a tab character.
|
||||
sseellff--iinnsseerrtt ((aa,, bb,, AA,, 11,, !!,, ......))
|
||||
Insert the character typed.
|
||||
ttrraannssppoossee--cchhaarrss ((CC--tt))
|
||||
Drag the character before point forward over the character at
|
||||
point, moving point forward as well. If point is at the end of
|
||||
the line, then this transposes the two characters before point.
|
||||
Drag the character before point forward over the character at
|
||||
point, moving point forward as well. If point is at the end of
|
||||
the line, then this transposes the two characters before point.
|
||||
Negative arguments have no effect.
|
||||
ttrraannssppoossee--wwoorrddss ((MM--tt))
|
||||
Drag the word before point past the word after point, moving
|
||||
point over that word as well. If point is at the end of the
|
||||
Drag the word before point past the word after point, moving
|
||||
point over that word as well. If point is at the end of the
|
||||
line, this transposes the last two words on the line.
|
||||
uuppccaassee--wwoorrdd ((MM--uu))
|
||||
Uppercase the current (or following) word. With a negative
|
||||
Uppercase the current (or following) word. With a negative
|
||||
argument, uppercase the previous word, but do not move point.
|
||||
ddoowwnnccaassee--wwoorrdd ((MM--ll))
|
||||
Lowercase the current (or following) word. With a negative
|
||||
Lowercase the current (or following) word. With a negative
|
||||
argument, lowercase the previous word, but do not move point.
|
||||
ccaappiittaalliizzee--wwoorrdd ((MM--cc))
|
||||
Capitalize the current (or following) word. With a negative
|
||||
Capitalize the current (or following) word. With a negative
|
||||
argument, capitalize the previous word, but do not move point.
|
||||
oovveerrwwrriittee--mmooddee
|
||||
Toggle overwrite mode. With an explicit positive numeric argu-
|
||||
Toggle overwrite mode. With an explicit positive numeric argu-
|
||||
ment, switches to overwrite mode. With an explicit non-positive
|
||||
numeric argument, switches to insert mode. This command affects
|
||||
only eemmaaccss mode; vvii mode does overwrite differently. Each call
|
||||
only eemmaaccss mode; vvii mode does overwrite differently. Each call
|
||||
to _r_e_a_d_l_i_n_e_(_) starts in insert mode. In overwrite mode, charac-
|
||||
ters bound to sseellff--iinnsseerrtt replace the text at point rather than
|
||||
pushing the text to the right. Characters bound to bbaacckk--
|
||||
wwaarrdd--ddeelleettee--cchhaarr replace the character before point with a
|
||||
ters bound to sseellff--iinnsseerrtt replace the text at point rather than
|
||||
pushing the text to the right. Characters bound to bbaacckk--
|
||||
wwaarrdd--ddeelleettee--cchhaarr replace the character before point with a
|
||||
space. By default, this command is unbound.
|
||||
|
||||
KKiilllliinngg aanndd YYaannkkiinngg
|
||||
@@ -3327,31 +3332,31 @@ RREEAADDLLIINNEE
|
||||
bbaacckkwwaarrdd--kkiillll--lliinnee ((CC--xx RRuubboouutt))
|
||||
Kill backward to the beginning of the line.
|
||||
uunniixx--lliinnee--ddiissccaarrdd ((CC--uu))
|
||||
Kill backward from point to the beginning of the line. The
|
||||
Kill backward from point to the beginning of the line. The
|
||||
killed text is saved on the kill-ring.
|
||||
kkiillll--wwhhoollee--lliinnee
|
||||
Kill all characters on the current line, no matter where point
|
||||
Kill all characters on the current line, no matter where point
|
||||
is.
|
||||
kkiillll--wwoorrdd ((MM--dd))
|
||||
Kill from point to the end of the current word, or if between
|
||||
words, to the end of the next word. Word boundaries are the
|
||||
same as those used by ffoorrwwaarrdd--wwoorrdd.
|
||||
bbaacckkwwaarrdd--kkiillll--wwoorrdd ((MM--RRuubboouutt))
|
||||
Kill the word behind point. Word boundaries are the same as
|
||||
those used by bbaacckkwwaarrdd--wwoorrdd.
|
||||
sshheellll--kkiillll--wwoorrdd ((MM--dd))
|
||||
Kill from point to the end of the current word, or if between
|
||||
words, to the end of the next word. Word boundaries are the
|
||||
same as those used by ffoorrwwaarrdd--wwoorrdd.
|
||||
bbaacckkwwaarrdd--kkiillll--wwoorrdd ((MM--RRuubboouutt))
|
||||
Kill the word behind point. Word boundaries are the same as
|
||||
those used by bbaacckkwwaarrdd--wwoorrdd.
|
||||
sshheellll--kkiillll--wwoorrdd ((MM--dd))
|
||||
Kill from point to the end of the current word, or if between
|
||||
words, to the end of the next word. Word boundaries are the
|
||||
same as those used by sshheellll--ffoorrwwaarrdd--wwoorrdd.
|
||||
sshheellll--bbaacckkwwaarrdd--kkiillll--wwoorrdd ((MM--RRuubboouutt))
|
||||
Kill the word behind point. Word boundaries are the same as
|
||||
Kill the word behind point. Word boundaries are the same as
|
||||
those used by sshheellll--bbaacckkwwaarrdd--wwoorrdd.
|
||||
uunniixx--wwoorrdd--rruubboouutt ((CC--ww))
|
||||
Kill the word behind point, using white space as a word bound-
|
||||
Kill the word behind point, using white space as a word bound-
|
||||
ary. The killed text is saved on the kill-ring.
|
||||
uunniixx--ffiilleennaammee--rruubboouutt
|
||||
Kill the word behind point, using white space and the slash
|
||||
character as the word boundaries. The killed text is saved on
|
||||
Kill the word behind point, using white space and the slash
|
||||
character as the word boundaries. The killed text is saved on
|
||||
the kill-ring.
|
||||
ddeelleettee--hhoorriizzoonnttaall--ssppaaccee ((MM--\\))
|
||||
Delete all spaces and tabs around point.
|
||||
@@ -3360,65 +3365,65 @@ RREEAADDLLIINNEE
|
||||
ccooppyy--rreeggiioonn--aass--kkiillll
|
||||
Copy the text in the region to the kill buffer.
|
||||
ccooppyy--bbaacckkwwaarrdd--wwoorrdd
|
||||
Copy the word before point to the kill buffer. The word bound-
|
||||
Copy the word before point to the kill buffer. The word bound-
|
||||
aries are the same as bbaacckkwwaarrdd--wwoorrdd.
|
||||
ccooppyy--ffoorrwwaarrdd--wwoorrdd
|
||||
Copy the word following point to the kill buffer. The word
|
||||
Copy the word following point to the kill buffer. The word
|
||||
boundaries are the same as ffoorrwwaarrdd--wwoorrdd.
|
||||
yyaannkk ((CC--yy))
|
||||
Yank the top of the kill ring into the buffer at point.
|
||||
yyaannkk--ppoopp ((MM--yy))
|
||||
Rotate the kill ring, and yank the new top. Only works follow-
|
||||
Rotate the kill ring, and yank the new top. Only works follow-
|
||||
ing yyaannkk or yyaannkk--ppoopp.
|
||||
|
||||
NNuummeerriicc AArrgguummeennttss
|
||||
ddiiggiitt--aarrgguummeenntt ((MM--00,, MM--11,, ......,, MM----))
|
||||
Add this digit to the argument already accumulating, or start a
|
||||
Add this digit to the argument already accumulating, or start a
|
||||
new argument. M-- starts a negative argument.
|
||||
uunniivveerrssaall--aarrgguummeenntt
|
||||
This is another way to specify an argument. If this command is
|
||||
followed by one or more digits, optionally with a leading minus
|
||||
sign, those digits define the argument. If the command is fol-
|
||||
lowed by digits, executing uunniivveerrssaall--aarrgguummeenntt again ends the
|
||||
numeric argument, but is otherwise ignored. As a special case,
|
||||
if this command is immediately followed by a character that is
|
||||
neither a digit or minus sign, the argument count for the next
|
||||
command is multiplied by four. The argument count is initially
|
||||
one, so executing this function the first time makes the argu-
|
||||
This is another way to specify an argument. If this command is
|
||||
followed by one or more digits, optionally with a leading minus
|
||||
sign, those digits define the argument. If the command is fol-
|
||||
lowed by digits, executing uunniivveerrssaall--aarrgguummeenntt again ends the
|
||||
numeric argument, but is otherwise ignored. As a special case,
|
||||
if this command is immediately followed by a character that is
|
||||
neither a digit or minus sign, the argument count for the next
|
||||
command is multiplied by four. The argument count is initially
|
||||
one, so executing this function the first time makes the argu-
|
||||
ment count four, a second time makes the argument count sixteen,
|
||||
and so on.
|
||||
|
||||
CCoommpplleettiinngg
|
||||
ccoommpplleettee ((TTAABB))
|
||||
Attempt to perform completion on the text before point. BBaasshh
|
||||
Attempt to perform completion on the text before point. BBaasshh
|
||||
attempts completion treating the text as a variable (if the text
|
||||
begins with $$), username (if the text begins with ~~), hostname
|
||||
(if the text begins with @@), or command (including aliases and
|
||||
begins with $$), username (if the text begins with ~~), hostname
|
||||
(if the text begins with @@), or command (including aliases and
|
||||
functions) in turn. If none of these produces a match, filename
|
||||
completion is attempted.
|
||||
ppoossssiibbllee--ccoommpplleettiioonnss ((MM--??))
|
||||
List the possible completions of the text before point.
|
||||
iinnsseerrtt--ccoommpplleettiioonnss ((MM--**))
|
||||
Insert all completions of the text before point that would have
|
||||
Insert all completions of the text before point that would have
|
||||
been generated by ppoossssiibbllee--ccoommpplleettiioonnss.
|
||||
mmeennuu--ccoommpplleettee
|
||||
Similar to ccoommpplleettee, but replaces the word to be completed with
|
||||
a single match from the list of possible completions. Repeated
|
||||
execution of mmeennuu--ccoommpplleettee steps through the list of possible
|
||||
completions, inserting each match in turn. At the end of the
|
||||
Similar to ccoommpplleettee, but replaces the word to be completed with
|
||||
a single match from the list of possible completions. Repeated
|
||||
execution of mmeennuu--ccoommpplleettee steps through the list of possible
|
||||
completions, inserting each match in turn. At the end of the
|
||||
list of completions, the bell is rung (subject to the setting of
|
||||
bbeellll--ssttyyllee) and the original text is restored. An argument of _n
|
||||
moves _n positions forward in the list of matches; a negative
|
||||
argument may be used to move backward through the list. This
|
||||
command is intended to be bound to TTAABB, but is unbound by
|
||||
moves _n positions forward in the list of matches; a negative
|
||||
argument may be used to move backward through the list. This
|
||||
command is intended to be bound to TTAABB, but is unbound by
|
||||
default.
|
||||
mmeennuu--ccoommpplleettee--bbaacckkwwaarrdd
|
||||
Identical to mmeennuu--ccoommpplleettee, but moves backward through the list
|
||||
of possible completions, as if mmeennuu--ccoommpplleettee had been given a
|
||||
Identical to mmeennuu--ccoommpplleettee, but moves backward through the list
|
||||
of possible completions, as if mmeennuu--ccoommpplleettee had been given a
|
||||
negative argument. This command is unbound by default.
|
||||
ddeelleettee--cchhaarr--oorr--lliisstt
|
||||
Deletes the character under the cursor if not at the beginning
|
||||
or end of the line (like ddeelleettee--cchhaarr). If at the end of the
|
||||
Deletes the character under the cursor if not at the beginning
|
||||
or end of the line (like ddeelleettee--cchhaarr). If at the end of the
|
||||
line, behaves identically to ppoossssiibbllee--ccoommpplleettiioonnss. This command
|
||||
is unbound by default.
|
||||
ccoommpplleettee--ffiilleennaammee ((MM--//))
|
||||
@@ -3427,56 +3432,57 @@ RREEAADDLLIINNEE
|
||||
List the possible completions of the text before point, treating
|
||||
it as a filename.
|
||||
ccoommpplleettee--uusseerrnnaammee ((MM--~~))
|
||||
Attempt completion on the text before point, treating it as a
|
||||
Attempt completion on the text before point, treating it as a
|
||||
username.
|
||||
ppoossssiibbllee--uusseerrnnaammee--ccoommpplleettiioonnss ((CC--xx ~~))
|
||||
List the possible completions of the text before point, treating
|
||||
it as a username.
|
||||
ccoommpplleettee--vvaarriiaabbllee ((MM--$$))
|
||||
Attempt completion on the text before point, treating it as a
|
||||
Attempt completion on the text before point, treating it as a
|
||||
shell variable.
|
||||
ppoossssiibbllee--vvaarriiaabbllee--ccoommpplleettiioonnss ((CC--xx $$))
|
||||
List the possible completions of the text before point, treating
|
||||
it as a shell variable.
|
||||
ccoommpplleettee--hhoossttnnaammee ((MM--@@))
|
||||
Attempt completion on the text before point, treating it as a
|
||||
Attempt completion on the text before point, treating it as a
|
||||
hostname.
|
||||
ppoossssiibbllee--hhoossttnnaammee--ccoommpplleettiioonnss ((CC--xx @@))
|
||||
List the possible completions of the text before point, treating
|
||||
it as a hostname.
|
||||
ccoommpplleettee--ccoommmmaanndd ((MM--!!))
|
||||
Attempt completion on the text before point, treating it as a
|
||||
command name. Command completion attempts to match the text
|
||||
against aliases, reserved words, shell functions, shell
|
||||
Attempt completion on the text before point, treating it as a
|
||||
command name. Command completion attempts to match the text
|
||||
against aliases, reserved words, shell functions, shell
|
||||
builtins, and finally executable filenames, in that order.
|
||||
ppoossssiibbllee--ccoommmmaanndd--ccoommpplleettiioonnss ((CC--xx !!))
|
||||
List the possible completions of the text before point, treating
|
||||
it as a command name.
|
||||
ddyynnaammiicc--ccoommpplleettee--hhiissttoorryy ((MM--TTAABB))
|
||||
Attempt completion on the text before point, comparing the text
|
||||
against lines from the history list for possible completion
|
||||
Attempt completion on the text before point, comparing the text
|
||||
against lines from the history list for possible completion
|
||||
matches.
|
||||
ddaabbbbrreevv--eexxppaanndd
|
||||
Attempt menu completion on the text before point, comparing the
|
||||
Attempt menu completion on the text before point, comparing the
|
||||
text against lines from the history list for possible completion
|
||||
matches.
|
||||
ccoommpplleettee--iinnttoo--bbrraacceess ((MM--{{))
|
||||
Perform filename completion and insert the list of possible com-
|
||||
pletions enclosed within braces so the list is available to the
|
||||
pletions enclosed within braces so the list is available to the
|
||||
shell (see BBrraaccee EExxppaannssiioonn above).
|
||||
|
||||
KKeeyybbooaarrdd MMaaccrrooss
|
||||
ssttaarrtt--kkbbdd--mmaaccrroo ((CC--xx (())
|
||||
Begin saving the characters typed into the current keyboard
|
||||
Begin saving the characters typed into the current keyboard
|
||||
macro.
|
||||
eenndd--kkbbdd--mmaaccrroo ((CC--xx ))))
|
||||
Stop saving the characters typed into the current keyboard macro
|
||||
and store the definition.
|
||||
ccaallll--llaasstt--kkbbdd--mmaaccrroo ((CC--xx ee))
|
||||
Re-execute the last keyboard macro defined, by making the char-
|
||||
acters in the macro appear as if typed at the keyboard.
|
||||
pprriinntt--llaasstt--kkbbdd--mmaaccrroo (()) Print the last keyboard macro defined in
|
||||
a format suitable for the _i_n_p_u_t_r_c file.
|
||||
Re-execute the last keyboard macro defined, by making the char-
|
||||
acters in the macro appear as if typed at the keyboard.
|
||||
pprriinntt--llaasstt--kkbbdd--mmaaccrroo (())
|
||||
Print the last keyboard macro defined in a format suitable for
|
||||
the _i_n_p_u_t_r_c file.
|
||||
|
||||
MMiisscceellllaanneeoouuss
|
||||
rree--rreeaadd--iinniitt--ffiillee ((CC--xx CC--rr))
|
||||
@@ -5715,4 +5721,4 @@ BBUUGGSS
|
||||
|
||||
|
||||
|
||||
GNU Bash 4.3 2013 October 20 BASH(1)
|
||||
GNU Bash 4.3 2014 January 6 BASH(1)
|
||||
|
||||
Reference in New Issue
Block a user