aboutsummaryrefslogtreecommitdiff
path: root/pkg/language/doc/envget.hlp
blob: ffed68e0c9fc3d23d6c06c5f7527e41f108724a8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
.help envget Feb86 language
.ih
NAME
envget -- get the string value of an environment variable
.ih
USAGE
envget varname
.ih 
PARAMETERS
.ls varname
The environment variable whose value is to be returned.
.le
.ih
DESCRIPTION
\fIEnvget\fR returns the string value of the named environment variable.
The user is prompted for the value if the variable has not yet been defined.
.ih
EXAMPLES
1. Construct a filename using the value of the environment variable
"editor", and page the file thus named.

	cl> page ("dev$" // envget ("editor") // ".ed")

2. Compute and print the center line on the terminal screen.

	cl> = ((int (envget ("ttynlines")) + 1) / 2)
.ih
SEE ALSO
set, show
.endhelp