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 autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 24416 invoked from network); 11 Feb 2023 03:55:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Feb 2023 03:55:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1676087743; b=jVdfYxI5Gx/upMFHhsEgxyfCnkcAkrj6Rd09e8weYI2N0+RhM8HMHs3Zst4o/osdpVelGOimVC aIYQc4+jLkOucwrItzX7GZU0i8p55DnhnAxCtAGNCYXXeRF8PzbvwfnG4rIjXaNKu0Al1lUEqz me5UP0IyxQIEHJtPVooYNjc69zLXVRgO1UwPIbHge+wn+kLXHWto7afUqlG5V9M9JhJ+XoV63b eUu41QcWCI9ieuncjYu0nOcRVcUPVUzuW/mX9ay3ccZCdSe+bau27pLrbc3qIEdGdSBZoY870q x+P+mjeA0sb/69tmIaXmKiqP+kjro14wt6Xo1u1OEg5U5Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f50.google.com) smtp.remote-ip=209.85.218.50; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 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-20210803; t=1676087743; bh=XirFE/pG8gbXY0VpD9DatOUxQuACayZEtxOzO+EvrE4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=i4Jw+v2dqpxB2t080L5YTf5SG8SJ7fSt+77FrFHaJ/PwMZXvY4ynAwH4whtkW/FN8PT0rczSFW vsxRWR49nXKTUnnY4ZpU/CiNWg1sDAN0ZS9sbHGa/jtmqZmUgn5iB9v2JfCT4GC0t+k4laXJL+ DY9MZBKQz20gZJ+rcClwqpfkpYjR1s/VaRrvnnL1aQKeIZ69TJM8h+L4AgyDK+HDIkNZ8i4yTd F7k7mH+/aSPB6Zqsw6bPVanicf4PVGCmKl6KIy1MiZQG+sp7T4UyMpJza9bWGMkhBB25dQTudG 9Bld4y4qQYp3Ti/go8xMx3L7t1TASQHVMXfYIWD/V5I6UA==; 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-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=pm4CuPVGZTCqcefk4o9M/BhPu7Rxt8a7VaY0a9C5/XU=; b=jHYWTGQR/vTlmt8+5yqy+GSoGZ PNqRCmksmb2LjL07DUdof0csnK4fLPqvY3lnGnkqryVmVLv0ZNjeu/IEveH1/XoEwCVYkHDelT6Fv mAwVSsVmNY5Q/fHoLL8FVGLwV2d9Kxra0vPUDOZ+kF0CAxCvi97mqbUgPW2IJXnLS8QvxgIRJCtTm 32JlZ8yGgH8l8H5nH9UjN0VBb7DJXL2h9MhMJ2sZ7DBlO1M5m4dHMq7djxVFoeml7asE5VNBFPKc0 6FA8dB0+XA0Dw6xgIaeZnVAAhH91HRBfxTiyA1eMt4at2ko8uX3MyuZAp0sYobVevpFGqKvv2eHip y/x5riDg==; Received: by zero.zsh.org with local id 1pQgzG-0009S0-RV; Sat, 11 Feb 2023 03:55:42 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f50.google.com) smtp.remote-ip=209.85.218.50; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f50.google.com ([209.85.218.50]:41586) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pQgz3-00097c-3r; Sat, 11 Feb 2023 03:55:29 +0000 Received: by mail-ej1-f50.google.com with SMTP id m2so20440468ejb.8 for ; Fri, 10 Feb 2023 19:55:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=pm4CuPVGZTCqcefk4o9M/BhPu7Rxt8a7VaY0a9C5/XU=; b=X82dbowM3AlMSgRaIemX8HuHBI1JiW+GwPMEGshhTRXaHoO6CuLRnwlIMqXhfIGxmM ib5FZ6IEAH2qH12VstOL1IB57X+SGda/qZgSVvwjG1HrGIMPaMI639aRZZlUUv2diZjs oNRTKwaqbTZS+kytchMMxui8iSOJw2+gqNW2AzpcnkaBYwlDml5Izymrc5xdqMZfMJWW CBFmOU8Wb7I6cWblfrRwBqG4L7A3c7jPAsmVY8LnM9jb6C/JTA5pJHzkVCszs/26krRT bVMzeMY9tLs+VReSuRKfjyIE0KcOpo4LG5o5tDgpJEZmUvmwvZswx373hoyJI39hECK7 /iHg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=pm4CuPVGZTCqcefk4o9M/BhPu7Rxt8a7VaY0a9C5/XU=; b=saGlK2Cf+oFYpOe24tyU/77g9qQ+YRyWBLo/BflkTQmV1R/fZbsv9NAkoXfR4ibquG u1IFsCZC4pN90SL2aDTjscyRLI/HKBj5d8epbBuuQmmA3+y5bRvQUKhsq3D66zcTOH08 FF1GWnd4hyJD/9Chb7GNn1yhlXSp/unOGXBjrhoyo8DM45Yp4hXq0tKlcspeCCuxQlTA ayx/EYx3LOewr87Lshv3YATdp8OJAbdCrIuvYHZKcM2C0qNaGevMyn3lIlwk2L47lsT2 UfuEBr3yEDSoBvw5L77RoD8CKpTTCgnq/yFvp1dwzAc6WxaRRDWFRmjffEOlGtxSM/V5 FQeQ== X-Gm-Message-State: AO0yUKVvMqS2S23YQhSXiJvcqasaeGpaFVuJMEPwheam21laS7bdkryp eru24WFHGAqk/pP+oFQpmbzB/4JvRpiBqq6Z18rb8BNYxYI7og== X-Google-Smtp-Source: AK7set8uweYY+imJMzHYcISqjpo5tk8nc96IdG0bfCTTLQTW7BpYAulCc7cR1/FdC+AYGcyqn8BOYvgSE3qGHFXWQpU= X-Received: by 2002:a17:907:2bd5:b0:878:5947:2599 with SMTP id gv21-20020a1709072bd500b0087859472599mr1910172ejc.6.1676087728831; Fri, 10 Feb 2023 19:55:28 -0800 (PST) MIME-Version: 1.0 References: <67689-1675827940.088548@BxvG.D9_b.7RzI> <12608-1675903622.800470@Xj82.e3y1.svhG> <66045-1675975796.128039@FBF_.0yMO.Y8fk> In-Reply-To: From: Bart Schaefer Date: Fri, 10 Feb 2023 19:55:17 -0800 Message-ID: Subject: Re: [PATCH 1/3]: Add named references To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 51396 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 Fri, Feb 10, 2023 at 7:04 PM Bart Schaefer wrote: > > > > It might deprive us of many clever tricks but parse_subscript() could > > > gain a flag to disable anything questionable like command substitution > > > and math evaluation side-effects. I'm not sure what to do about math side-effects, but I've hit upon the idea of expanding subscripts that appear in named references with EXECOPT set to zero (noexec). That reduces $(...) to the empty string, except for the special-case $(