[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-wget] /usr/bin/env: invalid option -- 'S'

From: Jeffrey Walton
Subject: Re: [Bug-wget] /usr/bin/env: invalid option -- 'S'
Date: Thu, 30 May 2019 05:57:05 -0400

On Thu, May 30, 2019 at 5:40 AM Tim Rühsen <address@hidden> wrote:
> The shebang line here reads
> #!/usr/bin/env -S perl -I .
> /usr/bin/env is part of coreutils ans should know '-S', even on Debian
> stretch.
> $ /usr/bin/env --version
> env (GNU coreutils) 8.30
> @Jeff, what does '/usr/bin/env --help' show ? Or 'man env' ?

$ /usr/bin/env --version
env (GNU coreutils) 8.26
Copyright (C) 2016 Free Software Foundation, Inc.

$ /usr/bin/env --help
Usage: /usr/bin/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 NUL, not 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/>
Full documentation at: <http://www.gnu.org/software/coreutils/env>
or available locally via: info '(coreutils) env invocation'

reply via email to

[Prev in Thread] Current Thread [Next in Thread]