Re: select syntax violates the POLA

2021-04-02 Thread Ilkka Virta
On Thu, Apr 1, 2021 at 7:59 PM Robert Elz wrote: > Alternatively > d=( $( ls -d /usr/src/pkg/*/$1 ) ) > or just > d=( $( printf %s\\n /usr/src/pkg/*/$1 ) ) > > Just to be sure.Personally I'd do > > set -- /usr/src/pkg/*/$1 > Just the glob is fine in the array

Re: select syntax violates the POLA

2021-04-02 Thread Ilkka Virta
On Fri, Apr 2, 2021 at 2:04 AM Robert Elz wrote: > chet.ra...@case.edu said: > | Yes, you need a list terminator so that `done' is recognized as a > reserved > | word here. `;' is sufficient. Select doesn't allow the `done' unless > it's > | in a command position. > > isn't really all that

Re: select syntax violates the POLA

2021-04-02 Thread Robert Elz
Date:Fri, 02 Apr 2021 09:02:40 +0200 From:Andreas Schwab Message-ID: <87o8exp3sf@linux-m68k.org> | The two case are not really different, they are covered by the same | rule: Yes, I knew that ... but they are different, as in the "else {" case the '{' is in

Re: select syntax violates the POLA

2021-04-02 Thread Robert Elz
Date:Fri, 2 Apr 2021 23:06:40 +0800 From:konsolebox Message-ID: | > The right question would be why '} else' works. | | This inconsistency should be fixed and prevent people from | using it wrong. `}; else` should work Yes. | but not `} else` No, that

Re: select syntax violates the POLA

2021-04-02 Thread konsolebox
On Fri, Apr 2, 2021 at 3:03 PM Andreas Schwab wrote: > > On Apr 02 2021, Robert Elz wrote: > > > Date:Thu, 01 Apr 2021 21:33:31 -0400 > > From:wor...@alum.mit.edu (Dale R. Worley) > > Message-ID: <874kgpqxlg@hobgoblin.ariadne.com> > > > > | I was going to ask

Re: select syntax violates the POLA

2021-04-02 Thread konsolebox
On Fri, Apr 2, 2021 at 11:41 AM Robert Elz wrote: > > Date:Thu, 01 Apr 2021 21:33:31 -0400 > From:wor...@alum.mit.edu (Dale R. Worley) > Message-ID: <874kgpqxlg@hobgoblin.ariadne.com> > > | I was going to ask why "else {" works, > > Wrong question. That one is

Re: select syntax violates the POLA

2021-04-02 Thread Andreas Schwab
On Apr 02 2021, Robert Elz wrote: > Date:Thu, 01 Apr 2021 21:33:31 -0400 > From:wor...@alum.mit.edu (Dale R. Worley) > Message-ID: <874kgpqxlg@hobgoblin.ariadne.com> > > | I was going to ask why "else {" works, > > Wrong question. That one is easy. What