help-bash
[Top][All Lists]
Advanced

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

Re: Parsing options in the form "-C8"


From: Chet Ramey
Subject: Re: Parsing options in the form "-C8"
Date: Tue, 16 Nov 2021 15:44:52 -0500
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.3.0

On 11/16/21 3:03 PM, irenezerafa wrote:

>> OK, this is a good example. I'm going to take one shot here at an
>> explanation of why you don't get the help you feel you should. Then I'm
>> out.
> 
>> First, adding requirements as people give you solutions, thereby changing
>> the problem space, doesn't encourage people to help you. Why should they
>> solve the problem as you've described it, only to have you move the
>> goalposts? Fully describe the problem and all of its requirements, up
>> front.
> 
> Have not move the goalpost, the question is still about parsing "-C8"
> and store the value.  Was answering your question why I am not going with
> the getopts or getopt route.

The point is that you did not fully enumerate the requirements up front.

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