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 16070 invoked from network); 22 Jan 2023 20:13:36 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 22 Jan 2023 20:13:36 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674418416; b=rqIsS9GkfR5/Tg6lFoLXrOg+QPqdpFZldl6n7fJjtfyCeCaDJSh8UHZfAckR46QS0haenz4fpC BGrJMYg+qW1oQt8rmVolbe31Yh6F79jHoYcwt9MaBZYKiKmBn3ktPG1M8Dn3Yf8z+htPszP1jf 1ifCZQ/dh3I4N/niBKfFKXQYHj/xdI1VEuyvGzwljJVl7pZeLPo8itsB8YgBkZDOchc6nFjbib r8OFm1pI00tO3DARPruDlbryS5w8M428wQiwC3GgHdxGpY5rBzNObY/cS0/hF2sDK2rp/SdJK6 Qkv+ss2490RZbJRqEE/ZZKXxZ2PQ6aU6wwDCMHmjXrDDAw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; 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=1674418416; bh=hv/ctLakq8ReijPGrwzaCHSY+IK0JeEusislphg0BKM=; 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=PSlGJA0+Da8EOfkec5bpD0YwIgj7ekIUyiR4AWRmm4CmXbssmQz5uPY4N7+BbbZ0Eoji/6BS0b FOM3GCz1Sm7FI2Rr+FbC9f0D6avB74x73vr0sEw5F31EB5/Zdy/aYDuON3PR0oz13UaPcHq5aF Jmg8Hf9JsAUE8SmbMukyHw1u+ULu6nqf8xhzH6hI4IYshn0EvD4MnmNmkt9WJoYPdx0GjBndkG Fz/ylaLzoApsDLC5eA0sCVxT4pXdzVBJ+5sn1DSXXNPQhbKIpQhNxTz1S18zmhJ8z15ZIWa2yP Bs1Gj+KUauMUhyHPMdX3xXCXqXRcg1NPyx/9dAu36IbjpA==; 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=H8tb84RX1Ls60wUq0AzKwE4CNtcXSBKIFqnWXjz1vF0=; b=f1+jxPpOnrWhn+fThs+T9JaiXq 9KkdKVB1fmPoZ/jU9qyi9gHlgCdtHdHyVNiC4aNSJRaxREvqcm64MXEim69Hhpj4KjX7yqto4jYf5 nWPVuvTfvljmurJeRP29LJgInvQ3pUjS39fzRA88VtvRD2qOdM8UBsPKQogKqXXsjwdRu8eIgYfrM 3Vf9lv9lAZb79Dv+oZmvX22msTXaUDeAFP87Vf3/Zcjfa6AkGNoyUaehl1fljb+SxWgbesVxZ5qT/ GuGK2rXzXm5pkCAhMAiS4kdfQ+RxL6HTZcqUgIFd7HMjKie6zA+XyHlfouMlht+CiAUycZ4E7IFVa h95O2rpg==; Received: by zero.zsh.org with local id 1pJgid-000LQM-RS; Sun, 22 Jan 2023 20:13:35 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f51.google.com) smtp.remote-ip=209.85.218.51; 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-f51.google.com ([209.85.218.51]:39715) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pJgYz-000IxD-Vj; Sun, 22 Jan 2023 20:03:38 +0000 Received: by mail-ej1-f51.google.com with SMTP id v6so25780010ejg.6 for ; Sun, 22 Jan 2023 12:03:37 -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=H8tb84RX1Ls60wUq0AzKwE4CNtcXSBKIFqnWXjz1vF0=; b=Kn+UhF5f+8IK2v00ht7KzZn44Prruyfdl5EsSB4Nm0KcM6v2gDN10k0wZpQAW81fS1 AfqAiaUj+4tfc18nm2yv4ePvQztKM5iRspJkuB0pPtuLJBPax2QzaF3B4utGGTYk+fE7 HYExu/3vqcEzIH+yZRJuyOXtFwc1NvaVpmc9pGQVuCcMNOPzIhKJAdPImmMAVEtY0q6P X3jvzihTxgtF4YqeiJG5/HzBjkrleLAR/2OBWlDNXRV/k2gV816EANNAYayRCuwqnhw4 ag4dT12QRP3P7JCUiHE+zJEtYYIbqas1l1Zp8084NGsDiaC6Yyj96hmL1ci8VIhx2oMb ZfQg== 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=H8tb84RX1Ls60wUq0AzKwE4CNtcXSBKIFqnWXjz1vF0=; b=2HD1btaoGtMXi41YlPC4/wL3DHmXaIFfrz2vco3F4wdEI5AmMHYdBku/IuP7S5P76s QG9vdfYmKRm9SWGUVhE+UDyiuTgwmmukKk/lE/GdUPWFFlAN7VbAK0Ph03VjsvMgs97h vY6cyObGVnhGl2rYTzII8vUMSG+0byCEG/gCp1Tj4N3dCKjtScVQHIYtPWNZiG4ejosC Ds6fc6eJMWNdNpoBwZiuYrEmdnTNBJrD8jFvtRNxtJQh9PwX2BeEQATMCnSYMmZjKtfQ H/7rxlMYuNIyUlTdWJxTnlj0NBA/84O2iTmbj/z0+xY6fwVyStsK8OMTY+vn+NnArGtL +AkA== X-Gm-Message-State: AFqh2kozN2FpY00ZHpyFKwDSlUnn1kDOtTYYpc7sf1SgcU7s3aU+i2mm HreTqEA9QSrSOt0TcSTUod9MwkBw0JzqmEhI7Qcxnrus0s8EKx9g X-Google-Smtp-Source: AMrXdXt+atYFkZV/3FzBoeWhW+x+8XwFpHBI5pP94QQB5TqHo3HOYR+HqkuaByVL8clA/Q9khbNybN5uH8IgukXHqqs= X-Received: by 2002:a17:906:2e98:b0:85b:be55:7272 with SMTP id o24-20020a1709062e9800b0085bbe557272mr2372568eji.585.1674417817746; Sun, 22 Jan 2023 12:03:37 -0800 (PST) MIME-Version: 1.0 References: <0dc71450-d082-93da-52f8-d4e6b97199af@eastlink.ca> <378fcf6a-edb0-885b-3d08-9ebee33bb911@eastlink.ca> <3885c637-c56f-2bb7-9a89-02009254ed75@eastlink.ca> <3b93f68e-d090-15c0-c15e-a3d09d702f76@eastlink.ca> <07323898-9985-4e9f-8b54-c08fd8510fe8@app.fastmail.com> <08102bc6-b331-504f-fcd5-28fa3cdb0e2f@eastlink.ca> In-Reply-To: From: Bart Schaefer Date: Sun, 22 Jan 2023 12:03:26 -0800 Message-ID: Subject: Re: path PATH To: Roman Perepelitsa Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28720 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:56 AM Roman Perepelitsa wrote: > > On Sun, Jan 22, 2023 at 8:51 PM Bart Schaefer wrote: > > > > You can get this by combining -p and -m, which I think is one reason > > why -m is different. > > It's still weird. I would accept this reasoning if `typeset path` > produced the same output as `typeset -m path` but it doesn't. Well, the other reason is that "typeset -m" pre-dates "typeset -p" and had existing expected behavior. > I don't know. I said it should be (b) because it would be correct by > design while (q) could only be correct by coincidence. Fiddling with this and some patterns also brought up another question: % describe-params 0 scalar-special 0=describe-params Would it be better to use POSIX_ARGZERO to reveal the name of the shell itself? There's no way from inside a function to grab $0 from the caller unless the caller itself asserts NO_FUNCTION_ARGZERO.