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.
# Append the pattern for a short unknown option.
returns_ $rcexp $prg -/ >/dev/null 2> err || fail=1
- grep -F "'/'" err || framework_failure_
+ grep " '*/'*" err || framework_failure_
+ # The following only handles the common case that has single quotes,
+ # as it simplifies to identify missing options only on common systems.
sed -n "1s/'\/'/'OPT'/p" < err >> pat || framework_failure_
# Get output for --help.