ucl/_docs/mod/os.md

18 lines
329 B
Markdown
Raw Normal View History

2025-01-18 23:11:55 +00:00
# OS Module
Functions for accessing the operating system.
### env
```
os:env NAME [DEFAULT]
```
Returns the value of the environment variable NAME. If no environment with NAME
is defined, then DEFAULT will be returned, if specified. Otherwise, nil will be
returned.
```
echo "User's home directory is: " (os:env "HOME")
```