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 840 invoked from network); 1 Nov 2022 00:32:21 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Nov 2022 00:32:21 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1667262741; b=ZTl/8/7F+k2vrWsRNzEGbojO9KHqVHdaZkAzam2jQm8Rs2TeSB8F7uGS/Mg2k44W/jTJtolMdN HQsP70eJ37I1iyhlCjAuLN7wAUbGaeH3TFhe1o2ZW8KKxaitd5txCjSzLlfloDmXDM2L0l4gYC VIg/+Y7qzYarTtbH+tidW1k3DHKMgNRxyYsTqvxIBF8shSG5+mLaTx/O3XGzAE+mLtysaVY/iq WJAlrmeibHS0OfwSgaRYs76Lzf0yLDLlzcAGxkwjA3EKTDLsCX+Rc1BlpW8njpYsvrcIPweQQE fZFbfuaxW1uNC7K1/BkCKLSDOQru034zBozK69xIxYkKrw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f48.google.com) smtp.remote-ip=209.85.218.48; 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=1667262741; bh=o4oZCyzCZv375ZKTCVG9E+0owG29Vdf8NObWxC0sais=; 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=Y++0CPEId7BDryGfMfzBJ72+YonsaxJnkJurlG3jb3uE3dXwcZMkFEhSc0BGkleknNVuh9Q6Ih shdmScZssYO+3TiaZGgOwv8oQgqq3her+5zehmZH4bBGy9dPnBJU0GUL1hpgn0IGK3o4ZwHmdo U4FyCuyEEXHfMZB+rO7WEvlb55s5adTw3OFJAilUuFFW6qpje8cIb9X3FntAxQZOqhQghrz3DP G5a5rHETTPjNXY6e602y479gx4C2olm5WaAkGqWHS0TPABdOtZkdBE7k+od22PiE0adN8bRQtU 2wdleF2Ep0NMasfjXhVUnv/Hp/+GsHRMR2ieznbBztKqBg==; 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=gqRvRZ/G/ilqSx2wGLnMxCSwzesCcmttvX04apVzb5o=; b=kkK6IviZ+MJAps9FE6yOGKshix FkHAM+NC2TOWK7bbHXVjAKPoHl71uaxCSZIlEpGIqrjzPB/MzpAY1N6ol0Vx1F6ADTlwib/9ipZma Yr7SEvoqpu49nbrmUiuiZGdVQvFjcO+5gYMF1ItkVrWKnA0R2qHQNzOtl716MUp2wdRgjVrJ+m9hx TIlXRspg0l12mkBRG8qdUmezBpZqGoyXak8F9nYfu7p2WX4LAeMF2YxUWhxsndkL082zOWHDS0sps URhEdsFwdkxiWRbdJ54N2WR2q4oXesuy+M4TsVMC30PlTg1BVkHRdRzLqQTbUwG9s00XR9NWsjPwy F/6zRnEg==; Received: by zero.zsh.org with local id 1opfCV-000329-VO; Tue, 01 Nov 2022 00:32:19 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f48.google.com) smtp.remote-ip=209.85.218.48; 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-f48.google.com ([209.85.218.48]:41899) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1opfBm-0002IX-ET; Tue, 01 Nov 2022 00:31:35 +0000 Received: by mail-ej1-f48.google.com with SMTP id t25so33504201ejb.8 for ; Mon, 31 Oct 2022 17:31:34 -0700 (PDT) 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=gqRvRZ/G/ilqSx2wGLnMxCSwzesCcmttvX04apVzb5o=; b=zW0k9Smre69h5EbsKZG99/F3X7YvP6gaQMlkoENihLWm1LgVNT0SW++YltEFTRVPY1 IBWw1r4p/7LQ3HFAI7KBFOQG4pa+ctxxnfK110PKLu3QCt40tXhrEWEGgJR5l3oI+8Oo Xly6jVgyVPJjY4Sx6FMtIsmQyC5xDe1QEUxrElcHG27XBgyFqSmJrZCrfe9eUN3tm+19 kBqR+ILviRboFyOgHtoIuV/CdtYpDQ4IcG13hCm7Qbz+SywnzQW341wDWOriQMnYwUdM 8OfAbOZE2wqnw2zxWOrRfKv0Qm3r364+E4KgSOxlZsz0WxFmlu9n0A79UlCt48A85vHx z5eA== 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=gqRvRZ/G/ilqSx2wGLnMxCSwzesCcmttvX04apVzb5o=; b=tVXas9iTsRmO4AFeuGcAAz6gcYhyhZEiI+d1adgHcFL+/UHNGPHdesIlXFIhl9xx3G jmeIExALarT2it/4VkTUB3/MAJqRscUztGoDYj0HQk0m1qPGJPgTpS31EiOV8KvyeF+6 KAOEQpe8+Jy7eBbnw8RM4vQFpj1I1MdqdqNuHO6qcSwJQHEPXB3wU4PK40qn3afXox8S cqzfKPORqqoIY/gHvX9LDXsTFtuHY4czAB/1hcud0N3ffDdRgu+gAlfd+RCYY87fYNIW rsOfzIvCrHkz44q1BDalA4TgZv4fWZ/fzkuKxlWbmpdt+QjP35IO7w+XtoCm/ab2AU5E 4CBg== X-Gm-Message-State: ACrzQf2zPdGIpIe3p//IKrGTimpJf/ekZyiR9X6reEZMiibSjU6jCJS5 pQP7E0T0NqnmdQsqHqQsX/Phhd3ccofn3n5l0qP+oA== X-Google-Smtp-Source: AMsMyM4IsRRrJ0dBzTWDo1YH61EYc+Lo4pz5PAaniS2mWZ0Sx9L6A3ef9R+j3VJ4oRtozw9EXf4oW4uRhcCtaNn7+co= X-Received: by 2002:a17:906:58c7:b0:722:f4bf:cb75 with SMTP id e7-20020a17090658c700b00722f4bfcb75mr15351620ejs.450.1667262693898; Mon, 31 Oct 2022 17:31:33 -0700 (PDT) MIME-Version: 1.0 References: <8cfe03ee-cddc-f70b-0c62-b506e49dfe58@eastlink.ca> <249024aa-ae57-e970-ccf1-1d3c8a391417@eastlink.ca> <4f4fb806-fef1-52ba-2559-f2629c823939@eastlink.ca> <1f246a94-944c-cbc3-27af-43a34b90151d@eastlink.ca> <128a1ff4-1af4-4d5f-b2e9-754daa6d9016@app.fastmail.com> <77e57f37-7d6c-5ed4-5745-c424886bf16e@eastlink.ca> In-Reply-To: <77e57f37-7d6c-5ed4-5745-c424886bf16e@eastlink.ca> From: Bart Schaefer Date: Mon, 31 Oct 2022 17:31:22 -0700 Message-ID: Subject: Re: whence output varies with dot vs. realpath in $PATH To: Ray Andrews Cc: zsh-users@zsh.org Content-Type: text/plain; charset="UTF-8" X-Seq: 28305 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, Oct 31, 2022 at 5:03 PM Ray Andrews wrote: > > as to '-a' and '-m' they sure don't get along. I have a few examples > where they seem to try to cancel each other. Seems to me that -m is an > expansion of -a No. -m means to find all the names (in any hash table) that match a pattern. -a means to show all the occurrences in $path of each name (either literally without -m, or found in the command hash table by -m). -m happens first, and then -a searches the path. > BTW, you know what would be sweet, is if: "rap is a shell function from > rap" ... if there was the option of having that displayed with full > path. Whether a full path appears there depends on how the function was defined. The only way you get the output with "... from ..." but without the full path is if you source the function from a file in the current directory (e.g., "source rap"). Even autoloading the function with "fpath=(.); autoload rap; rap" gets you the full path.