Path: csiph.com!xmission!news.snarked.org!news.linkpendium.com!news.linkpendium.com!panix!usenet.stanford.edu!not-for-mail From: =?utf-8?Q?Lawrence_Vel=C3=A1zquez?= Newsgroups: gnu.bash.bug Subject: Re: Are there any plans for more readable, modern syntaxes for If statements? Date: Fri, 20 Mar 2020 00:11:02 -0400 Lines: 19 Approved: bug-bash@gnu.org Message-ID: References: NNTP-Posting-Host: lists.gnu.org Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: usenet.stanford.edu 1584677469 11636 209.51.188.17 (20 Mar 2020 04:11:09 GMT) X-Complaints-To: action@cs.stanford.edu Cc: bug-bash@gnu.org To: Vaidas BoQsc Envelope-to: bug-bash@gnu.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=larryv.me; h= content-type:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; s=fm3; bh=/ PAv2QVBnV5LxLR9MPEGNcXJXiWBwBMB4VbxYVaKgq8=; b=anW+SqqSdrWtq3wKE Mujq8AEw6MvWBaQawRhfD7ur310LJRkyv5EltbS8C02Ukbp6rk2KYElrgWxoOYvl zb9SpxYv3hbKnXqhJBT1d5WijcZhzPLe7ludrhqSYWtgZH0K442fNUQdKYmvMQ35 nS20Ma1ukKyzmqX+Z8O0WeVhLNJkrsKCHtwfAQCVN8JawnGOcRH9/WOJp2PwxuNy qsk/1T6WAUmt0K44j77ABKz/kaFck2hKehdiQDTO9NNHyULO8vMYs/i7oEoibGvO SdKqehsADHHyf/og0EZGNbr2GDOp62VHV4VnU5be0GKbCEcce6Hkr6wbmdgN5xS+ HUNCA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=/PAv2QVBnV5LxLR9MPEGNcXJXiWBwBMB4VbxYVaKg q8=; b=AILZYVgMVB/tJqUg0lr5RGsiClmepCuk8YtGk7gCpnbyG7sVtvfJlvwYH JvWKAiQgGXE6MOhGTFFQ1XWH0fhkeW12Mv4wDxU7DBYQFVZvo0q84HAHgkB562gv g7vfHZ1iqorG+1kTTIcmncBvivajXSoZiOhu6cDn3n0IdI2VSQ6vES3CaTLF7omJ QYFpCWOGRCMnQbWi4ol56hHi1RpBIIEsX94z8IAPF2mliRhOf8ozWL8A22AsVXlz pdFT2O7tsDyeSKpAB634tk4jtCg8JjoUN07vNn8XWO4XwfBGAUzpFBVIICeCV2VJ TgFWQ2oXyV82oEjwQfVdUNtntUB0Q== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedugedrudegtddgjedtucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurheptggguffhjgffgffkfhfvofesthhqmhdthhdtvdenucfhrhhomhepnfgrfihr vghntggvpgggvghljoiiqhhuvgiiuceovhhqsehlrghrrhihvhdrmhgvqeenucffohhmrg hinhepshhouhhrtggvfhhorhhgvgdrnhgvthenucfkphepuddttddruddvrdekuddrudeh feenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehvqh eslhgrrhhrhihvrdhmvg X-ME-Proxy: In-Reply-To: X-Mailer: Apple Mail (2.3445.104.11) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 66.111.4.29 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:16038 > On Mar 12, 2020, at 3:00 PM, Vaidas BoQsc > wrote: >=20 > 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? >=20 > 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=