help-bash
[Top][All Lists]
Advanced

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

Handling getopt for option without optional argument value


From: lisa-asket
Subject: Handling getopt for option without optional argument value
Date: Fri, 23 Jul 2021 17:39:53 +0200 (CEST)

Because they do net do the same things as long options.  Gnu does support long 
options,

so why is there no built-in to handle everything?





From: Chet Ramey <chet.ramey@case.edu>
To: lisa-asket@perso.be;
   Alex fxmbsw7 Ratchev <fxmbsw7@gmail.com>;
   help-bash <help-bash@gnu.org>
Subject: Re: Handling getopt for option without optional argument value
Date: 23/07/2021 17:34:40 Europe/Paris

On 7/23/21 11:17 AM, lisa-asket@perso.be wrote:
> Tho approach should be to fix getopt if there are problems with it, no?

Why, when `getopts' exists and is a standard builtin?

https://pubs.opengroup.org/onlinepubs/9699919799/utilities/getopts.html#tag_20_54

-- 
``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]