c

csh(1)

csh(1)

the output. Useful in programs that use the shell to perform ®le name expansion on a list of words.

goto word

The speci®ed word is ®le name and command expanded to yield a string of the form label. The shell rewinds its input as much as possible and searches for a line of the form label: possibly preceded by blanks or tabs. Execution continues after the speci®ed line.

hashstat

Print a statistics line indicating how effective the internal hash table has been at locating commands (and avoiding execs). An exec is attempted for each component of the path where the hash function indicates a possible hit, and in each component that does not begin with a /.

history [-h][-r] [ n ]

Displays the history event list. If n is given, only the n most recent events are printed. The -roption reverses the order of printout to be most recent ®rst rather than oldest ®rst. The -hoption prints the history list without leading numbers for producing ®les suitable for the source command.

if (expression) command

If expression evaluates true, the single command with arguments is executed. Variable substitution on command happens early, at the same time it does for the rest of the if com- mand. command must be a simple command; not a pipeline, a command list, a parenthesized command list, or an aliased command. Input/output redirection occurs even if expression is false, meaning that command is not executed (this is a bug).

if (expression1) then

. . .

else if (expression2) then

. . .

else

. . .

endif If expression1 is true, all commands down to the ®rst else are executed; otherwise if expression2 is true, all commands from the ®rst else down to the second else are exe- cuted, etc. Any number of else-ifpairs are possible, but only one endif is needed. The else part is likewise optional. (The words else and endif must appear at the beginning of input lines. The if must appear alone on its input line or after an else.)

jobs [-l]

Lists active jobs. The -loption lists process IDs in addition to the usual information.

kill % job

kill - sig % job ...

kill pid

kill - sig pid...

kill -l

Sends either the TERM (terminate) signal or the speci®ed signal to the speci®ed jobs or processes. Signals are either given by number or by names (as given in /usr/include/signal.h, stripped of the SIG pre®x (see signal(2)). The signal names are listed by kill -l. There is no default, so kill used alone does not send a signal to the current job. If the signal being sent is TERM (terminate) or HUP (hangup), the job or process is sent a CONT (continue) signal as well. See also kill(1).

limit[-h][resource ][ maximum_use ]

Limits the usage by the current process and each process it creates not to (individually) exceed maximum_use on the speci®ed resource. If maximum_use is not speci®ed, then the current limit is displayed; if resource is not speci®ed, then all limitations are given.

If the -h¯ag is speci®ed, the hard limits are used instead of the current limits. The hard limits impose a ceiling on the values of the current limits. Only the superuser can raise the hard limits, but a user can lower or raise the current limits within the legal range.

Controllable resources currently include:

addresspace Maximum address space in bytes for a process

Section 1132

− 4 −

HP-UX Release 11i: December 2000