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 3948 invoked from network); 18 Feb 2021 19:08:54 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Feb 2021 19:08:54 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1613675334; b=m1GvlARj/dp3MSjZ9u0PTWFyrc0Qa3pVd431I/bUnfCxduv+PwXFCRnxJb78Sc1M5EHwFS/0k7 qH7O2hqNcHhPSr4zrYqlIcT2zUaLvm8vuGbigWPEbsNdj/AnfVUZ6e64JrXZ0rxPbvpM6rDvQ3 NL37DWMCWn7zd/rX6/B4frFQATaqLS9393E0qoGzssQJ/VcV4lsV82MFhED+kuRQePDSGUft32 CDZs5H4B3/Vd6qdrSMoroI8jRS4RC2V2VlscwhZqc6xyDtdfyD9rkxa9uLXNNYNapTFG5HmK6g /dKSo8PoBupNcknKpSj5G2lbpgxQ7ga2wgJ/3bUtMPriMg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f47.google.com) smtp.remote-ip=209.85.210.47; 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=1613675334; bh=3NqhnL2iv9h4JvvMiIXDAp9ODVldrBYUCDQ5vY/ZIAU=; 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=XJ6cjH/jKsHs/YsHSb8u2u1+qPEjzCNV8+NJhR6hmCuuacrNXd2A+sfAddIh5F4ggQD2m8qTK7 CLmsc36wDsUa8Js6TiV95l4+EGyJQwVu6hq73VZ96DJ4DLgwphKTb3hTazZIyQX0GK8pfSFWzR PGDOFEF9vvWLE0GE0IMdY27rAWy9uL0xK33Duk9lXqnbO/8yR8/2To2SoOsh+AEwKuWKBlAkX6 Ku8VVRO0ktoSCRu5+ExEY8SPWi0Q6XOgqSNZB6gKR453wb4mk4tS5F8jT1h6LzD6jkQAdU8re+ z6FymFRmMqvkaV66niQ949BWGE4RNXOGBJHvsVN+36ZeTA==; 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=30rZxnIkLr0bhwQupv8uppWuKd1R4O3MxjBZJRxIxmI=; b=KHNzn/W5dud1For1HQMr0jhguR VQ9gE+TMDEHUld3Nlio/piWh/q9BdLme4tBdn31PuZU63vaoV5GhA/GKqowCrglngj1sjA3QqUSnS UsiCDgoXX7EkCXarZdOwXfL3qjRIsL7+dJxtspLphEX+1QBZC/PRHy+N/JV6BLI/yNPnV3bS9SlnU OMhHuBxusklBMuUFRxh5vVyaeQ6gHMs556CjKVtXx/sSGnLLEl5CBaao0+iCqid/M7d3X1npyv2t+ t79lZ3oW9VDtN2wSQUUUwJgBReMdk1jvkPrgOi+EUp6LN63CPoSwJEs/fv7Ddb7Ae45cn9c2q406E alZCypFQ==; Received: from authenticated user by zero.zsh.org with local id 1lCofR-000FFx-I1; Thu, 18 Feb 2021 19:08:49 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f47.google.com) smtp.remote-ip=209.85.210.47; 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-ot1-f47.google.com ([209.85.210.47]:34690) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1lCoeo-000EsT-S4; Thu, 18 Feb 2021 19:08:12 +0000 Received: by mail-ot1-f47.google.com with SMTP id b16so2887572otq.1 for ; Thu, 18 Feb 2021 11:08:10 -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=30rZxnIkLr0bhwQupv8uppWuKd1R4O3MxjBZJRxIxmI=; b=gHEpdnBD0vzokYE3jR3p8fEepO7u76+TkXmcTKcrkjcWh/OfFr4SV6DXaZm0qLhewd TcqgQVhYCcafy6qzSh9WrWz+YoE+1EnlDvpT+vViuRmchE1ZZhqnfpJlDxdepdeMkjkg NWtmEKTYB2F0ICBeNFbfGIC6zmPNfwUIk5UKaZhXYbqD72yhxi3hNw3vJ/MSG3ssD6Ab 4Uu7nsjqApkPVncH5iJ3PQEv8mZbm4ezlFA0oDv9Lcr5HFYo/xO558q0+x24gI/dPURG LtehfphRBWMbzEpb3Q+N76WP52p9nufpgi7F1VTIRhmFVVttbLnt27AkhIdKX6Wc8HqA W5ww== 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=30rZxnIkLr0bhwQupv8uppWuKd1R4O3MxjBZJRxIxmI=; b=G7+vjjqAL5DSSFihSYwXshM+gJRdEKPny4jDy+mqnzUGR7MIJTOQ+i1HW5HWqJhxmh A69akzpv/TgI2z1UcIJtsMlct5LAUUk6kdBxHpGlnUBlPtOU+0NXkrWKdkCWFzzF0JTJ CamAyt1WenkcC+KBATbJwmdCyqNnu3T7L/1GmA97GNSP7EMtVHIoAtgxjIbjX8wDY99J wL+eP1rHsVytep8IjmaFGvATgmumrZ6lnGIt2h8EM1C2XxTgE6jJ9SYQgSA1AKZcKRub ZoeyHbP7qoBfGyf8zdKQ30RFkEXw5xI2tEE90Yf+sE6YbvVe6dEa7PqMgI+MzZxoYee6 vx8w== X-Gm-Message-State: AOAM531gWVVh6De/hTms4GU3NYJq9O4DSVmLypAXe7o14lvlnKwfylXf mLCS2DCDeKl5wFcbf37wIl9Jk9UUEFnaBEnoN/aT0w== X-Google-Smtp-Source: ABdhPJyhdQ0OEbclIUyi4h//7W/w3/J3RKKx4F+g78Yq64HL//dA0YRd1ng7nJ8ekmzKXkKUh4wa5VxZLnxzbdpf6e8= X-Received: by 2002:a05:6830:2106:: with SMTP id i6mr4031367otc.260.1613675289557; Thu, 18 Feb 2021 11:08:09 -0800 (PST) MIME-Version: 1.0 References: <20210218134039.GA1492462@zira.vinc17.org> <8b3a9f93-5eb4-4d4d-8312-58c371e12239@www.fastmail.com> In-Reply-To: From: Bart Schaefer Date: Thu, 18 Feb 2021 11:07:58 -0800 Message-ID: Subject: Re: auto-quoting inside braces in arguments To: Ray Andrews Cc: Zsh Users Content-Type: text/plain; charset="UTF-8" X-Seq: 26534 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 Thu, Feb 18, 2021 at 10:57 AM Ray Andrews wrote: > > Given the deep desire of shells to strip and interpret quotes You're still misinterpreting this. It's pretty straightforward: -- quotes are interpreted ONCE when the command line is processed. -- the only time quotes are ever interpreted AGAIN is with "eval". Stop "eval"-ing things and you'll stop having problems. If for some reason "eval" is absolutely necessary, THEN you need to assess what quoting interpretation you WOULD have used if the argument(s) to eval were the original command line, and re-apply those quotes, which zsh makes possible with ${(q)...} or ${(qqq)...} or whatever.