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=-3.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19552 invoked from network); 21 Apr 2021 16:00:26 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Apr 2021 16:00:26 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1619020826; b=n+WkzczjTyu4g0n1cFM0saAqJeXNOnDp6/Vt1XMuM9rRKfWTFikHiJDD5cFpddZnfPX9FF8FTo Sndw0JizQWsfWnocoJIWrs84vwnjHrUQXEilDaairT0vl6pCTfuXRBw5TYXSW60C75DLaayz+9 UbECu29AfRTkwaVQSazFsSmmMM2S/m5UtC1S2apH4j85vhqBOV0DQlHBmr63pO6CCfgJTXJqZZ +oHp5iysHFsmJLGOVfImUW1FRKVTEWjeSeHjOlC1xfUwSOjYRwMe5PgJJ+2nHhjsqzEOasVdlO FQb5W3vrOGtOxvy5NUo1X187VoO065PU6c6JrwTTUsWF5w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (82-65-50-238.subs.proxad.net) smtp.remote-ip=82.65.50.238; dmarc=none header.from=prometheus.u-strasbg.fr; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1619020826; bh=NxwDeZW4WRDnmGtmdw9Ay2M3Ufn/N9LIvvqe9zpOb+I=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:DKIM-Signature; b=VoP1UdrupmqQe+ddwBXaniIcpGph3gTRvXjS+9Rzrke1WEsrLuVNGN1D0eBWKNrbSyBYC9Or0V cvit7V/gC6UPNeB/FZZseCbLNK1lEpcfMHfpH04/peLns40FyJXiTnVJY1La/25uhAS1oHWCel vp2XOnF8/r0h231UptyAoWOKTlRjd/rRAjK7Uc44lVep/ajiqa7hy3V9/NsueYTMYNhHxXxDYe qv6m0Gknr6pvDE94GYYSKzrJE+/fnii9ckJOItq865Ye5ALCSebYHDhsAGWPrThgTfJjmsFJrp SAimvy4siRe+N1ptS6b9lBDrVChWYCYHC18YDaQAHeW/iA==; 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-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:Cc:To:From:Date: Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender :Resent-To:Resent-Cc:Resent-Message-ID; bh=4TXUwTszvdWTrOvl/kAvJT388evu+/3NA/lbyI1DPko=; b=jwmiN+yzEWiJJQW/fNfn3LCnjO C8PrHVsaDFT3L4ZzgUp1bpGruHMuDjAJoNi+maWh+00tbo2OigQnp3sOcGcJxCKoURRucOXOy+Fha PCWSLoxCzyXJoNHmTk7SFDAFNdf7Jv2lo+sHYCTXrjiTqR8bbvx4+vdivmpLg4IqtQK09NMaz3MeF 6PRS/H6ZCC0lQFVufMbd+0vYssaCHJnWo7HWNf4VFqQ6QcIXz4AAu/xTeDhugDQj7Fh9qT9Q3vn+h O7GlxSdBMOBMBABgybtarI74gdjdsMMqDm64Pty1bopZaD6hRx7ftTlYiBIFjPnGgxrcl1wb19mhZ MOhrquew==; Received: from authenticated user by zero.zsh.org with local id 1lZFH6-000GcG-Uv; Wed, 21 Apr 2021 16:00:25 +0000 Authentication-Results: zsh.org; iprev=pass (82-65-50-238.subs.proxad.net) smtp.remote-ip=82.65.50.238; dmarc=none header.from=prometheus.u-strasbg.fr; arc=none Received: from 82-65-50-238.subs.proxad.net ([82.65.50.238]:56010 helo=prometheus.u-strasbg.fr) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lZEQX-000Ei9-Dk; Wed, 21 Apr 2021 15:06:05 +0000 Received: from localhost (prometheus.u-strasbg.fr [local]) by prometheus.u-strasbg.fr (OpenSMTPD) with ESMTPA id f6e826b7; Wed, 21 Apr 2021 14:59:24 +0000 (UTC) Date: Wed, 21 Apr 2021 16:59:24 +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> <7a0ee671-cb49-e76a-087b-f6a05b840d08@rayninfo.co.uk> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <7a0ee671-cb49-e76a-087b-f6a05b840d08@rayninfo.co.uk> X-Validation-by: larryv@zsh.org X-Seq: 26698 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: Le Wed, Apr 21, 2021 at 01:32:00PM +0100, zzapper a écrit : > On 21/04/2021 11:41, Marc Chantreux wrote: > > this does not echoes what you expected:) > > if {true} {echo ok}else {echo nope} > I'd come across this when I was tying myself up in knots it's quite logical > really when you think about it LOL i don't think so :) i guess this behavior isn't intentional at the begining but stay there because of retrocompatibility. regards