
k
ksh(1) | ksh(1) |
number or string. A given string is used to locate the most recent command. A negative number is used to offset the current command number. The
fg [ job ... ] Brings each job into the foreground in the order speci®ed. If no job is speci®ed, the current job is brought into the foreground. See Jobs for a description of the format of job.
getopts optstring name [ arg ...]
Checks arg for legal options. If arg is omitted, the positional parameters are used. An option argument begins with a + or a
getopts places the next option letter it ®nds inside variable name each time it is invoked with a + preceding it when arg begins with a +. The index of the next arg is stored in OPTIND. The option argument, if any, gets stored in OPTARG.
|
| A leading : in optstring causes getopts to store | the letter of an invalid option in | |
|
| OPTARG, and to set name to ? for an unknown option and to : when a required option is | ||
|
| missing. Otherwise, | getopts prints an error message. The exit status is | |
|
| there are no more options. See also getopts(1). |
| |
jobs | [ |
|
| |
|
| Lists information about each given job; or all active jobs if job is omitted. The | ||
|
| lists process ids in addition to the normal information. The | ||
|
| that have stopped or exited since last noti®ed. The | ||
|
| group to be listed. See Jobs for a description of the format of job. | ||
kill | [ | process ... |
|
|
|
| Sends either the TERM (terminate) signal or the speci®ed signal to the speci®ed jobs or | ||
|
| processes. Signals are given either by number or name (as given in signal(5), stripped of | ||
|
| the pre®x SIG). The signal names are listed by kill | ||
|
| ing kill does not affect the current job. If the signal being sent is TERM (terminate) or | ||
|
| HUP (hangup), the job or process is sent a CONT (continue) signal when stopped. The pro- | ||
|
| cess argument can be either a process ID or job. If the ®rst argument to kill is a nega- | ||
|
| tive integer, it is interpreted as a sig argument and not as a process group. See also kill(1). | ||
let arg ... | Each arg is a separate arithmetic expression to be evaluated. See Arithmetic Evaluation | |||
|
| above, for a description of arithmetic expression evaluation. The exit status is 0 if the value | ||
|
| of the last expression is |
| |
% newgrp [ arg ... ] |
|
| ||
|
| Equivalent to exec | newgrp arg .... |
|
print[ |
|
| ||
|
| The shell output mechanism. With no options or with option - or - - the arguments are | ||
|
| printed on standard output as described by echo(1). | Raw mode, | |
|
| escape conventions of echo. The | ||
|
| other than | ||
|
| cess spawned with & instead of standard output. The | ||
|
| be written onto the history ®le instead of standard output. The | ||
|
| specify a | ||
|
| default is 1. If the option | ||
pwd [ | With no arguments prints the current working directory (equivalent to print | |||
|
| |||
|
| $PWD). The | ||
|
| |||
|
| special cd command, cd(1), ln(1)), and pwd(1). |
| |
Section 1−408 |
| − 13 − | ||