Execute the utility with only those environment variables specified by name = value options. The environment inherited by env is ignored completely.
-P altpath
Search the set of directories as specified by altpath to locate the specified utility program, instead of using the value of the PATH environment variable.
-S string
Split apart the given string into multiple strings, and process each of the resulting strings as separate arguments to the env utility. The -S option recognizes some special character escape sequences and also supports environment-variable substitution, as described below.
-v
Print verbose information for each step of processing done by the env utility. Additional information will be printed if -v is specified multiple times.
The above options are only recognized when they are specified before any name = value options.
If no utility is specified, env prints out the names and values of the variables in the environment, with one name/value pair per line.
Ignore the remaining characters in the string. This must not appear inside a double-quoted string.
\f
Replace with a <form-feed> character.
\n
Replace with a <new-line> character.
\r
Replace with a <carriage return> character.
\t
Replace with a <tab> character.
\v
Replace with a <vertical tab> character.
\#
Replace with a # character. This would be useful when you need a # as the first character in one of the arguments created by splitting apart the given string.
\$
Replace with a $ character.
\_
If this is found inside of a double-quoted string, then replace it with a single blank. If this is found outside of a quoted string, then treat this as the separator character between new arguments in the original string.
\"
Replace with a <double quote> character.
\'
Replace with a <single quote> character.
\\
Replace with a backslash character.
The sequences for <single-quote> and backslash are the only sequences which are recognized inside of a single-quoted string. The other sequences have no special meaning inside a single-quoted string. All escape sequences are recognized inside of a double-quoted string. It is an error if a single \ character is followed by a character other than the ones listed above.
The processing of -S also supports substitution of values from environment variables. To do this, the name of the environment variable must be inside of ${}, such as: ${SOMEVAR}. The common shell syntax of $SOMEVAR is not supported. All values substituted will be the values of the environment variables as they were when the env utility was originally invoked. Those values will not be checked for any of the escape sequences as described above. And any settings of name = value will not effect the values used for substitution in -S processing.
Also, -S processing can not reference the value of the special parameters which are defined by most shells. For instance, -S can not recognize special parameters such as: $*, $@, $#, $? or $$ if they appear inside the given string.