help-bash
[Top][All Lists]
Advanced

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

Re: Handling getopt for option without optional argument value


From: Chet Ramey
Subject: Re: Handling getopt for option without optional argument value
Date: Sat, 24 Jul 2021 15:04:45 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.9.1

On 7/23/21 3:53 PM, lisa-asket@perso.be wrote:


Chet rejected the idea of a different function call that might not be as great
as getopts in relation to all unix-like systems, but is able to accept 
long-options.

It's certainly less desirable, since it doesn't address any of the existing
questions. But let's play along: what would such a builtin take as its
arguments, and how would you encode the various flags and optional behavior
in those arguments?

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