
k
ksh(1) | ksh(1) |
[count]rc | Replace the current character with c. |
[count]x | Delete current character. |
[count]X | Delete preceding character. |
[count]. | Repeat the previous text modi®cation command. |
[count]Ä | Invert the case of the current character and advance the cursor. |
[count]_ | Causes the count word of the previous command to be appended at the current cur- |
| sor location and places the editor in input mode at the end of the appended text. |
| The last word is used if count is omitted. |
*Appends an * to the current word and attempts ®le name generation. If no match is found, the bell rings. If a match is found, the word is replaced by the matching
string and the command places the editor in input mode.
ESC
\Attempt ®le name completion on the current word. Replaces the current word with the longest common pre®x of all ®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.
Other Edit Commands
[count]ymotion
y[count]motion Yank current character through character that motion would move the cursor to and puts them into the delete buffer. The text and cursor are unchanged.
YYanks from current position to end of line. Equivalent to y$.
uUndo the last text modifying command.
UUndo all the text modifying commands performed on the line.
[count]v | Returns the command fc |
| input buffer. If count is omitted, the current line is used. |
^L | Line feed and print current line. Has effect only in control mode. |
^J | (New line) Execute the current line, regardless of mode. |
^M | (Return) Execute the current line, regardless of mode. |
#Equivalent to I# followed by Return. Sends the line after inserting a # in front of the line and after each
in the history list without executing it.
=List the ®lenames that match the current word if an asterisk were appended to it.
@letter | The 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 for processing. |
EXTERNAL INFLUENCES
Environment Variables
LC_COLLATE determines the collating sequence used in evaluating pattern matching notation for ®le name generation.
LC_CTYPE determines the classi®cation of characters as letters, and the characters matched by character class expressions in pattern matching notation.
If LC_COLLATE or LC_CTYPE is not speci®ed in the environment or is set to the empty string, the value of LANG is used as a default for each unspeci®ed or empty variable. If LANG is not speci®ed or is set to the empty string, a default of "C" (see lang(5)) is used instead of LANG. If any internationalization variable contains an invalid setting, ksh behaves as if all internationalization variables are set to "C". See environ(5).
International Code Set Support
RETURN VALUE
Errors detected by the shell, such as syntax errors, cause the shell to return a
WARNINGS
File descriptors 10 and 54 through 60 are used internally by the Korn Shell. Applications using these and forking a subshell should not depend upon them surviving in the subshell or its descendants.
Section 1−416 | − 21 − |