NAME
renv
—
normalize environment
variables
SYNOPSIS
renv |
file ... [-q ] |
renv |
name="value" [file] |
DESCRIPTION
Filter environment variables in a format suitable for sh(1). Only lines defining variable names using the characters [_a-zA-Z0-9] with a value in double-quotes are emitted. Values may also be empty.
A="one"
B="two"
D=""
If the first argument is in the format
‘name=value
’
renv
will store and environment for reference in
subsequent labels. By default entries are appended to
$SD/local.env.
Optional arguments are as follows:
-q
- Validate only, do not print lines.
LITERALS
Escape sequences starting with ‘\’, or subshells using ‘$(...)’ are not permitted.
‘$$
’ expands to a single
dollar sign.
EXAMPLES
Print environment variables in a normalized format
$ renv final.env
Save the status code of the last command
$ renv
LAST_EXITSTATUS="$?"
SEE ALSO
CAVEATS
Tabs and multiple spaces are converted to into a single space. There is no provision for embedding literal double-quotes.
renv
must be found in the current working
directory or in the path defined by SD
.