[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Parsing options in the form "-C8"
From: |
irenezerafa |
Subject: |
Parsing options in the form "-C8" |
Date: |
Wed, 17 Nov 2021 15:13:54 +0000 |
‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐
On Wednesday, November 17th, 2021 at 2:52 PM, Greg Wooledge <greg@wooledge.org>
wrote:
> On Wed, Nov 17, 2021 at 09:37:09AM -0500, Chet Ramey wrote:
>
> > On 11/16/21 6:29 PM, irenezerafa wrote:
> >
> > > ("-C"*)
> > > usg="${1#*C}"
> > You might want to use `-C' as the pattern instead of` *C', which would do
> > the wrong thing if the rest of the string were to contain a `C'.
> That's only an issue if they used ## instead of # there. On the other
> hand, using *C to match a known prefix of -C seems inefficient.
That's a fair point. I shall modify it.
- Re: Parsing options in the form "-C8", (continued)
- Re: Parsing options in the form "-C8", Chet Ramey, 2021/11/16
- Parsing options in the form "-C8", irenezerafa, 2021/11/16
- Re: Parsing options in the form "-C8", Chet Ramey, 2021/11/16
- Parsing options in the form "-C8", irenezerafa, 2021/11/16
- Re: Parsing options in the form "-C8", Chris Elvidge, 2021/11/16
- Parsing options in the form "-C8", irenezerafa, 2021/11/16
- Re: Parsing options in the form "-C8", Chet Ramey, 2021/11/16
- Parsing options in the form "-C8", irenezerafa, 2021/11/16
- Re: Parsing options in the form "-C8", Chet Ramey, 2021/11/17
- Re: Parsing options in the form "-C8", Greg Wooledge, 2021/11/17
- Parsing options in the form "-C8",
irenezerafa <=
- Re: Parsing options in the form "-C8", Chet Ramey, 2021/11/16
- Re: Parsing options in the form "-C8", Chet Ramey, 2021/11/16
- Re: Parsing options in the form "-C8", Chris Elvidge, 2021/11/16
- Re: Parsing options in the form "-C8", Lawrence Velázquez, 2021/11/16
- Re: Parsing options in the form "-C8", Chet Ramey, 2021/11/16
Re: Parsing options in the form "-C8", Dennis Williamson, 2021/11/16