[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: getopt returns '?' in stead of ':' on missing argument
From: |
Ulrich Drepper |
Subject: |
Re: getopt returns '?' in stead of ':' on missing argument |
Date: |
16 Dec 2000 00:27:53 -0800 |
User-agent: |
Gnus/5.0807 (Gnus v5.8.7) XEmacs/21.1 (Capitol Reef) |
Rasmus Storjohann <address@hidden> writes:
> getopt returns '?' on all types of errors except if an option that is
> supposed to take an argument is not given an argument. In this case ':' is
> supposed to be returned. When I check this, getopt returns '?' also in
> this case.
No, read the standard. The colon is only returned if the first
character of the optstring argument is a colon.
--
---------------. ,-. 1325 Chesapeake Terrace
Ulrich Drepper \ ,-------------------' \ Sunnyvale, CA 94089 USA
Red Hat `--' drepper at redhat.com `------------------------