]> git.ipfire.org Git - thirdparty/coreutils.git/commit
tests: accept getopt errors without single-quotes
authorAssaf Gordon <assafgordon@gmail.com>
Tue, 26 Jun 2018 11:04:45 +0000 (05:04 -0600)
committerPádraig Brady <P@draigBrady.com>
Wed, 27 Jun 2018 09:38:59 +0000 (02:38 -0700)
commit4b7595d751872442d043f6116a453d3b43b3253d
treeef42d2f711606609367390f6a16ea646b5947c95
parentd542945c3a8198096fc018f56c2ff7338e1405c7
tests: accept getopt errors without single-quotes

On OpenBSD 6.2, invalid single options produce error messages
without single quotes:

    $ ./src/chroot -/
    chroot: unknown option -- /

As opposed to other systems:

    ./src/chroot: invalid option -- '/'

Modify the grep search to accept this.

* tests/misc/usage_vs_getopt.sh (checkprg): Change the grep pattern
to accomodate no-single-quotes cases.
tests/misc/usage_vs_getopt.sh