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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21169 invoked from network); 23 Jan 2023 10:38:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Jan 2023 10:38:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674470298; b=A9gZMrp5BWbDaZSbgWgj4f2//EuGoWQmlvu3RdxkHbReG4tyZmy3kS++xQ8VgJ1KVR36xN0W84 0YSITYaMAS6867IKmP4/4Doi6SPst/fs1pHmuRVS6RRmV5ILlbDdG0fiNkJT29RDuJZc6DYXgU MVtwRLYbxW5Z5UIGD2d2DPKFtP23YBGx6mKQAoil3l4rqixbdlU8k2ERpd6FILwamiztSm6ME/ lQJOjEsnfRWkruiWE4Oh0ILn69gs2miSIP5nG6xpIxyCSmloxB/KiPPo2fWlctlZHBSy2IxQ/G Z/rbPYHhzL+vVIIwyo7XQs3Lkb6aSE71vzrxn2sSbCYzDA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lf1-f52.google.com) smtp.remote-ip=209.85.167.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1674470298; bh=0OsuuOJfA5Zm9GtX6GrZAb/cs4XguFpzWTmp0DIl63k=; 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=UFrXOIuY0Kna/kDYJunueSg+kGgSMIrCujHrnMo9MUWVshf2hjLCxP+xoEE4kTvWOdFNQD9kz7 eablLj6V+efgNW00IJ8LIuN/UO33NU527bmNzIIEB+Aiqz6Pz1ROfEsWVWJMwa1IjydeKwqbO1 AiCrK84EDcOKG9Mw0o4mk2lAyYYyoBcHwD+jydSzOvwbJT3sR+GvGlhO7Q1zGPQpw/01+v8njJ gsyOZ05OGWXuljbRqxcLKGm+Mfj0wyCChNDV76UWcpAirJx1v2DLW3+QbOoijhMa0jwwlUqv6B cFC9YXNuE8e6a5VZwo7u6BhwRAZCrDzf4PfAb1jWsxnUQg==; 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: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=l48e8tnkLVx+RbUbpQpGh38dxTtpito1Zx34EyJB4xs=; b=Yjl3NhSLqVyIzNjJXguwd649CU I+YvKyAoiSkokq290vnUHT8p8T9TiqJL8oTA1kPDg+mEb3rH/JveFWEulrtf/i/ktsHSzm1FNKeFn Sm0DjevGH1KLVSEoSz+WAX8CWISEJRBMttAjV7/AnupN8JVdTBtwblf7VI6Zw/n19y8w5Jg1R23rP j4CgJmkm5ooD/HfyxtPFT99ifA9KAW3IRg0AVjrGU9VkE7IjPP/QBd2GxPLoeLqHoyxEfiKYShvrm K8E7lqhhMIU0fjjWdGFWJhssgViy2MUpiBZd9PBu/cPN4K9vpkPE616AslTSiRqIx4CTRgZYpGkd6 6RnyOtxw==; Received: by zero.zsh.org with local id 1pJuDP-000ECC-W8; Mon, 23 Jan 2023 10:38:16 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lf1-f52.google.com) smtp.remote-ip=209.85.167.52; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lf1-f52.google.com ([209.85.167.52]:35435) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pJuCr-000DUc-73; Mon, 23 Jan 2023 10:37:41 +0000 Received: by mail-lf1-f52.google.com with SMTP id b3so17499389lfv.2 for ; Mon, 23 Jan 2023 02:37:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=l48e8tnkLVx+RbUbpQpGh38dxTtpito1Zx34EyJB4xs=; b=CzBt75MSDk0ia1e4lR1G81A96lNIj9f9d5rr7GT9qPJlPKN5pGz8kRqxOcB93vcPhy vSF40bY0/Qtv2MWIe9wFU5ZOAvGgbQzbjzt7LvZO9+TIKyWisj/BkLRC70VaXFnpBRQu SPTFsYJbctB7lrEMH5MQ/4qR0D8eV3Hnnx7Zz1UUeJoRWnuOafYRV5mTgLflIxgNm77V JjWVGwpixtRQwS8nS4Ae5zbVqvTzH6hgvHRI97g3K0dzkK84uHQgfittIAVt6WBisr1O X3qReGOx23R7V7dOGI0ThJAyg92qYSYf+BsYLPStpRai9M1WAFmkf547xXBGmXZeULob bkCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc: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=l48e8tnkLVx+RbUbpQpGh38dxTtpito1Zx34EyJB4xs=; b=fJsOmi+MIliJiR1yIPGOF2rjyb7hsK/26m1KhE/5Cq7WI2uNbtwUQTxH0VlASBNOEL Jg6KAwqcSO4lTKGJqrHPMf/si9qxXW8csD77A5A7aUp1sRf4aNUCfPHEN/BxoIOecAQ5 8uskoKAjb80t028kWDWbMKf2qFOg1zYNyC/nCl5cEk4SxOeNixebc+5wJHZjygwgBvHK +ypxkEI6gf3tF7iVjfRuVuFzEfEKAnR0v3NwwDgagcgNzIOIHzJqr6hm7lhqRN6Bhyyw /HPgGvU8NkIXfD5V6gxwXEXxkDIcbpF1x9Y7ZjPzgik6h8u9RBeg1UWhAnnJrHmHY3e0 Y+KQ== X-Gm-Message-State: AFqh2kocvnY5mdWomBPDLiMBzJoXHS0cl8YF3hGp59A0gvjSp73Z1Xpj 4Ccvl2HjuCluaImGHF3jQYfDTyrMH1RPK2o6efY1d7UnVLk= X-Google-Smtp-Source: AMrXdXvsO7pPuy72hAWe28+nbrpIvVn/RcV/cDyc48wgbqix8Zq1VnkGHugHI6ZBseIf1qH8b/T1CrT95jeGqw8YawY= X-Received: by 2002:a05:6512:78e:b0:4cc:7063:375e with SMTP id x14-20020a056512078e00b004cc7063375emr977290lfr.104.1674470258919; Mon, 23 Jan 2023 02:37:38 -0800 (PST) MIME-Version: 1.0 References: <0dc71450-d082-93da-52f8-d4e6b97199af@eastlink.ca> <3b93f68e-d090-15c0-c15e-a3d09d702f76@eastlink.ca> <07323898-9985-4e9f-8b54-c08fd8510fe8@app.fastmail.com> <08102bc6-b331-504f-fcd5-28fa3cdb0e2f@eastlink.ca> <02527b62-5c57-9489-d0c1-10f155145c0a@eastlink.ca> In-Reply-To: <02527b62-5c57-9489-d0c1-10f155145c0a@eastlink.ca> From: Roman Perepelitsa Date: Mon, 23 Jan 2023 11:37:25 +0100 Message-ID: Subject: Re: path PATH To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28739 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: On Sun, Jan 22, 2023 at 11:45 PM Ray Andrews wrote: > > On 2023-01-22 13:11, Bart Schaefer wrote: > > > That's obviously not true, or it would not have been possible to write > > describe-params. > > [...] > > (BTW, haven't run your version yet, waiting for Roman to sign off on it, > but it will only get better.) Me to sign off on Bart's code? Ha-ha :) I started using zsh in 2019 while Bart has been a contributor since the previous century. When Bart and I disagree, it would be wise to go with his opinion by default. By the way, one thing bothers me about tied parameters. Is there really no way (other than parsing the output of `typeset -p`) to retrieve the name of the tied counterpart? Here's what I mean: % typeset -T FOO foo % tied-counterpart FOO foo % tied-counterpart foo FOO How do you implement `tied-counterpart` that behaves as in the (imaginary) transcript above? Now that I think of it, there are a few more parameter properties that aren't exposed through anything other than `typeset -p`. % typeset -i8 -R10 foo % typeset -p foo typeset -i8 -R10 foo=0 % print -r -- ${(t)foo} integer-right_blanks The numbers 8 and 10 cannot be retried from anywhere, right? There is also at least one case where `typeset -p` is lossy. % typeset -F2 foo % typeset -p foo typeset -F foo=0.00 Note that the output is missing "2". Is this intended? Roman.