On Fri, Mar 7, 2025, at 12:23 PM, John Wiersba via Bug reports for the GNU 
Bourne Again SHell wrote:
> You're discouraging it's use by not documenting it.

That is the point, I believe.

> BTW, according to those links below, apparently zsh documents it

This is true.

https://zsh.sourceforge.io/Doc/Release/Shell-Grammar.html#Alternate-Forms-For-Complex-Commands

> (and encourages its use)?

This is not true.  The short complex commands are documented with
cautionary language, and they are verboten in the distribution's
own scripts.  They're a regular source of user confusion, and the
position of prominent community members ranges from "I use them
interactively but not in scripts" to "not even once".  (Granted,
"for ((...)) sublist" is the least troublesome form.)

Here's a relatively recent thread that's at least tangentially
relevant (search for "while loop grammar question" and "why not
promote the plague ? (brace|rc|alternative|modern) syntax"):

https://www.zsh.org/mla/users/2024/

(The archive does have a thread view, but it's not very helpful
here because this thread is so deeply nested.)

-- 
vq

  • Bug: please do... John Wiersba via Bug reports for the GNU Bourne Again SHell
    • Re: Bug: ... Chet Ramey
      • Re: B... John Wiersba via Bug reports for the GNU Bourne Again SHell
        • R... Greg Wooledge
          • ... John Wiersba via Bug reports for the GNU Bourne Again SHell
        • R... Lawrence Velázquez
        • R... Chet Ramey
          • ... John Wiersba via Bug reports for the GNU Bourne Again SHell
            • ... Chet Ramey
              • ... 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