Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > gnu.bash.bug > #16038

Re: Are there any plans for more readable, modern syntaxes for If statements?

From Lawrence Velázquez <vq@larryv.me>
Newsgroups gnu.bash.bug
Subject Re: Are there any plans for more readable, modern syntaxes for If statements?
Date 2020-03-20 00:11 -0400
Message-ID <mailman.179.1584677468.3020.bug-bash@gnu.org> (permalink)
References <CAB+qc9AAPQbzp92tv-FOR4Kh+2UdZyRwGiPOfNegVqv5UFnU5Q@mail.gmail.com> <C46D87FD-947F-46CA-A03C-68E52E14BF5A@larryv.me>

Show all headers | View raw


> On Mar 12, 2020, at 3:00 PM, Vaidas BoQsc <vaidas.boqsc@gmail.com>
> wrote:
> 
> Are there any plans to have alternative, a more modern C or D like
> syntaxes for IF statements, While loop and the like in Bash?
> 
> Would it be better to just make a new shell and command language
> similar to Bash instead of adding these alternatives?

FWIW, some of zsh's complex commands have alternative forms that
are visually more C-like, although they have some caveats and are
(obviously) not even remotely portable.

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

vq

Back to gnu.bash.bug | Previous | Next | Find similar


Thread

Re: Are there any plans for more readable, modern syntaxes for If statements? Lawrence Velázquez <vq@larryv.me> - 2020-03-20 00:11 -0400

csiph-web