~sircmpwn/ctools

ref: ccc1d877f5242b0efece4ef4ccab83f37e4bb222 ctools/doc/env.1.scd -rw-r--r-- 1.2 KiB
ccc1d877 — Christopher Vittal Implement env 1 year, 5 months ago
                                                                                
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
35
36
37
38
39
40
41
42
43
44
env(1) "ctools"

# NAME

env - set the environment to run a program

# SYNOPSIS

*env* [-i] [_name_=_value_]... [_utility_ [_argument_...]]

# DESCRIPTION

*env* will update the environment based on its arguments, then invoke
_utility_, passing _arguments_ to it.

If _utility_ is not provided, the resulting environment is written to standard
output with one _name_=_value_ pair per line.

# OPTIONS

*-i*
	Clear the inherited environment before setting new variables and invoking
	_utility_.

# UNSPECIFIED BEHAVIOR

The POSIX standard does not unambiguously specify the behavior of this command
under certain conditions. Under such conditions, the ctools implementation of
*env* behaves as follows:

- If the first argument is *'-'*, *env* will exit with an error.

# NOTES

The ctools implementation of *env* uses _execvp_ to execute _utility_. Should
PATH be unset, _execvp_ may search some default path set by the system and/or
C library.

# DISCLAIMER

This command is part of ctools and is compatible with POSIX-1.2017, and may
optionally support XSI extensions. This man page is not intended to be a
complete reference, and where it disagrees with the specification, the
specification takes precedence.