blob: 87d1da6c73367e1f98b7b97f2a8e4963c4c54678 (
plain)
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
31
32
33
34
|
'\" t
.\" Copyright (c) 2025 Bruce Hill
.\" All rights reserved.
.\"
.TH getenv 3 2025-04-19T14:48:15.709886 "Tomo man-pages"
.SH NAME
getenv \- Gets an environment variable.
.SH LIBRARY
Tomo Standard Library
.SH SYNOPSIS
.nf
.BI getenv\ :\ func(name:\ Text\ ->\ Text?)
.fi
.SH DESCRIPTION
Gets an environment variable.
.TS
allbox;
lb lb lbx lb
l l l l.
Name Type Description Default
name Text The name of the environment variable to get. -
.TE
.SH RETURN
If set, the environment variable's value, otherwise, `none`.
.SH EXAMPLES
.EX
>> getenv("TERM")
= "xterm-256color"?
.EE
|