On 9/6/19 5:27 PM, Theo de Raadt wrote:
Andreas Kusalananda Kähäri wrote:
On Fri, Sep 06, 2019 at 02:38:18PM -0600, Theo de Raadt wrote:
Christian Weisgerber wrote:
On 2019-09-06, Andreas Kusalananda Kähäri wrote:
read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done
Andreas Kusalananda Kähäri wrote:
> On Fri, Sep 06, 2019 at 02:38:18PM -0600, Theo de Raadt wrote:
> > Christian Weisgerber wrote:
> >
> > > On 2019-09-06, Andreas Kusalananda Kähäri wrote:
> > >
> > > >> read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done
> > > >
> > > > Th
On Fri, Sep 06, 2019 at 02:38:18PM -0600, Theo de Raadt wrote:
> Christian Weisgerber wrote:
>
> > On 2019-09-06, Andreas Kusalananda Kähäri wrote:
> >
> > >> read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done
> > >
> > > The shells in the OpenBSD base system do not support m
On Fri, Sep 6, 2019 at 2:40 PM JohnS wrote:
> Why next construction doesn't work?
>
> read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done
People have been focusing on the syntax of arguments for test (the
left bracket operation), but there's no 'next' here.
You are reading x ju
Christian Weisgerber wrote:
> On 2019-09-06, Andreas Kusalananda Kähäri wrote:
>
> >> read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done
> >
> > The shells in the OpenBSD base system do not support matching regular
> > expressions with that syntax. You may have been thinking
On 2019-09-06, Andreas Kusalananda Kähäri wrote:
>> read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done
>
> The shells in the OpenBSD base system do not support matching regular
> expressions with that syntax. You may have been thinking of bash,
Just to head off crazy rumors:
On Fri, Sep 06, 2019 at 08:55:10PM +0200, Andreas Kusalananda Kähäri wrote:
> On Fri, Sep 06, 2019 at 11:39:06PM +0500, JohnS wrote:
> > Hi, all!
> >
> > Why next construction doesn't work?
> >
> > read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done
> >
> > I tried many variant
On Fri, Sep 06, 2019 at 11:39:06PM +0500, JohnS wrote:
> Hi, all!
>
> Why next construction doesn't work?
>
> read x; while [ "$x" != [abc] ]; do echo "Not a, b or c"; break; done
>
> I tried many variants but can't make it work. Moreover I don't understand WHY
> it
> doesn't work?!
>
> Thanks
8 matches
Mail list logo