bug-bash
[Top][All Lists]
Advanced

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

Re: select syntax violates the POLA


From: konsolebox
Subject: Re: select syntax violates the POLA
Date: Fri, 2 Apr 2021 00:16:00 +0800

On Thu, Apr 1, 2021 at 11:25 PM <greywolf@starwolf.com> wrote:
>
>         if ((n > 1)); then {
>             echo "Ambiguous dir specification";
>             exit 1;
>         }
>         else {
>             dir=${d[0]};
>         } fi;

The grouping is unnecessary or should be separate from the first class
syntax.  Bash is not C or Go and shouldn't be written like it.

-- 
konsolebox



reply via email to

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