
k
ksh(1) | ksh(1) |
ÃP | Fetch previous command. Each time ÃP is entered, the next previous command in the his- |
| tory list is accessed. |
ÃN | Fetch next command. Each time ÃN is entered the next command in the history list is |
| accessed. |
Fetch the least recent (oldest) history line. | |
Fetch the most recent (youngest) history line. | |
ÃRstring | Reverse search history for a previous command line containing string. If a parameter of |
| zero is given, the search is forward. string is terminated by a Return or |
| string is preceded by a Ã, the matched line must begin with string. If string is omitted, the |
| next command line containing the most recent string is accessed. In this case a parameter |
| of zero reverses the direction of the search. |
ÃO | Operate - Execute the current line and fetch from the history ®le the next line relative to |
| current line. |
(Escape) De®ne numeric parameter, the digits are taken as a parameter to the next com- | |
| mand. The commands that accept a parameter are ÃF, ÃB, erase, ÃC, ÃD, ÃK, ÃR, ÃP, ÃN, |
| ^], |
Softkey. User's alias list is searched for an alias by the name _letter and if an alias of this | |
| name is de®ned, its value is inserted on the input queue. This letter must not be one of the |
| above |
The last word of the previous command is inserted on the line. If preceded by a numeric | |
| parameter, the value of this parameter determines which word to insert rather than the |
| last word. |
Same as | |
Attempt | |
| ®lenames matching the current word with an asterisk appended. If the match is unique, a |
| / is appended if the ®le is a directory and a space is appended if the ®le is not a directory. |
List ®les matching current word pattern as if an asterisk were appended. | |
ÃU | Multiply parameter of next command by 4. |
\Escape next character. Editing characters, the user's erase, kill and interrupt (normally ^?) characters can be entered in a command line or in a search string if preceded by a \. The \ removes the next character's editing features (if any).
ÃV | Display version of the shell. |
Insert a # at the beginning of the line and execute it. This causes a comment to be | |
| inserted in the history ®le. |
Vi Editing Mode
There are two typing modes. Entering a command puts you into input mode. To edit, the user enters control mode by pressing ESC and moves the cursor to the point needing correction, then inserts or deletes characters or words. Most control commands accept an optional repeat count prior to the command.
In vi mode on most systems, canonical processing is initially enabled and the command is echoed again if the speed is 1200 baud or greater and contains any control characters, or if less than one second has elapsed since the prompt was printed. The ESC character terminates canonical processing for the remainder of the command and the user can then modify the command line. This scheme has the advantages of canonical processing with the
Setting the viraw option always disables canonical processing on the terminal. This mode is implicit for systems that do not support two alternate
Input Edit Commands
By default the editor is in input mode.
erase | Delete previous character. (erase is a |
| command, usually ÃH or #.) |
ÃW | Delete the previous blank separated word. |
ÃD | Terminate the shell. |
ÃV | Escape next character. Editing characters, erase or kill characters can be entered in a com- |
| mand line or in a search string if preceded by a ÃV. ÃV removes the next character's edit- |
| ing features (if any). |
\Escape the next erase or kill character.
Section 1−414 | − 19 − |