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: Dennis Williamson
Subject: Re: Parsing options in the form "-C8"
Date: Tue, 16 Nov 2021 14:47:31 -0600

On Tue, Nov 16, 2021, 2:45 PM Chet Ramey <chet.ramey@case.edu> wrote:

> On 11/16/21 3:15 PM, Dennis Williamson wrote:
> > On Tue, Nov 16, 2021, 1:28 PM irenezerafa via <help-bash@gnu.org> wrote:
> >
> >> I want to parse options in the following way "-C8", with the option
> being
> >> -C and the value being `8`. What can
> >> I do to implement the functionality?
> >
> >
> > Bash does not have the features you're looking for.
>
> `getopts' can parse options specified like this.
>
> --
> ``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/


I meant the totality of the feature requirements expressed over time.

>
>


reply via email to

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