bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: getopts: OPTARG should be unset after last option


From: Len Lattanzi
Subject: Re: getopts: OPTARG should be unset after last option
Date: Wed, 23 Jun 2004 12:10:17 -0700


On Jun 23, 2004, at 11:10 AM, Chet Ramey wrote:

As POSIX specifies.  Why do you think it should not be?

Chet

From http://www.opengroup.org/onlinepubs/009695399/utilities/getopts.html When the option requires an option-argument, the getopts utility shall place it in the shell variable OPTARG . If *no option was found*, or if the option that was found does not have an option-argument, OPTARG shall be *unset*.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]