not posix.2 compliant. They use "%s: invalid option -- '%c'\n" instead of "%s: illegal option -- %c\n", so adjust the expr. (Reported by David Taylor <dtaylor@emc.com>.)