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 304 invoked from network); 7 Mar 2023 03:51:43 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 7 Mar 2023 03:51:43 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1678161103; b=qEKFkf+aPAD/17V+eNjdVhK0M13dn2At4tWMBy6E5HHPIFXr+rksXPutSGH6r07EIamnmu3kmn 34rDHmcL17JfpY2zrk9SB2CRoW1Z5WAX09eWR7DaAtqAM6FdFsRxZObpVqv072hwkwcwHJqFU0 OSgF1hnPx7LRSN1aZoBV9jJms1DlhyS1XJjTXmDOCqQLm3nyJlucyOZXihipA9fYoHhRb1dwob OMuEB9paQtzl2udHxCtpDxYXEDpicp0fHiqyUhVhZe6cKyeOb29MvIKdvk4PIZL+EKDkDh1qez jKCf10f5YbYfvVnz4RU9d1Kpfx9RPgG230R/InWfnCQnjg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; 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=1678161103; bh=25swxWxejxm4GJ39i3Z+xg8Hudb5svBlTmL5NHUfke4=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:To:Subject:Message-ID: Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature:DKIM-Signature; b=pC9vvMeslAwOgQrFd75uP96QSqUwf3CjkF/AFhnIscj0Sb64HaKcen0lzc27KDz6+nbqv/nvIp M+RamyUUDEPgcSJ7XbUmoOUzLmMoNkpmR0MSoDI8a4NazBojj634mtPUYgbIfadz+n8FdhI4eg OQUMKV5lEnZZtbXiOO0xuky9OGj6GUr6gzrcyo+n+jfVG2/shAI2kFK+GQoq54fU4EFvFY0AB/ 68Z2DwirsrYQqaWZetGFLVTlaL4LLFIEpSasWbc/kLMypU/3eSJ3rveOpNuPT30LlfvFYCaYBG iWt7yIDhvoz1aqs/CYX7dvoYvNjyFe47QWbeYMFJ1xHGBg==; 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:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Cc:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=u8Iw8a/P1oypHuRyak80+cCKhSW5Swu4iaL47j2NA3c=; b=avhcjYTALq0G5voqpxZbtT85+v b6tYHPyHY9bdUBIYr4gSwFzJsJmgciOu0x0n1kjGpjPTZxWd15f1SCwEXuWMNxEg7cyoVntzB3HhL eovHIa4Domj/p5oHRS544LIQdgCHged7DBSu+eQYi+VOKJBMVdHqfULt0ZgdTyth1HzVZI9vCf73y b8vTHkHAKTB9x9nR9wuqDnYGLl27Naq/12gxFK13WTr+OUEkn5ZxOhReFLVaJ8pRxscazOLxPzl0c KUeMmiYxRZ4Y2EbbcQHqEmMWeLfIKALbc0LIiS9P12Mt1U9ruMShMksCXFuoOauUKv5NP4J+bos7W UMpOhatA==; Received: by zero.zsh.org with local id 1pZOMY-000BKu-1l; Tue, 07 Mar 2023 03:51:42 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f44.google.com) smtp.remote-ip=209.85.208.44; 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-ed1-f44.google.com ([209.85.208.44]:38546) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pZOMH-000B2O-4B; Tue, 07 Mar 2023 03:51:25 +0000 Received: by mail-ed1-f44.google.com with SMTP id cw28so47270097edb.5 for ; Mon, 06 Mar 2023 19:51:24 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; t=1678161084; h=content-transfer-encoding:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=u8Iw8a/P1oypHuRyak80+cCKhSW5Swu4iaL47j2NA3c=; b=CnO5oSJ11xgp4nh/GKJQ22yvzh4eci3CV9yw/ZTGLNCHl0R1gdL6x4ghScoCleBumC S078wJmrlx04TjBsMEprGM3YBsBPhtOs0pKfwPE1ZWa4YxIooBNW1HXPqhGtnNI/+dW2 4y2rL2QS84ditODSmG0T7Ix/518qxKNgqh+UXmgiGJuN/sDuVCRh21Xs3kPQR20t0KA4 9DScyXF2+xOyEJrry/sFE67fO95USDYTDNNVAUuqSNMIWrR7rkuAA4UEisWPC6yJo0lD pE1bSr9e1NQKjEc5U3n4tXIvzlWye2y83n+BlWENVwBDb8Ie1G8U5TXYaXy0jyc54oJk SZ8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678161084; h=content-transfer-encoding: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=u8Iw8a/P1oypHuRyak80+cCKhSW5Swu4iaL47j2NA3c=; b=XlbxBGUdxLl3UQocFmE8/wMmwjZr97yUufE+sBTEL06zaUHowHLW78Qjl6kV7wo2t3 +PCc/IZVmtkiOlWQnexdBvXYjNxBi84bzvpzTXDPN9hzqTOFrh3i3kM+bjx8hyPrdizd 7WzelvllYyeKZ6e3TsJvdJXv8vDmlNqTZPs/ldptB044u9OmIzI2azUZ+z+cQQhL+xOC oJ0kuRv0/nLPQxu7j+VIgvDyxzqukYbkbxnA0kDdnWvvlFzNSToWg72WRr+ModDJBs+C bkjeIFfVFa9LboF1/xxX+APTUROH9rw8e2wrq2dkmO0r1xni8tFZgrQo7iF+peWvoTBf WhZg== X-Gm-Message-State: AO0yUKVws6LHfHXuW6GQZT0YlUCWJBZODRnEVab0PdOvMzNoLTYW/AFQ lkJzaLme2LzPDQRhpUS8+5kysyk+dV96qB3HjQ9UlhpeQblVJ2+v X-Google-Smtp-Source: AK7set9Oo3ezxoG9+cSKYzOik3wWFuYn93AaTbgizqtFH3AB+CK7QULhOl6Ett128PuUKa7SpFe/emmZ+GMszs+EhtI= X-Received: by 2002:a50:c04b:0:b0:4ad:4c0:c4fb with SMTP id u11-20020a50c04b000000b004ad04c0c4fbmr7316641edd.3.1678161084245; Mon, 06 Mar 2023 19:51:24 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Mon, 6 Mar 2023 19:51:13 -0800 Message-ID: Subject: Re: [PATCH] Add ${!nameref} in ksh emulation and ${(!)nameref} natively To: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51526 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: I'm going to go ahead and commit this (with a typo fix) because the subsequent patch includes bug fixes. If there's an objection to ${(!)...} it can be undone later. On Sun, Mar 5, 2023 at 3:27=E2=80=AFPM Bart Schaefer wrote: > > As discussed in workers/51495 and referrers, this implements expanding > a named reference to the name of its referent rather than the value. > > Included are expanded comments documenting other ways that ${!...} is > interpreted in bash, for us to potentially follow in the future. > > No doc yet, as this may still be controversial?