env with -S parameter fails on Amazon Linux 2 (-S is a macOS parameter only)
lanzafame opened this issue · 0 comments
lanzafame commented
This line returns the following error:
/usr/bin/env: invalid option -- 'S'
Try '/usr/bin/env --help' for more information.
The help message for env
shows that -S
is not an option at all.
~> env --help
Usage: env [OPTION]... [-] [NAME=VALUE]... [COMMAND [ARG]...]
Set each NAME to VALUE in the environment and run COMMAND.
Mandatory arguments to long options are mandatory for short options too.
-i, --ignore-environment start with an empty environment
-0, --null end each output line with 0 byte rather than newline
-u, --unset=NAME remove variable from the environment
--help display this help and exit
--version output version information and exit
A mere - implies -i. If no COMMAND, print the resulting environment.
GNU coreutils online help: <http://www.gnu.org/software/coreutils/>
For complete documentation, run: info coreutils 'env invocation'