]> git.ipfire.org Git - thirdparty/coreutils.git/commit
env: adjust diagnostics provided for shebang usage
authorPádraig Brady <P@draigBrady.com>
Wed, 27 Jun 2018 06:52:38 +0000 (23:52 -0700)
committerPádraig Brady <P@draigBrady.com>
Wed, 27 Jun 2018 09:38:59 +0000 (02:38 -0700)
commita68efd128328e14b802032a5c6c585528b6d5b8e
tree6cf5dfd8627c762c268b3a8234f233c2ebfa7ed5
parent4b7595d751872442d043f6116a453d3b43b3253d
env: adjust diagnostics provided for shebang usage

* src/env.c (main): Don't process '-' specially since
that causes an issue on the openbsd getopt implementation
where a lone '-' is now processed as an option, and anyway
it doesn't particuarly help diagnosing common shebang
usage issues.  Also don't restrict the extra diagnostics
for shebang usage to the case with 3 arguments, as
further arguments can be passed to a script.
* tests/misc/env-S.pl: Adjust accordingly.
src/env.c
tests/misc/env-S.pl