coreutils
[Top][All Lists]
Advanced

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

Re: env: add -S option (split string for shebang lines in scripts)


From: Bernhard Voelker
Subject: Re: env: add -S option (split string for shebang lines in scripts)
Date: Fri, 27 Apr 2018 08:31:54 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

On 04/26/2018 09:17 AM, Assaf Gordon wrote:
> Attached an updated patch, hopefully addressing all the issues below.

Great work, thanks!

One nit: env -v shows a confusing error diagnostic when it is
separated from the -S option on the shebang line:

  $ cat xxx
  #!src/env -v -S cat -n
  hello

  $ ./xxx
  src/env: invalid option -- ' '
  Try 'src/env --help' for more information.

or on the command line:

  $ src/env '-v -S cat -n' <<<'a'
  src/env: invalid option -- ' '
  Try 'src/env --help' for more information.

Well, env doesn't know at that point that -S is coming later ... still
the error message is really confusing.  Any idea?

Have a nice day,
Berny



reply via email to

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