Debian Codegraph @

help/!

raw
1 ! $Id: !,v 1.3 2002-02-19 19:43:28 f Exp $
2 !
3 ! Copyright (c) 1990-2001 Michael Sandrof, Troy Rollo, Matthew Green,
4 ! and other ircII contributors.
5 !
6 ! All rights reserved. See the HELP SCROLLZ COPYRIGHT file for more
7 ! information.
8 !
9 Usage: ![<history number>|<history match>]
10 The ! command is used to recall previous commands in your command
11 history for re-execution. The ! command is unique in that when it
12 is used, it leaves the matching history entry in the input line for
13 re-editing. You can specify a history entry either by its number
14 in the history list, or by a match with a given wildcard expression.
15 For example:
16 !10
17 will put entry 10 in the history list into the input line.
18 The following:
19 !/MSG
20 will search the history list for a line beginning with /MSG and
21 put it in the input line (an * is implied at the end of /MSG). When
22 using ! command with a wildcard expression, subsequent uses of
23 the ! command continue their search in the history list from where
24 they left off. This is reset to the end of the list when a command
25 is executed that adds an entry to the history list. Also, if a
26 wildcard expression is used once, subseqent uses of ! with no
27 expression will use the previous wild card expression. For example,
28 the following:
29 !/MSG
30 !
31 The first call returns the first match of /MSG in the history list,
32 and the second returns the next match, and so on. This is useful
33 in the following key binding:
34 BIND ^R PARSE_COMMAND /!$"Search: "
35 With this, you can hit ^R and you will be prompted for a search
36 string in the history list. If you want to then repeat the search
37 you simply have to hit ^R and hit return, since it will use
38 the previous search by default.
39
40 Lastly, ! may be used in command aliases as well. When it is
41 embedded in an alias it simply executes the matching history entry
42 without first putting it in the input line for re-editing.
43
44 See Also:
45 HISTORY