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.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6803 invoked from network); 29 Mar 2023 10:08:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 29 Mar 2023 10:08:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1680084504; b=IPSsgJbaVWWtDAZoi73qCNHiE5BoY/oOiZAivLN2WjHwvfRPQVhsMcz44xonGwdmd82jgfMT4Y F8RFAOys6lrwcYTokblizrNmsDG9S1R6ZO6sw/ezs2p2vaR49uTUVMQANmgmFL3PWJ0yNzFnyB fYifEx0It8eUbD9xqdohkb06eJjT2z2H0yjTbv8Hs5vc+d8emeEfC4ibFm0bCzO86UYf0i+kIy FXBM/GfDKayXpKMIurHsU/vx1m4C/WImXtFayrivhgT5D77hEIKJBYWB/Nb093x440KQ0p7lnG irn4PVlsTGswRBipbCHUVbeod5VapDgRVU8LA/EvldxUyg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1680084504; bh=bl3olrK2it4HwoUW3vjIcRFPm9qhiZs1PZCXXduMP9k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=ev7AZVU0spoqoYIGdu8ec6cPF9CNYfrjjD4z5heq23hlAxfxhkc8c5ItErfzS+8qDJ6yQ9fxZb KcCOzJ4wvwlKvh+F0449n5MEeik1CTTV46T02CameBhAEBmCZdZvBr4SQexQiJ0KfFwo9+XXcY 9amj2sAPf9omGpbHjAP7uvDk2W7Hv67uR9FvTCryjHnVscJqcLV9LKqYhYMQjlGp6t67KJ/LCS Vprh9iSawVSgHUYhZfHz9wpbfki06ZoCmnk3hmu43iJlJcNpLlY45SylKV9zdtKeMM2MzzUAbm Qz+B7jeAyryRTG/CLSj27BNzd4bLV3LOg2xCN30i/kXbbQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=F/38r7rx8OmBbhv//CUrOC+AvBhjPNclGAbmTzLN5aY=; b=q2nAYQnHBF2bVT/DcTNxXrENWH F3LZofJHAIyHW3obcb1QBIw01eagzW52MhMr9aU60h7PwA2bGv2P7GsmgffoukONCz/l1hfYbn0OG p5PCw5hevehxnEiaqGRDmeUmTJur8URPVTSKeZKyYyXjAez/oc5FhXo3XKH0cXGQa7gcYCr2I6sAa cQ3ff0LkYOMm0+wp8BxsD2ZfP90o1zdyO4DdMgjfMv8Q7ncjNruOEF5MJ7dawI+50MHBgfndlNNO+ nlaLfhG2/7yu3Z8mlAvymlG6R04pEDHFebZRNS/6MsCFCPMN8FPCMGKO8gkaDnkVUdNlEYnjN2N6V ciVna6yw==; Received: by zero.zsh.org with local id 1phSj9-000Ipa-3S; Wed, 29 Mar 2023 10:08:23 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:55036) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1phSdt-000IP6-FO; Wed, 29 Mar 2023 10:02:58 +0000 Received: from [212.54.57.81] (helo=smtp2.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.90_1) (envelope-from ) id 1phSdt-0004q1-3O for zsh-workers@zsh.org; Wed, 29 Mar 2023 12:02:57 +0200 Received: from oxbe24.tb.ukmail.iss.as9143.net ([172.25.160.155]) by smtp2.tb.ukmail.iss.as9143.net with ESMTP id hSdtprXpMfELJhSdtpjqHL; Wed, 29 Mar 2023 12:02:57 +0200 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.155 X-CNFS-Analysis: v=2.4 cv=dqIdSXs4 c=1 sm=1 tr=0 ts=64240cd1 cx=a_exe a=7eg3RIOFpSGgz8rG3xBEDw==:117 a=1DWFKdCB1IcA:10 a=IkcTkHD0fZMA:10 a=NLZqzBF-AAAA:8 a=pGLkceISAAAA:8 a=Yr7nUV-D3cOXeWT8tU8A:9 a=QEXdDO2ut3YA:10 a=75Kt_H3ikK-EkTT1woid:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1680084177; bh=bl3olrK2it4HwoUW3vjIcRFPm9qhiZs1PZCXXduMP9k=; h=Date:From:To:In-Reply-To:References:Subject; b=2n2WaD1N0yfu++R3V6FXT+y7fvtT/QCbDXYK1VKXH+oSbwtah9NQocGf2n1WFMDz6 9VYCHOWqaJhDU16viMImMnI02yKd+OTPuOTUgRqBWynq3x1m3Lfaj40V++DVqfm3Qf TILiRQg+XQHH3Uzh6uiuYKU66vN+Z/crhqU256W9G7UIwaZxX2bKmcAfOAvJH9Hci0 0GhtoJ8p6hY7dv17PvhH8V82SRR12YpCyGfqyNBkZKAo+1uVfARdTlly2DIhwF6LVJ cP5MoQ470lccvy/Q+lB/w0HBVaQbmASULaq7QSYh3X91F7sxLjj65BrgUcC4OlDTrq MHrk/Zel/y0Zg== Date: Wed, 29 Mar 2023 11:02:56 +0100 (BST) From: Peter Stephenson To: zsh workers Message-ID: <1185635469.1465903.1680084177007@mail.virginmedia.com> In-Reply-To: <805138511.3622784.1680002886460@mail.virginmedia.com> References: <16795430.3614208.1679998628194@mail.virginmedia.com> <805138511.3622784.1680002886460@mail.virginmedia.com> Subject: Re: Bug with continue? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Normal X-Mailer: Open-Xchange Mailer X-Originating-IP: 147.161.224.167 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfHlCERAgq4qIsqv0E8ewlPEeYXiC+Hs7tEf5Y9kIo6Tvp+wunF+AZspbDulI7DI4kzfTyefTTvhQoRg/xbN+23wQ8UMmsvf23QwYdDT7LdA49Uchz1Pc aNdlq4c+0YpIZd5vzYlkoTGhLjn6MQm2REvxinlI87jX14EJyHXa0i3t8CoZ3jA70+6I7en8dmxV1NzARyUAy9yLH+fgXR6BHdIhumiVvbIPocKK/xyR57Vq X-Seq: 51610 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: > On 28/03/2023 12:28 Peter Stephenson wrote: > > On 28/03/2023 11:17 Peter Stephenson wrote: > > > On 28/03/2023 10:32 Felipe Contreras wrote: > > > I notice this works differently in zsh than in other shells: > > > > > > for x in 1 2 3 4; do > > > continue && > > > list="$list$x " && > > > echo "x: $x" > > > done > > > echo "list: $list" > > > > > > Why did the statement after `continue` gets evaluated? > > This one is a little weird as if the immediately next statement is a > print it doesn't get executed. For what it's worth, I suspect this difference is because the assignment is going through execsimple() rather than the execcmd_... series. As it's name suggests execsimple() doesn't do a lot of testing. I'd rather not tinker with that; the fix we have should be good enough. pws