
ksh(1) | ksh(1) |
read | [ |
| The shell input mechanism. One line is read and broken up into words using the charac- |
| ters in IFS as separators. In |
| continuation. The ®rst word is assigned to the ®rst name, the second word to the second |
| name, etc., with remaining words assigned to the last name. The |
| input line to be taken from the input pipe of a process spawned by the shell using &. If |
| the |
| |
| can be opened with the exec special command. The default value of n is 0. If name is |
| omitted, REPLY is used as the default name. The return code is 0, unless an |
| encountered. An |
| another process can be spawned. If the ®rst argument contains a ?, the remainder of this |
| word is used as a prompt when the shell is interactive. If the given ®le descriptor is open |
| for writing and is a terminal device, the prompt is placed on this unit. Otherwise the |
| prompt is issued on ®le descriptor 2. The return code is 0, unless an |
| tered. See also read(1). |
%% readonly [ name[ =value ] ... ]
The given names are marked
% return [ n ]
Causes a shell function to return to the invoking script with the return status speci®ed by n. If n is omitted, the return status is that of the last command executed. Only the low 8 bits of n are passed back to the caller. If return is invoked while not in a function or executing a script by the . (dot)
set [ ±aefhkmnopstuvx ±o option ] ... [ ±A name ] [ arg ... ] The following options are used for this command:
Array assignment. Unset the variable name and assign values sequentially from the list arg. If +A is used, the variable name is not unset ®rst.
All subsequent de®ned parameters are automatically exported.
If the shell is
Each command whose name is an identi®er becomes a tracked alias when ®rst encountered.
All parameter assignment arguments (not just those that precede the command name) are placed in the environment for a command.
Background jobs are run in a separate process group and a line is printed upon completion. The exit status of background jobs is reported in a completion message. This option is turned on automatically for interactive shells.
Read commands and check them for syntax errors, but do not execute them.
| The |
|
|
|
| |||||
The | ||||||||||
| be speci®ed with each | |||||||||
| tings are printed. The |
|
| |||||||
| allexport | Same as |
|
|
|
|
| |||
| bgnice | All background jobs are run at a lower priority. |
| |||||||
| errexit | Same as |
|
|
|
|
| |||
| emacs | Activates | an | editor | for | command | ||||
|
|
| entry. |
|
|
|
|
|
| |
| gmacs | Activates | a | editor | for | command | ||||
|
|
| entry. |
|
|
|
|
|
| |
| ignoreeof | The | shell | does not exit on | The | command | ||||
|
|
| exit must be used. |
|
|
|
| |||
| keyword | Same as |
|
|
|
|
| |||
| markdirs | All directory names resulting from ®le name generation | ||||||||
|
|
| have a trailing / appended. |
|
|
|
| |||
| monitor | Same as |
|
|
|
|
| |||
| noclobber | Prevents | redirection > from truncating | existing ®les. | ||||||
|
|
| Requires | > to truncate a ®le when turned on. |
| |||||
| − 14 − |
|
|
|
| Section 1−409 | ||||
k