If the First parameter is not also specified, the -s flag reexecutes the previous command. Parameters First or Last Selects the commands to list or edit. Number Represents a specific command number. Command numbers can be displayed with the -l flag. For example, -1 indicates the immediately previous command.
String Indicates the most recently entered command that begins with the specified string.
When using the -s flag, omission of the First parameter causes the previous command to be used. Editing multiple commands is accomplished by presenting to the editor all the commands at one time, each command starting on a new line. If the First parameter represents a newer command than the Last parameter, the commands are listed or edited in reverse sequence. This is equivalent to using the -r flag. When a range of commands is used, it is not an error to specify First or Last values that are not in the history list.