David Terrell <dbt@meat.net> writes:
> OpenBSD's getopt(3):
> The getopt() function was once specified to return EOF instead of -1.
> This was changed by IEEE Std1003.2-1992 (``POSIX.2'') to decouple
> getopt() from <stdio.h>.
Ah, nothing like historical perspective to make it all clear. Thanks.
Looks like -1 it shall be.
regards, tom lane