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 21202 invoked from network); 21 Jan 2023 21:18:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Jan 2023 21:18:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1674335904; b=FqUtMMqvqgVFbY7+G6jhLZWONZaDsNCVIe3AHp/HMLmIhmp/D9WCk0sLBXE95ZAcWCvs5G2/pf 1N4/NJfvO9RlvHSq8BNSSPARhz255H/vrjCDd8HYA1Vv8N4T7lSuzsZeY6u4qApOdhx/f9zqd4 fYWuzo4Ln+nT+6KVogCTXzB3Kmww5LMEoJPGadKVLDmsYleIe6HWKbOuK+uutBRUx0jqbQ94oR 4i+y9lyE1occYpS4b/5wrgmyJ7l0LESAxqwQBt/OZcfpl0mM31EPfzw7JJVGM8odCjxjvRgt1G 5Ks8S/mrEd4cvkVTCmm/Cyj6BSZM/GBJqOszt88W8q/ZYQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-lj1-f169.google.com) smtp.remote-ip=209.85.208.169; 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=1674335904; bh=EgYIRx0rDckFTZMZ67+4d0wEhDA6mMAEQJt7UmjxZkw=; 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=bUQXzPTmuScmptdPGBEuhG9b/NWbztu3olZ+uYWQHs3GVOiIVB/CHdTYryiwjkxOIfTfpleDV3 lBGaD3gvUNk7v9XU9qLmzhSFhtcg5NrQV97ILnfvYkCeaepyzk82xN7rp4o/rzkaNPrGURkzmp +Sano0DkwBUl5R22srdJoWr8m71zDJUJgbdXM/KNKaqwPxX/6wu/1ckW+PQ4EwOfj7ywbn0LuM Mi8iyC2llBaU0JTVJX9Aprwlzdwzw+360nCLl1aVIQMasSUITYAF7YlTVdeiBhVm+3Z+s2+y65 pFgxn8DBmiz7Jce+Q1oewSPC6vmj0oX8G4D65VtKx/FJig==; 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=rXzG+lm1c9CL2g2u3NAHPr0iBzO9ffvF99xVaMU3lHA=; b=UfuhYrTnLmO2KYZ/3N56cc5YtX yQRU3Kl+sDXuAt/AasDM01PSlqKx198pjkRxw30QwEvWNTZ1QXcdNomDwKjtm9lJ5lyZVfUHp/PJv YJOx5wlUHFk90WbxYYlCBuTXYdYOLr7NVIg7Zcez9WBJso2AbWpW4UFm88EkaIKFqP7AQMurj2xiE CjSLfaQsFw7DTWYVHYDWxb6TTC2z7PmThcyWwd6JYOwlJg0vdzYxkoxBb5sxYsGJYYV084Yovm0nO jUXkLTQlylUeCpAVkuCTVkiQHINy3ubtQF3OYBloJ5j1LXnj5z3Lh8OFhUkdeQuE0M/OlTJZAFavO XNSZLy1Q==; Received: by zero.zsh.org with local id 1pJLFn-000Lyt-KG; Sat, 21 Jan 2023 21:18:23 +0000 Authentication-Results: zsh.org; iprev=pass (mail-lj1-f169.google.com) smtp.remote-ip=209.85.208.169; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-lj1-f169.google.com ([209.85.208.169]:43903) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pJL9N-000L6D-Vz; Sat, 21 Jan 2023 21:11:46 +0000 Received: by mail-lj1-f169.google.com with SMTP id g14so9252320ljh.10 for ; Sat, 21 Jan 2023 13:11:45 -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=rXzG+lm1c9CL2g2u3NAHPr0iBzO9ffvF99xVaMU3lHA=; b=bdqnt4Ibtcz2CGal4Yjo3FvQfPLLdYj1Jwe4J27dew5DWEqA6ksn3jUrCeJeNHuKhA sIGBwfRXqzGw9e8r7nb8e+LAJaMXusO4JJGHtSMUMpnSBRZ7qPFwLpbsye1meDleiIJU fcRkFnVLsN9qQv4/KhIPT5mwi69PfyUzlA2PjZLqKyPJ40xbc7D0gEAeU27liD3GbJmo pafVi6ZtS6YHqKn2srdiOMTCfMisPQKuml/dQJotGsZ1pyB0izYpbuB69kAhvJfPOMN6 t7AZ9qnJjSpUAnEFP9xFLukSPdpn1IpafAIfDEIhOrdo/92Z9gqOKqDB1JQGbz238gkK IpLQ== 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=rXzG+lm1c9CL2g2u3NAHPr0iBzO9ffvF99xVaMU3lHA=; b=4Zjn0p1+P32jUllHUCFZJJ/MzIYoWmQ6cHd+Uv2H22b58jNbCl2ioi4/8oatTgTqMm PrV/26q4oaD0OHB6QY2bPQXef2cKuO9r+Q2oiLBFSWEoX1+E5GrfhlX1mIXl/tN/LF26 e3CFxPYemt8pAdE2VWWQOcd+Crvx23fKlyRm9JteLY6t65qE2v2MDLoNX338y8+Lh9Ep PF4dm7Jlx2937eDoCfW72KyqdBsYE6JkUT7VvCyrHkjPLCKQ+CZySCF7gIMXaYPAPk0L W+URvoTI5kG9rvLxVBDcX4WUuIoWEgQoqJfSzW1ApI+D7GNtTkC4/2l6BFglPLmVZEO9 jGJQ== X-Gm-Message-State: AFqh2kp2+SJCfQFsuj332gAD1zQeyMFoTAeEcTp+PT4L3WWsZ4j6azbB wYt8Yi4ByoT8HricuhS0BLFRonwLBtK5s4UTUjY= X-Google-Smtp-Source: AMrXdXtlDHZVCRC8PCX6z347MKfyRfjro7BwNC24bbRh+jQGOmFFmxOiQzV+zeYOUxNhFbymZ9xHoIiJ1ioYNoZudi8= X-Received: by 2002:a2e:3a08:0:b0:281:3027:a47e with SMTP id h8-20020a2e3a08000000b002813027a47emr956393lja.100.1674335505128; Sat, 21 Jan 2023 13:11:45 -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> <529a4c87-7df3-c383-9ead-4fd2962095bd@eastlink.ca> In-Reply-To: <529a4c87-7df3-c383-9ead-4fd2962095bd@eastlink.ca> From: Roman Perepelitsa Date: Sat, 21 Jan 2023 22:11:33 +0100 Message-ID: Subject: Re: path PATH To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28705 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 Sat, Jan 21, 2023 at 9:51 PM Ray Andrews wrote: > > On 2023-01-21 11:09, Roman Perepelitsa wrote: > > Is the number 42 "in fact" 8#52? > Yes, it most certainly is -- in base 8, which is explicit. It's a different representation for the same thing, isn't it? Neither is the real thing or the actual value. The same goes for "A", "\x41" and "\101". These are different representations for the same object, with none being the object itself. Now, when `typeset -p` prints the value of a parameter, it has to choose some representations and there is no obvious choice, for no representation is "the true one". In this case it so happens that the representation for a tied parameter chosen by `typeset -p` is the array's elements, while you would prefer to see a different representation -- that of the scalar. Whenever you simply need to know what a parameter is, any representation will suffice and so you use `typeset -p`. When you need to see a specific representation, you should not use `typeset -p` and instead arrange for your preferred representation to be produced explicitly. In this case that could be: print -r -- "PATH=${(qqq)PATH}" Or maybe you'll prefer a different quoting scheme. In any case, if you want a specific representation, ask for that explicitly. Roman.