Re: Wrong explanation of getopts

2019-09-16 Thread Chet Ramey
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

Re: Wrong explanation of getopts

2019-09-15 Thread Roland Illig
Am 15.09.2019 um 22:38 schrieb Eduardo Bustamante: > On Sun, Sep 15, 2019 at 12:58 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 "inste

Re: Wrong explanation of getopts

2019-09-15 Thread Eduardo Bustamante
On Sun, Sep 15, 2019 at 12:58 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 "instead" in "they are parsed instead" is totally wrong. $1 to $9

Wrong explanation of getopts

2019-09-15 Thread Roland Illig
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 sur