1let(1)                           User Commands                          let(1)
2
3
4

NAME

6       let  -  shell  built-in  function  to  evaluate  one or more arithmetic
7       expressions
8

SYNOPSIS

10   ksh
11       let arg...
12
13
14   ksh93
15       let [expr...]
16
17

DESCRIPTION

19   ksh
20       Each arg is a separate arithmetic expression to be evaluated.
21
22   ksh93
23       let evaluates each expr in the current shell environment as  an  arith‐
24       metic  expression  using ANSI C syntax. Variables names are shell vari‐
25       ables and they are recursively evaluated as arithmetic  expressions  to
26       get  numerical values. let has been made obsolete by the ((...)) syntax
27       of ksh93(1) which does not require quoting of  the  operators  to  pass
28       them as command arguments.
29

EXIT STATUS

31   ksh
32       ksh returns the following exit values:
33
34       0    The value of the last expression is non-zero.
35
36
37       1    The value of the last expression is zero.
38
39
40   ksh93
41       ksh93 returns the following exit values:
42
43       0     The last expr evaluates to a non-zero value.
44
45
46       >0    The last expr evaluates to 0 or an error occurred.
47
48

ATTRIBUTES

50       See attributes(5) for descriptions of the following attributes:
51
52
53
54
55       ┌─────────────────────────────┬─────────────────────────────┐
56       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
57       ├─────────────────────────────┼─────────────────────────────┤
58       │Availability                 │SUNWcsu                      │
59       └─────────────────────────────┴─────────────────────────────┘
60

SEE ALSO

62       ksh(1), ksh93(1), set(1), typeset(1), attributes(5)
63
64
65
66SunOS 5.11                        2 Nov 2007                            let(1)
Impressum