coreutils: printenv invocation
1
1 19.3 ‘printenv’: Print all or some environment variables
1 ========================================================
1
1 ‘printenv’ prints environment variable values. Synopsis:
1
1 printenv [OPTION] [VARIABLE]...
1
1 If no VARIABLEs are specified, ‘printenv’ prints the value of every
1 environment variable. Otherwise, it prints the value of each VARIABLE
1 that is set, and nothing for those that are not set.
1
11 The program accepts the following option. Also see ⇒Common
options.
1
1 ‘-0’
1 ‘--null’
1 Output a zero byte (ASCII NUL) at the end of each line, rather than
1 a newline. This option enables other programs to parse the output
1 even when that output would contain data with embedded newlines.
1
1 Exit status:
1
1 0 if all variables specified were found
1 1 if at least one specified variable was not found
1 2 if a write error occurred
1