Lines Matching full:command
50 history, fc, hist \- process command history list
76 \fBfc\fR \fB-e\fR \fB-\fR [\fIold\fR=\fInew\fR] [\fIcommand\fR]
81 \fBfc\fR \fB-s\fR [\fIold\fR = \fInew\fR] [\fIcommand\fR]
102 The command history list references commands by number. The first number in the
103 list is selected arbitrarily. The relationship of a number to its command does
106 retained command at another number (usually 1). When the number reaches the
108 wrap the numbers, starting the next command with a lower number (usually 1).
112 executed, command 32 767 is considered the command previous to 1, even though
118 by \fBsh\fR. The \fBfc\fR command that caused the editing is not entered into
120 the entry into the history list and the command reexecution. Any command-line
122 the \fBfc\fR command itself as well as the command that results, for example:
133 reinvokes the previous command, suppressing standard error for both \fBfc\fR
134 and the previous command.
156 command, \fBsource\fR(1).
161 History substitution allows you to use words from previous command lines in the
162 command line you are typing. This simplifies spelling corrections and the
163 repetition of complicated commands or arguments. Command lines are saved in the
165 The \fBhistory\fR shell variable can be set to the maximum number of command
176 allows the history list to keep track of the most recent 200 command lines. If
177 not set, the C shell saves only the most recent command.
181 the \fBhistchars\fR variable) and can occur anywhere on the command line;
187 being expanded, but before any other substitutions take place or the command
191 An event designator is a reference to a command line entry in the history list.
210 Refer to the previous command. By itself, this substitution repeats the
211 previous command.
221 Refer to command line \fIn\fR.
231 Refer to the current command line minus \fIn\fR.
241 Refer to the most recent command starting with \fIstr\fR.
251 Refer to the most recent command containing \fIstr\fR.
261 Refer to the most recent command containing \fIstr\fR and append
262 \fIadditional\fR to that referenced command.
268 \fB\fB!{\fR\fBcommand\fR\fB}\fR \fIadditional\fR\fR
272 Refer to the most recent command beginning with \fBcommand\fR and append
273 \fIadditional\fR to that referenced command.
283 Repeat the previous command line replacing the string \fIprevious_word\fR with
286 Repeat the previous command line replacing the string \fIprevious_word\fR with
295 To re-execute a specific previous command \fBand\fR make such a substitution,
296 say, re-executing command #6:
311 command, the second \fB!\fR character can be omitted from the event
313 word of the previous command, while \fB!!$\fR and \fB!$\fR both refer to the
314 last word in the previous command. Word designators include:
321 The entire command line typed so far.
330 The first input word (command).
489 Print the new command but do not execute it.
528 previous command, or to a previous history reference on the command line (if
536 \fBfc -e \(mi [\fIold\fR=\fInew\fR] [\fIcommand\fR],\fR
547 \fBfc -s [\fIold\fR=\fInew\fR] [\fIcommand\fR],\fR
554 the \fIcommand\fR is re-executed after the substitution
555 \fIold\fR\fB=\fR\fInew\fR is performed. If there is not a \fIcommand\fR
556 argument, the most recent command typed at this terminal is executed.
573 string is used to locate the most recent command starting with the given
574 string. A negative number is used as an offset to the current command number.
579 editor. When editing is complete, the edited command(s) is executed. If
581 specified, the default is the previous command for editing and \(mi16 for
583 \fB-n\fR suppresses command numbers when listing. (See \fBksh\fR(1) for more
584 about command line editing.)
592 pathname of the file that is used to store the command history.
606 .SS "Command Re-entry:"
613 command \fBfc\fR is used to list or edit a portion of this file. The portion of
615 first character or characters of the command. A single command or range of
618 \fBFCEDIT\fR is not defined then \fB/bin/ed\fR is used. The edited command(s)
620 is used to skip the editing phase and to re-execute the command. In this case a
622 modify the command before execution. For example, if \fBr\fR is aliased to
624 \fBc'\fR re-executes the most recent command which starts with the letter
629 Using the \fBfc\fR built-in command within a compound command causes the whole
630 command to disappear from the history file.
637 The command history list references commands by number. The first number in the
638 list is selected arbitrarily. The relationship of a number to its command does
645 by the current shell. The \fBhist\fR command that caused the editing is not
647 status, this suppresses the entry into the history list and the command
648 re-execution. Command line variable assignments and redirections affect both
649 the \fBhist\fR command and the commands that are re-executed.
660 A positive number representing a command number. A \fB+\fR sign can precede
670 A negative number representing a command that was executed \fInumber\fR
671 commands previously. For example, \fB-1\fR is the previous command.
680 \fIstring\fR indicates the most recently entered command that begins with
686 If \fIfirst\fR is omitted, the previous command is used, unless \fB-l\fR is
722 \fIlast\fR operands, as affected by \fB-r\fR, with each command preceded by the
723 command number.
732 Suppresses command numbers when listing with \fB-l\fR.
751 Re-executes the command without invoking an editor.
763 Specify the editor to use to edit the history command. A value of \fB-\fR for
791 Suppress the command numbers when the commands are listed.
819 Re-execute the command without invoking an editor. In this case an operand of
821 string \fIold\fR in the command to \fInew\fR before re-executing the command.
846 A positive number representing a command number. Command numbers can be
856 A negative decimal number representing the command that was executed
858 immediately previous command.
867 A string indicating the most recently entered command that begins with that
872 previous command is used.
879 If \fIlast\fR is omitted, \fIlast\fR defaults to the previous command when
887 listed or the previous single command is edited (based on the \fB-l\fR option).
896 editor all of the commands at one time, each command starting on a new line. If
897 \fIfirst\fR represents a newer command than \fIlast\fR, the commands is listed
916 value representing the oldest or newest command in the list, as appropriate.
945 When the \fB-l\fR option is used to list commands, the format of each command
950 \fB"%d\et%s\en", <\fR\fIline number\fR\fB>, <\fR\fIcommand\fR\fB>\fR
957 command is:
961 \fB"\et%s\en", <\fR\fIcommand\fR\fB>\fR
967 If the \fIcommand\fR\fIcommand\fR consists of more than one line, the lines
972 \fB"\et%s\en", <\fR\fIcontinued-command\fR\fB>\fR
1031 Determine a pathname naming a command history file. If the \fBHISTFILE\fR