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 30706 invoked from network); 8 Jan 2021 19:56:52 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 8 Jan 2021 19:56:52 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1610135812; b=DMiG1rCIFPJWdTzIJdQ3W5LfQn9BundbriaHwiabTURDk7CVgU0SyhSN/v0j8yO8nK7rRBz1o/ Xr8u4uL+6EwF+WFBDnm2PkNjlDt/qnKLmR/+ape2O2SNoSSOKYbyiX6bFdLWn7jSj0f6QFUYDA n+RM9xM49pACVaBXEMRKvje99Pwbntf4UNmAZgw9BRJ2swh+Xzkx3Osxc81PWHO/eesHGhoDjx QAci/sjFfMQT8GJ73HM8cuvjp/gSvEFFSNOcoK/xYcQRT03t3WOyUIND/R63ftMnT4l5MBaKCJ 8gSoq4Q+5icvK9JFSP0de5/1eacscI+BiHxMiP6KCgezeQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f175.google.com) smtp.remote-ip=209.85.167.175; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1610135812; bh=zCetSTOvevuYmKeGJR4SfW8MtJf3mdWKMCpAuQuczkA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=slaux50nmh9anBtJDla0JS/YOTBx9zOR2aQYRQiVSB7f5Nf+V2eN7P7Wc7MgYLGgh5Rf3gBPNE sMaCEkFgh+6HJ6nyODAZaZhUMXeztDiqBtTV+SDpJT+Daoc4oxdg3GXjzvZP9O6QvyajrHBitt UoUb6rykBz31u4627/fZgSNJVBHMX6hhd4PLC4+jB1U1drlJSlHY79jnyKqfQ2Qsyyg/K1O3P4 9/EUR4dnvPV1xntER0jQEPNmwAAz33Xa0Fr3q+rED8UdmfhiADw74o7nDsie8v+Zyt1fUcPE72 j7fvuXyrjs3zVouGugHrEYXcjTJUf11aUpQi+g62XVs9uA==; 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:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=PP+cz89dRXxUb3x8vXLSsKRkNOUQBUZqwSXGAoz+NO0=; b=I5cp0ba/K5Vp0mWLeOAvd6Il/y g3NWtwB1PEOWK57eIXJvDWLxn4E21dMvsthWobGrlUyxP2A7SzJHP0yw1/Z++Zmj409COjIXAH+xV adaXs7Jz71pvYfvYNI+l6RXDEDBGCzW4IXKvycYVRM4vzlsmZHC1L9Q0dhZx6vODgiCPVwaAaCJsW kh30DkwOyx9HDiiJ+yWOpmTxebMBn+Xhim4UQ1svvmJ85ly10w/xmBxjQnzu0wXihgNKZXIC7W1/D apgjnFbbR3MBrp0k9vqVgfmM9ievdalBaph7cRY94Cqbudd9Ec+7sHvU6S/2Lc7HpCSj7P2XQRh0t FOW4FFzw==; Received: from authenticated user by zero.zsh.org with local id 1kxxsQ-00030N-QZ; Fri, 08 Jan 2021 19:56:50 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f175.google.com) smtp.remote-ip=209.85.167.175; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-oi1-f175.google.com ([209.85.167.175]:41500) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kxxrr-0002e9-Uz; Fri, 08 Jan 2021 19:56:17 +0000 Received: by mail-oi1-f175.google.com with SMTP id 15so12652804oix.8 for ; Fri, 08 Jan 2021 11:56:15 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=PP+cz89dRXxUb3x8vXLSsKRkNOUQBUZqwSXGAoz+NO0=; b=x8TVLuYXCxkbz5q2zitPG4QZ2e9J3WYNaazH+C9YbigXA7ph5jIsMoyiOZhEsjAg0U igGIjuxLszVwAI4/n+l3IlZ9S4dQnKLzWTxK2ZPX9ouu1cFb+HmG8SHrjQJmyTiTm8NT YkgmnPU2novnxnw9ImBC25/jbEtAdiqq4Xdnx78qCg2x/6tYRmevUP7fGYUHHZKAdACh YS7KjhvZLoRiRcIy/1lZo6wJ/EIJ4XXwKz4vSDgN1JLCeNN2smcjEuThJrgv7kEn82GC eY+4e3Y8hdhY1zNL213EYN9dBO4KQKJenFxhKBo9nc7A7cN1n9ZI2JhcJl586My+tas7 0ziQ== 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=PP+cz89dRXxUb3x8vXLSsKRkNOUQBUZqwSXGAoz+NO0=; b=aAFBPbtyds0WElWyqXPRzylzyqybRgtl91h5zr78uveba/5sWFobjwwJuk/GbXJ9Hm yKOwxgID/ahJ1u6yoFXs1REcsEi6nTxnxEmZnv82/3iRYof65oGFIs29D9A0G5Zofn/s DskfyNbawa00N0X9VEf+W5DhyXAOVe7XzMoKzzTMAUE9oXPf+dvT+hydlRv6e3NM+/9z dRkedsvv6q/sZ47LGbQZJ7BEubvRtfsP//TSWp6I3ioSJuyfXv4SQ9yB5YzhdsQgyRM5 3pMS5FkLvoIdOq0dZMQy98Vm/4s0wjadsSlOeOM0KdqeYeBALm20f9jjHMidMzHkgerv xqjA== X-Gm-Message-State: AOAM533gGI7LALABiofQKb5oBklhQqeNs7DTnW6LQAxeFK1ptIq/XuME zBZyi01G0psRaPpaYm5IdMrX3yzKfYJ5et08x0n+qw== X-Google-Smtp-Source: ABdhPJwFCgwKpCVIOwrZLCBD9WPV1OoT6ZIw7PpFHgdIPp3LTYrpM9ep3o4NR/mAmS06Wc4mvwtX4M2B+rqubN7bp1I= X-Received: by 2002:a05:6808:8c2:: with SMTP id k2mr3369923oij.132.1610135774797; Fri, 08 Jan 2021 11:56:14 -0800 (PST) MIME-Version: 1.0 References: <20210107153248.GA25249@tarpaulin.shahaf.local2> <14e91024-d65b-e3a0-f5f6-8f0e55d40e8f@eastlink.ca> <10257162.hLkh6h4pyX@thor> <600797233.2799876.1610129180019@mail2.virginmedia.com> <19f99e83-5859-50a9-f598-fb6b633c7d1d@eastlink.ca> In-Reply-To: <19f99e83-5859-50a9-f598-fb6b633c7d1d@eastlink.ca> From: Bart Schaefer Date: Fri, 8 Jan 2021 11:56:03 -0800 Message-ID: Subject: Re: here document within a switch fails to parse. To: Ray Andrews Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26351 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: Archived-At: On Fri, Jan 8, 2021 at 11:40 AM Ray Andrews wrote: > Thanks Peter. But I still think we should > have comment blocks. Yeah, I know it's not shellish. Another approach you might consider: (( dothis )) && { # all the code you want to skip over } That does mean that "all the code you want to skip over" has to be syntactically valid, but it also means you can turn that code back on with dothis=1 zsh yourscript.zsh