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 29714 invoked from network); 23 Jan 2023 16:30:04 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 23 Jan 2023 16:30:04 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674491404; b=rV1Hjw2rzj5oYrmo+i9BW56jIuYxacjUsK7JkPwVICI37VxcU/WKkSA3qyVFeuj1lSUiC9cPck fMbu0RFNRP6RwI2KGvMqrUAuyLhMYLfqw2JmZIRo7lQTQOTXhGNpwkj1NrJQCSL2RTy8IwVCzb 8GiY7e/c9Fupodr9h/thfS1aXvx2H+7VOSOLfKk6QARF4GCxXf3eopDsgbHf3OblfwzS3o/LVI Ms4fTuu7OZAB0XHF8rO5MRnATMsgNGWdoKCGewT+8UYsZzQInaeZP2RBTE/fUSCvlBlRocmS4X K2/EjL2UnIOcwkeCAN1VPllxYwLfGHhaqo2zKA/l6flB5g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ed1-f45.google.com) smtp.remote-ip=209.85.208.45; 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=1674491404; bh=tM4wfkolrbW9LShmJlQOIEwd2xFLlxLTY3EAKhnycbU=; 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=pCQvmVSJo2zogeg+mKPjdHTmXHd7YA4nTIVm+TQQUxLcfRq06lbGI15nRjezpG1IBLbZnriU7T uexgh0jLp0mYLBcz4YrwZSOxHPMrnMUk34pfn9MOouSrC6xTIJUHNnBa/zrTveWL0zq87kNHFJ 4SnJsuHfb5oBBiPd9QB8kb71ht5i8nijSE+t0nzqS/8YZIa4z1yz3KQe2zkDUmlVn+Hhx4DSQm dYIxjaZcABcY0+2umwX6y43xcZcw731Z7hBT+9/t5tQca7O8fKG74Z+w81YOOKzgDftEdHplru SYUI6+n4PaNSq1ItMOaCw6UZCza24xcMM4EQ2vdIkAaqoA==; 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=TmwfEmtGTPdw+qKJth5hiD5sAz3Io196KdWmTPrvrbs=; b=CfOUVAj/p67nSY8UIsAlW+jK5E TUBMGpgpmmwmm9DquhSRP5KjNG/2Z7FL2u/DE7NRzIBMecPAXzHfjnwR6hl+LUUmn1mJS5kAJezlB sYpkWgANWeQbgVXOTMdpYsBOtMwtMjBU6XKSIWyjVoC7rDqx7aj5xoa66o4OZ8kJXHhtXNilBjBoh Dzp4IEiWW+/LwiwAZrLExX6Hxd3fpNTwE5cv/8s0boz3CiqDvj/HMV2SeCPFfyCKrh1IszR5rPZAq SUbuEwBvVmzG9cuoY4+ZuSCHzkDVlqTL2zMyha/e/885LDmm/4pIvLzHu0Ex27RVW2Q+TP/z9BlH8 3tgh4Uaw==; Received: by zero.zsh.org with local id 1pJzhs-0009xx-Bc; Mon, 23 Jan 2023 16:30:04 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ed1-f45.google.com) smtp.remote-ip=209.85.208.45; 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-f45.google.com ([209.85.208.45]:42932) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pJzer-0009An-MD; Mon, 23 Jan 2023 16:26:58 +0000 Received: by mail-ed1-f45.google.com with SMTP id v30so15212166edb.9 for ; Mon, 23 Jan 2023 08:26:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.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=TmwfEmtGTPdw+qKJth5hiD5sAz3Io196KdWmTPrvrbs=; b=pidViShyV/iFRGPZRRppq4/LDQHRrlHQkImoTkCnjCmnoZHo5T/cGqy1h011hZYcgm hKZo3vcLc3o/V910jiBzHuZZXH+jVgIDAgGoG0DW9EzUmeb7x2omEXVscdKvkHwDHwtc /AqkmEia1TvrzcKse9nUQ0t8HqgmhlPfBDZ+RgF/CVEQyDWT7yyoKFQ7FXuTSgXTTM/r aZAuNptu1H6H6nuJrFpHuZpQpY4OTrPLXrQrAsa1nqJhV/mPSTZ+gTV7UdbqVFr7rU2Y dzh8ro0R95uizNaGxjFQEuLSWPrpqGOZSzyPxI8cOVjyhM8vRBWubpn6gRnUL+92XdJl LOyg== 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=TmwfEmtGTPdw+qKJth5hiD5sAz3Io196KdWmTPrvrbs=; b=QwaHykzVit4QLpMO9y7P7iptssBWeXy8WeoA/qGb+gVxMxikJgHsrW+jIyAfWZ899J hEyNDZUiBb344peSeNNTRtV1FTmODY7FVCt5UOKPJW8oAxLb4XagdJaTL5Ck83J60ALF qM8jKiRIanOqgMatN/sS+Bw+OyxghzeaiRK6lyQY69ez8iJP3vQxM6xMmbAdlsBEH2JL muSU8QDI5+nLqfWeoNf3Iko/ryGARUEHW5gDYTHghX1ZkeucvguIEBl3Xy7T3dv5IsNG nOoG8lN8aV32s8pWOf0XUwNip4RJpnCg7TGVBiPxnL7UfkaHhi2tvt1nGMPx5VnC1rZE W/yQ== X-Gm-Message-State: AFqh2krCdKa7r2YbxAYM7rQCG1m6aI03E2VL4hZCSUe78NCAJbnUjzjB bgCwMeRHrXh5w8V8BXYdHV7cZcDbzoZ666hUMZWiJw== X-Google-Smtp-Source: AMrXdXtsv49IXDnSX6Z0WvvPKaqxDmzUYaXKoVcOvUvVdZ4sY5ruhQUdZbIjOhMSRv8JpcIbPGbGtpZOdr8YwQrr9ZY= X-Received: by 2002:a05:6402:5024:b0:499:d374:4523 with SMTP id p36-20020a056402502400b00499d3744523mr3245339eda.230.1674491217263; Mon, 23 Jan 2023 08:26:57 -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: From: Bart Schaefer Date: Mon, 23 Jan 2023 08:26:45 -0800 Message-ID: Subject: Re: path PATH To: Roman Perepelitsa Cc: Ray Andrews , zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28750 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 Mon, Jan 23, 2023 at 2:37 AM Roman Perepelitsa wrote: > > 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. On the other hand, that means there's a lot of stuff I've forgotten that's fresh in your memory, and things I might take for granted that you dig into. > 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? % typeset +m path array tied PATH path This DOES represent something that you can't get without "typeset", and it's not exceptionally well documented: Except when assignments are made with NAME=VALUE, using +m forces the matching parameters and their attributes to be printed, even inside a function. Note that -m is ignored if no patterns are given, so 'typeset -m' displays attributes but 'typeset -a +m' does not. Ordinary scalar string parameters have no attributes, so for those +m prints only the names. > 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 +m foo integer 8 right justified 10 foo > % typeset -F2 foo > % typeset -p foo > typeset -F foo=0.00 > > Note that the output is missing "2". Is this intended? Almost certainly not. % typeset +m foo float foo