Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: Vaidas BoQsc Newsgroups: gnu.bash.bug Subject: Re: Are there any plans for more readable, modern syntaxes for If statements? Date: Thu, 26 Mar 2020 19:05:58 +0200 Lines: 31 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1585242401 7074 209.51.188.17 (26 Mar 2020 17:06:41 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=Yuo/siThPMbmmCI7fgK4lDR+YScDPrtA84bm+jGn6JE=; b=kLCzz0+YNM5rZNt5aA4yeY2E7auYfljwWrb38yH1DQL1YLzASWAHvIC5RRy+FBoLen InAg2lZQvl5lO4tPUMqtQn1ZOofGII2TIcghONufmMrofQUUztmeRi1DfTK0nKvItPjb +w+kpe83c95yKwAEXLGD/FdlHzT6UXCpQ8LklCwQF6rOzf7aYDVFxjEY7ptzpPDisOXv cUk8gN6sKKtppYFqZdJCix9kTECpMJoyZyrYCV4W6y/YImkCHvg7teEJ1I5QvVhcTdw5 8e3lOsovagGZFSaMDZoe18Qzh0B8OCgbxUZ7G3HwgdntLLDe5we9V4dkfsEzHNWmj0TB Q8iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=Yuo/siThPMbmmCI7fgK4lDR+YScDPrtA84bm+jGn6JE=; b=S/f2tEzk+GA1Nt6KfkJUQa/bfVb9MtPP/N3MJLF4xy5Fck5eD5w3TQNtiPaD4QtONV rp29adhECpdeSmyCKrpWX5QzR0i6km0qnroyYSkbWCupR/HhAdS4KygDIElhDF8Fn8zm YKf0LIsOIc8tWXLJYbE0Bss0x195bEqkotNdG769qGqx/zBxVusREOcCRt7qNlQ2bz9i mT4cO7ll5YAaxd/+y9TVkULgRavaZFp+kLLMcTC9bcDMVSmnzKBZ5C96+JSLUUUL3StB 9HccoN94Zewfz2R7jbttKWDJGw3/YU3t2eE+g1zCIA5cmUQNqXjXaIBkx019vIsnQEqL rGEA== X-Gm-Message-State: ANhLgQ341E4nnw7sPThGGIg1p5Khgos23t38YGjdHVXux6UyxS7Gg8YU TEE6tsnpad3qdINjnub/VKk4NDQGg2GTZojz4m4= X-Google-Smtp-Source: ADFU+vsksMTXX+Bu7iwmG3BI91iTiCAEmEBq78kLcgGEQl5BrllDXRCnvv0CcxsRoQdZ4Ftom9hoUGHHCDBDUaXWqko= X-Received: by 2002:a17:906:2cd5:: with SMTP id r21mr8986242ejr.222.1585242395503; Thu, 26 Mar 2020 10:06:35 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 2a00:1450:4864:20::52a X-Content-Filtered-By: Mailman/MimeDel 2.1.23 X-BeenThere: bug-bash@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Bug reports for the GNU Bourne Again SHell List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: Xref: csiph.com gnu.bash.bug:16045 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=C3=A1zquez ra=C5=A1=C4=97= : > > On Mar 12, 2020, at 3:00 PM, Vaidas BoQsc > > 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