
672
|
Chapter 6: The Bash Shell and Korn Shell
This is the Title of the Book, eMatter Edition
Copyright © 2006 O’Reilly & Associates, Inc. All rights reserved.
let
let expressions
or
((expressions))
Perform arithmetic as specified by one or more expressions. expres-
sions consist of numbers, operators, and shell variables (which
don’t need a preceding $). Expressions must be quoted if they
Name Number Description
HUP 1 Hangup
INT 2 Interrupt (usually invoked by user through Ctrl-C)
QUIT 3 Quit
ILL 4 Illegal instruction
TRAP 5 Trace trap
ABRT 6 Abort
IOT 6 IOT trap
BUS 7 Bus error (a type of illegal address access)
FPE 8 Floating-point exception (example: division by 0)
KILL 9 Kill, unblockable (often used with INT fails to terminate
process)
USR1 10 User-defined signal 1
SEGV 11 Segmentation violation (a type of illegal address access)
USR2 12 User-defined signal 2
PIPE 13 Broken pipe (generated when process on one side of pipe is
aborted)
ALRM 14 Alarm clock (used for delivering timed alerts from a
program)
TERM 15 Termination
STKFLT 16 Stack fault (a type of illegal address access)
CLD or CHLD 17 Child status has changed
CONT 18 Continue (issued after STOP or TSTP)
STOP 19 Stop, unblockable
TSTP 20 Stop (issued at terminal, usually through Ctrl-Z)
TTIN 21 Attempt to read from terminal while in background
TTOU 22 Unsuccessful attempt to write to terminal while in back-
ground
URG 23 Urgent condition on socket
XCPU ...