|
From: | Greywolf |
Subject: | Re: select syntax violates the POLA |
Date: | Thu, 1 Apr 2021 14:22:04 -0700 |
User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.9.0 |
On 4/1/2021 9:16, konsolebox wrote:
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.
I didn't ask for your opinion on my coding style. It's worked correctly for 25 years. I have my reasons.
[Prev in Thread] | Current Thread | [Next in Thread] |