Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: why not promote the plague ? (brace|rc|alternative|modern) syntax
- X-seq: zsh-users 30152
- From: Marc Chantreux <mc@xxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Cc: Zsh Users <zsh-users@xxxxxxx>
- Subject: Re: why not promote the plague ? (brace|rc|alternative|modern) syntax
- Date: Fri, 13 Dec 2024 15:57:19 +0100
- Archived-at: <https://zsh.org/users/30152>
- Dkim-filter: OpenDKIM Filter v2.10.3 zmtaauth03.partage.renater.fr F045E80080
- In-reply-to: <CAH+w=7Zm2Uo+Twr_iaCRPMt5xRGdfkF_HMOOP2VVoiNoLb53MA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <8e1cd80d-fcee-4227-93ae-de2339d066fa@eastlink.ca> <5b4a5f55-717e-4794-93d7-bfd03a955ba8@app.fastmail.com> <CAA=-s3z=C2YLSMiz1cYyuCNo1pxuESZ6qvP4EQyQFT60n3+itA@mail.gmail.com> <26784dbc-3f8b-48d0-abab-193e6ec138ea@app.fastmail.com> <CAH+w=7YKdGJeBzQnYKjkdi5EFSSu=dp2fyLT4wJnk7=XTA0LbQ@mail.gmail.com> <Z1nfDWyISrBhsfXO@prometheus> <CAH+w=7Zm2Uo+Twr_iaCRPMt5xRGdfkF_HMOOP2VVoiNoLb53MA@mail.gmail.com>
On Fri, Dec 13, 2024 at 07:13:20AM +0900, Bart Schaefer wrote:
> I think those remarks apply mostly to script programming. E.g., I use
> shortloops all the time when at an interactive prompt, up until it becomes
> complicated enough with pipelines etc. that I need to force the interpretation.
I don't setopt shortloops. AFAIR it's different from alternative syntax
(and didn't work well for me). can you confirm ?
> > * should we promote the plague (for exemple by accepting it in the
> > completion code)?
>
> I'm not sure what that would look like. Completion doesn't really do anything
> for loop constructs beyond knowing where command position is.
correct. also most of the users don't contribute their completion code.
I was thinking of a way to make this syntax more commonly seen on
exemples if it was a good idea but the lack of enthousiasm in the
replies leads me to think it's probably a bad idea.
regards
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author