3 <title>Debugging with GDB
</title>
4 <meta http-equiv=
"Content-Type" content=
"text/html">
5 <meta name=
"description" content=
"Debugging with GDB">
6 <meta name=
"generator" content=
"makeinfo 4.3">
7 <link href=
"http://www.gnu.org/software/texinfo/" rel=
"generator-home">
12 Node:
<a name=
"History%20Interaction">History Interaction
</a>,
13 Up:
<a rel=
"up" accesskey=
"u" href=
"Using-History-Interactively.html#Using%20History%20Interactively">Using History Interactively
</a>
17 <h3 class=
"section">History Expansion
</h3>
19 <p>The History library provides a history expansion feature that is similar
20 to the history expansion provided by
<code>csh
</code>. This section
21 describes the syntax used to manipulate the history information.
23 <p>History expansions introduce words from the history list into
24 the input stream, making it easy to repeat commands, insert the
25 arguments to a previous command into the current input line, or
26 fix errors in previous commands quickly.
28 <p>History expansion takes place in two parts. The first is to determine
29 which line from the history list should be used during substitution.
30 The second is to select portions of that line for inclusion into the
31 current one. The line selected from the history is called the
32 <dfn>event
</dfn>, and the portions of that line that are acted upon are
33 called
<dfn>words
</dfn>. Various
<dfn>modifiers
</dfn> are available to manipulate
34 the selected words. The line is broken into words in the same fashion
35 that Bash does, so that several words
36 surrounded by quotes are considered one word.
37 History expansions are introduced by the appearance of the
38 history expansion character, which is
<code>!
</code> by default.
41 <li><a accesskey=
"1" href=
"Event-Designators.html#Event%20Designators">Event Designators
</a>: How to specify which history line to use.
42 <li><a accesskey=
"2" href=
"Word-Designators.html#Word%20Designators">Word Designators
</a>: Specifying which words are of interest.
43 <li><a accesskey=
"3" href=
"Modifiers.html#Modifiers">Modifiers
</a>: Modifying the results of substitution.