On Mon, Mar 10, 2025 at 5:39 PM Zachary Santer <zsan...@gmail.com> wrote:

>
> Another alternative would be for bash to print a warning whenever it
> encounters this syntax.
>

Don't do that, the one who don't care about shell portability. i.e the
script started with #!/bin/bash may well be using this construct "for ((
i=0; i<3; ++i )) { echo $i; }" since ages and don't want to see warnings
all of the sudden. If you go with new warnings path, then it got to be with
a new shopt kind of optin that old script don't use.
  • Re: Bug: pleas... Lawrence Velázquez
  • Re: Bug: pleas... Chet Ramey
    • Re: Bug: ... John Wiersba via Bug reports for the GNU Bourne Again SHell
      • Re: B... Chet Ramey
        • R... John Wiersba via Bug reports for the GNU Bourne Again SHell
          • ... Oğuz
          • ... Martin D Kealey
          • ... Zachary Santer
          • ... Lawrence Velázquez
          • ... John Wiersba via Bug reports for the GNU Bourne Again SHell
          • ... Phi Debian

Reply via email to