bug-bash
[Top][All Lists]
Advanced

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

Re: Wrong explanation of getopts


From: Chet Ramey
Subject: Re: Wrong explanation of getopts
Date: Mon, 16 Sep 2019 11:23:20 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:60.0) Gecko/20100101 Thunderbird/60.9.0

On 9/15/19 3:57 PM, Roland Illig wrote:
> The help text of getopts says:
> 
>>   Getopts normally parses the positional parameters ($0 - $9), but if
>>   more arguments are given, they are parsed instead.
> 
> The positional parameter $0 (is it even called that way) is not parsed
> by getopts. Its only use might be in error messages, but I'm not sure
> about it.

You're right; getopts doesn't use $0 at this time.

-- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    chet@case.edu    http://tiswww.cwru.edu/~chet/



reply via email to

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