1! $eterna: !,v 1.8 2018/06/10 08:17:36 mrg Exp $ 2! 3! Copyright (c) 1990-2018 Michael Sandrof, Troy Rollo, Matthew Green, 4! and other ircII contributors. 5! 6! All rights reserved. See the HELP IRCII COPYRIGHT file for more 7! information. 8! 9Usage: ![<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. 33 34 Lastly, ! may be used in command aliases as well. When it is 35 embedded in an alias it simply executes the matching history entry 36 without first putting it in the input line for re-editing. 37 38See Also: 39 HISTORY 40