[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
- env: add -S option (split string for shebang lines in scripts), Assaf Gordon, 2018/04/22
- Re: env: add -S option (split string for shebang lines in scripts), Pádraig Brady, 2018/04/23
- Re: env: add -S option (split string for shebang lines in scripts), Assaf Gordon, 2018/04/24
- Re: env: add -S option (split string for shebang lines in scripts), Assaf Gordon, 2018/04/26
- Re: env: add -S option (split string for shebang lines in scripts), Pádraig Brady, 2018/04/27
- Re: env: add -S option (split string for shebang lines in scripts),
Bernhard Voelker <=
- Re: env: add -S option (split string for shebang lines in scripts), Eric Blake, 2018/04/27
- Re: env: add -S option (split string for shebang lines in scripts), Eric Blake, 2018/04/27
- Re: env: add -S option (split string for shebang lines in scripts), Eric Blake, 2018/04/27
- Re: env: add -S option (split string for shebang lines in scripts), Eric Blake, 2018/04/27
- Re: env: add -S option (split string for shebang lines in scripts), Assaf Gordon, 2018/04/27