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


Groups > gnu.bash.bug > #16045

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

From Vaidas BoQsc <vaidas.boqsc@gmail.com>
Newsgroups gnu.bash.bug
Subject Re: Are there any plans for more readable, modern syntaxes for If statements?
Date 2020-03-26 19:05 +0200
Message-ID <mailman.477.1585242401.3020.bug-bash@gnu.org> (permalink)
References <CAB+qc9AAPQbzp92tv-FOR4Kh+2UdZyRwGiPOfNegVqv5UFnU5Q@mail.gmail.com> <C46D87FD-947F-46CA-A03C-68E52E14BF5A@larryv.me> <CAB+qc9DGHtSxD_2cYkDnhzXYR-_C6civArEsfiwfECbWzCxigw@mail.gmail.com>

Show all headers | View raw


I keep on wondering why these shells can't come up with something better
than improving previous shell syntax by little by only providing poor
better alternatives.
I somehow think there is a need to rethink shells from scratch to make them
less mentally demanding and readable in the command prompt and scripts
themselves.
I really haven't seen anything that I would like to use so far. Neither
zsh, tcsh or any other of the more popular ones as far as I remember from
the last weeks "personal research".

2020-03-20, pn, 06:11 Lawrence Velázquez <vq@larryv.me> rašė:

> > 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 | NextNext in thread | Find similar


Thread

Re: Are there any plans for more readable, modern syntaxes for If statements? Vaidas BoQsc <vaidas.boqsc@gmail.com> - 2020-03-26 19:05 +0200
  Re: Are there any plans for more readable, modern syntaxes for If statements? Allodoxaphobia <trepidation@example.net> - 2020-03-26 17:23 +0000

csiph-web