|
NAMEhist - move jobs to the foregroundSYNOPSIShist [flags] [first [last]] DESCRIPTIONhist lists, edits, or re-executes, commands previously entered into the current shell environment.The command history list references commands by number. The first number in the list is selected arbitrarily. The relationship of a number to its command does not change during a login session. When the number reaches 32767 the number wraps around to 1 but maintains the ordering. When commands are edited (when the -l option is not specified), the resulting lines will be entered at the end of the history list and then re-executed by the current shell. The \f?\f command that caused the editing will not be entered into the history list. If the editor returns a non-zero exit status, this will suppress the entry into the history list and the command re-execution. Command line variable assignments and redirections affect both the f?f command and the commands that are re-executed. first and last define the range of commands. first and last can be one of the following:
If first is omitted, the previous command is used, unless -l is specified, in which case it will default to -16 and last will default to -1. If first is specified and last is omitted, then last will default to first unless -l is specified in which case it will default to -1. If no editor is specified, then the editor specified by the HISTEDIT variable will be used if set, or the FCEDIT variable will be used if set, otherwise, ed will be used. FLAGS
EXIT STATUSIf a command is re-executed, the exit status is that of the command that gets re-executed. Otherwise, it is one of the following:
SEE ALSOksh(1), sh(1), ed(1)AUTHORDavid J. Korn, et. al.COPYRIGHT2019, David J. Korn, et.al.
Visit the GSP FreeBSD Man Page Interface. |