Daniel Jacobowitz writes: > The most correct fix is to make opt an int.
Indeed. My patch makes this necessary correction, but I admittedly hadn't delved into the headers once I got to the getopt() man page. The man page states nothing about EOF, just that -1 was the terminating return value. I corrected the type of opt en-passant, figuring that was also necessary, not realizing that EOF was effectively correct all along. Thanks for the heads-up. -- John