Initial bulk commit for "Git on MSys"
[msysgit/historical-msysgit.git] / mingw / info / gdb / Event-Designators.html
blobc41a7ef3bea3bd9121122c4c181aef3628eca520
1 <html lang="en">
2 <head>
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">
8 </head>
9 <body>
10 <div class="node">
11 <p>
12 Node:<a name="Event%20Designators">Event Designators</a>,
13 Next:<a rel="next" accesskey="n" href="Word-Designators.html#Word%20Designators">Word Designators</a>,
14 Up:<a rel="up" accesskey="u" href="History-Interaction.html#History%20Interaction">History Interaction</a>
15 <hr><br>
16 </div>
18 <h4 class="subsection">Event Designators</h4>
20 <p>An event designator is a reference to a command line entry in the
21 history list.
23 <dl>
25 <br><dt><code>!</code>
26 <dd>Start a history substitution, except when followed by a space, tab,
27 the end of the line, <code>=</code> or <code>(</code>.
29 <br><dt><code>!</code><var>n</var><code></code>
30 <dd>Refer to command line <var>n</var>.
32 <br><dt><code>!-</code><var>n</var><code></code>
33 <dd>Refer to the command <var>n</var> lines back.
35 <br><dt><code>!!</code>
36 <dd>Refer to the previous command. This is a synonym for <code>!-1</code>.
38 <br><dt><code>!</code><var>string</var><code></code>
39 <dd>Refer to the most recent command starting with <var>string</var>.
41 <br><dt><code>!?</code><var>string</var><code>[?]</code>
42 <dd>Refer to the most recent command containing <var>string</var>. The trailing
43 <code>?</code> may be omitted if the <var>string</var> is followed immediately by
44 a newline.
46 <br><dt><code>^</code><var>string1</var><code>^</code><var>string2</var><code>^</code>
47 <dd>Quick Substitution. Repeat the last command, replacing <var>string1</var>
48 with <var>string2</var>. Equivalent to
49 <code>!!:s/</code><var>string1</var><code>/</code><var>string2</var><code>/</code>.
51 <br><dt><code>!#</code>
52 <dd>The entire command line typed so far.
54 </dl>
56 </body></html>