From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-2.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_HELO_IP_MISMATCH, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16201 invoked from network); 21 Apr 2021 10:43:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Apr 2021 10:43:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619001820; b=aEovna8DOCKKZfqARg5Jb/Jlq+h4gsJeLTVVdyAcCZbfAAix/1054Wrhqrb4tvM4OhwkV6LtoP z/cuHH+uax+aSp3ZgFdW6oALRL7xRMdWy6QdlB6GKuOhWnuZGHKQaurMVWDH1tF/MJwn+vf6Yi 2j8fF7e7KAFt8N3aPWcQKct8TCjvFt0ZdTRXividpZRaC92GedG8fJa28V6l9jzC1vLszKlMHt i80Mg4HI4py2DuT3ia4hsWg7pSE82T37WHKRwTZUT53wuvtPsDLabmaJO0qvtjE5G3Lqq9vDrV ryk4j0I2TptYdU2E83ClaD8OoZDJ0acC3hGb5X5KWXs34Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpout02-ext2.partage.renater.fr) smtp.remote-ip=194.254.241.33; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.a=rsa-sha256; dmarc=none header.from=unistra.fr; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1619001820; bh=32Et2nziFCimZ3VnP22mjS5rxlbElUQ7iS2A3wP1CSE=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature; b=Yjm9pfmasdaA6wOvpKsGO64/yAk+c/yD+bpqlsDiDGUtfKa5/W5pAaMpfZo/8XGSYnowbIi+gE 59ORUcHmVaGDhWho6Jg+gbCgWN4dHeYV9NumqdrNBfL6epFrBfC7kar0fZp1arkXcf1WWguJ6X dlCWwRXh2M/+d/1U10kQ1D46O3yXvY7/JGHpARUVuPUELGFjUqcWntA32T6M/0yICtjnoE/ljB O/LS29SKVl+SCUE+k1LOxHfaXlFOY2nKwcPLSv9cD70LwG+3v0+V2DCCxDmLa5ZOGQDp5eUF3z m12IYudZc/ajYXXx0Qxtms28Izof1ZNp0ETWtm3Z8jB9ug==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=V4J/mVkGlAG5BXGBNcoEgoFnIC6SgkSUJkQDdc19EoU=; b=kACeVS+JC4kI0yeDa8UebLlsRP e8GWT/Vk5eziKsRkavS93x6pmzTyeOU9u4uKhDpMbnU1jgHzHbNKCBtxZH5K17mdJxcwc17gqdohw jJ49PAlxISJi9fEkhmCI//PzHjc/2KI8e4B83QuX1wsffw6csnWQDpZsAwrbhHRZjfYzdmzuSHHl0 g1wuWzuNZDKXNtSMJ5woq4I62E6pLwgvdR95I+Xi7oe+NeSrvQrVeQ9O4k1LqjLZ3k2glBZhUJmY+ 6TxWCeZp65v8w3p6Qw+1qxY4GmzxLOW3tHrG7pShdxH+A1vJq6ywMZzmomBZ9hvjVgQgew0mefaK7 6FcabkNQ==; Received: from authenticated user by zero.zsh.org with local id 1lZAKa-000413-4D; Wed, 21 Apr 2021 10:43:40 +0000 Authentication-Results: zsh.org; iprev=pass (smtpout02-ext2.partage.renater.fr) smtp.remote-ip=194.254.241.33; dkim=pass header.d=unistra.fr header.s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3 header.a=rsa-sha256; dmarc=none header.from=unistra.fr; arc=none Received: from smtpout02-ext2.partage.renater.fr ([194.254.241.33]:57906) by zero.zsh.org with esmtp id 1lZAIn-0003OW-2a; Wed, 21 Apr 2021 10:41:49 +0000 Received: from zmtaauth02.partage.renater.fr (zmtaauth02.partage.renater.fr [194.254.241.25]) by smtpout20.partage.renater.fr (Postfix) with ESMTP id 308B3BFD46; Wed, 21 Apr 2021 12:41:46 +0200 (CEST) Received: from zmtaauth02.partage.renater.fr (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPS id 257D1A0A35; Wed, 21 Apr 2021 12:41:46 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTP id 1468DA0A4C; Wed, 21 Apr 2021 12:41:46 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.10.3 zmtaauth02.partage.renater.fr 1468DA0A4C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=unistra.fr; s=CF279DD4-6F58-4C59-BB33-73FDC6DFC1E3; t=1619001706; bh=V4J/mVkGlAG5BXGBNcoEgoFnIC6SgkSUJkQDdc19EoU=; h=Date:From:To:Message-ID:MIME-Version; b=pWmiLJRpyjoNBv6cFHHUlcnbheCX1J2xsZurquqyeuNgnhzHgOEL0mb8ZreFOPLDn WPlZ6eu4PJ8d4tL33Mm52eaEz8a8qiRPvHuxCM7eeuBtN3xne+1KJ588996YmEEHsu rRzgCOz2ro7rvxOi0kzxtoFa7FgzslsyzlsntUO2X0/lSUJonQ9JtJdqvOGTcXZG2J 1WhoBDptOdZt9jO8h1HbRrGl4lzRCMZcDQ37U4NJ5ccQxdEJ70NVvXgyr1alRb55Wi 3XmIcgtuMq/T8wzeExwKBHnAOZdzWT4N+HkKhYQMolyoKrfkPWCDc36DeC/HMe4VJ3 SnU11GpySOaaA== X-Virus-Scanned: amavisd-new at zmtaauth02.partage.renater.fr Received: from zmtaauth02.partage.renater.fr ([127.0.0.1]) by localhost (zmtaauth02.partage.renater.fr [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id a655pyzkRVYp; Wed, 21 Apr 2021 12:41:46 +0200 (CEST) Received: from 82.65.50.238 (unknown [194.254.241.249]) by zmtaauth02.partage.renater.fr (Postfix) with ESMTPA id D16E9A0A35; Wed, 21 Apr 2021 12:41:45 +0200 (CEST) Date: Wed, 21 Apr 2021 12:41:39 +0200 From: Marc Chantreux To: zzapper Cc: zsh-users@zsh.org Subject: Re: if (()){}else{} documented? Message-ID: References: <1154b0e1-e5ad-70be-f620-1368c86f12ed@rayninfo.co.uk> <4e916390-adc1-0725-ae11-c8ac6ef976df@rayninfo.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4e916390-adc1-0725-ae11-c8ac6ef976df@rayninfo.co.uk> X-Renater-Ptge-SpamState: clean X-Renater-Ptge-SpamScore: 0 X-Renater-Ptge-SpamCause: gggruggvucftvghtrhhoucdtuddrgeduledrvddtkedgfedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecutffgpfetvffgtfenuceurghilhhouhhtmecufedttdenucenucfjughrpeffhffvuffkfhggtggujgesthdtredttddtvdenucfhrhhomhepofgrrhgtucevhhgrnhhtrhgvuhiguceomhgtsehunhhishhtrhgrrdhfrheqnecuggftrfgrthhtvghrnhepgfejjeeuffetffduieelvdffkeeifeelhfehieekgfeiudekveeuuedukefhledvnecukfhppeduleegrddvheegrddvgedurddvgeelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepudelgedrvdehgedrvdeguddrvdegledphhgvlhhopeekvddrieehrdehtddrvdefkedpmhgrihhlfhhrohhmpeforghrtgcuvehhrghnthhrvghugicuoehmtgesuhhnihhsthhrrgdrfhhrqedprhgtphhtthhopeiishhhsehrrgihnhhinhhfohdrtghordhukhdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhg X-Seq: 26693 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: > While playing golf I've noticed that the 'else' clause is particularly > intolerant it needs '} else {' 'else' is not the problem: expressions are :) (problem of priority?) this is ok if {true} {echo ok} else {echo nope} those are syntax errors if{true} {echo ok} else {echo nope} if {true}{echo ok} else {echo nope} if {true} {echo ok} else{echo nope} this does not echoes what you expected :) if {true} {echo ok}else {echo nope} regards marc