From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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, DKIM_VALID_AU,DKIM_VALID_EF,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: from zero.zsh.org (zero.zsh.org [IPv6:2a02:898:31:0:48:4558:7a:7368]) by inbox.vuxu.org (Postfix) with ESMTP id 2D44328ABA for ; Tue, 4 Jun 2024 15:33:56 +0200 (CEST) ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1717508036; b=hnDGa3Jp9enwJjkgR9zFyBoQ4xOGr8/t8tRQWvPX7o92nleF7LVF+WqcdJsyEaryeSVwzCXSrH kTPLzETObmvB3TRpUv6bkDVIkArgLWXZFx6F5Cy0xtvUHyPJ836ktiMZwoFcpcqEpECGchJPBN u1yqYT1XGbpUnzEKNpLKQKFwPZrBsoYZiJeDmyjbDnHx/aLXvhKcit9iRetAfo/3vbX4HpSr7A A4NNY1qsvShmbCEGgGzN/DdtTQmaiDgQ6i1g9nKz0uuu07P4pzaP9p6ug9kYMSWLQ0I4ISeMX1 Iqh9TvupeAh9NP/Vjs4pJLGsetvdb0hExgW3tCGT/emCEA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (maila2.tigertech.net) smtp.remote-ip=208.80.4.152; dkim=pass header.d=blaatscaahp.org header.s=2.tigertech header.a=rsa-sha256; dmarc=pass header.from=blaatscaahp.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1717508036; bh=i+XVb5o36xEq/MaYqk/z/4+OJfTk8ZGyYl6ORdUTJLc=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:References:In-Reply-To:Subject:Cc:To:From:Date:Message-ID: DKIM-Signature:DKIM-Signature; b=SH2iwJSGNydxQG9K4lwBwkA2E1HD5+ap2Ae+KkYv6NUeaETUIJSIPb1A+th5GT9BlUgJk3OjfX Ur2R0ie+HI2RvmqH/4DXSXoTyod03smmsqk//4dE8Wq5mUc4eRPIu6XRgvbJvsDiJ7rLgJNnjy veqwgEb2HNIkWHbWCafT+pl4USYTPN50i4V0H5YyvyEbjyGvfD+y3Z2TCe6QoxR9JdNSQfYmi4 S93MEFrPIbrNq4+hajolc0TVCqfyBVv10Qd2sL6DJKJtFry/IxNNUDj7e9ea4wJhwk1H0Zvt7x gKt7wmDZyD4EyjYTXW6KuPPk0o45tB4hzZyZTFLNhKkuVg==; 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:References:In-Reply-To:Subject:Cc:To: From:Date:Message-ID:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=qNTL+uwS2ZmCmKpQoG4D1DUXibCmxcNuoYxVBQSeDlM=; b=qmCWpkSX1feV3TqgXYLaqsGBTo JigCZhirtVHUQE1UNWz+arhIykBWUQLiijL82aioIrUUHeyHZLwFdXGVnDh6AwfP8LB0nQbwukwEL /4z0fBRbxBXqU35llCEB5OnSChPXPf7688aUwyxvJH6TJ6xdPSzS78lfAb3lu0aXq6yQUN2j4ExB/ 8yrpK7k3PJ+uluF7x1rInrh6HTNYxjnIbglw9icifd1Rx2ji29Dg0mBqLjIw46NlFIOR8MhTYu0xx wWJECZOue8PRk2zMN1sv2OSIAy940t/08X/sEuHIsbpZL03Zdd8mAqGZrgk4jCpE3CbNtFgggy1Za /uKNyEZg==; Received: by zero.zsh.org with local id 1sEUIW-0005Dt-Fn; Tue, 04 Jun 2024 13:33:56 +0000 Authentication-Results: zsh.org; iprev=pass (maila2.tigertech.net) smtp.remote-ip=208.80.4.152; dkim=pass header.d=blaatscaahp.org header.s=2.tigertech header.a=rsa-sha256; dmarc=pass header.from=blaatscaahp.org; arc=none Received: from maila2.tigertech.net ([208.80.4.152]:48567) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1sEUHm-0004S6-WB; Tue, 04 Jun 2024 13:33:13 +0000 Received: from localhost (localhost [127.0.0.1]) by maila2.tigertech.net (Postfix) with ESMTP id 4Vts3m6P6Bz6Gtnj for ; Tue, 4 Jun 2024 06:33:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=blaatscaahp.org; s=2.tigertech; t=1717507988; bh=qNTL+uwS2ZmCmKpQoG4D1DUXibCmxcNuoYxVBQSeDlM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=HGJL1KA0QUeaGngR68h5jCNAuWW/NX/QzpNSW1ydBbOUUG+BsJtsS33TPb3Vs9RfM NYXirc8FGtmsxTV2ewbgVEMbGX/bV5TD98Pfhli1xbngRkpi7J4Zgy8EA4qhLES7mU ERQ1yu1mtMaWMb1R4sV3gQzTy8QbH9kQJXUOaokg= X-Quarantine-ID: X-Virus-Scanned: Debian amavisd-new at a2.tigertech.net Received: from localhost (cst-prg-67-32.cust.vodafone.cz [46.135.67.32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by maila2.tigertech.net (Postfix) with ESMTPSA id 4Vts3h6mfrz6H5T3 for ; Tue, 4 Jun 2024 06:33:04 -0700 (PDT) Received: by thinkcrap.localdomain (Postfix, from userid 1001) id A771235546C; Tue, 4 Jun 2024 13:32:53 +0000 (UTC) Message-ID: Date: Tue, 04 Jun 2024 13:19:35 +0000 (UTC) From: zeurkous@blaatscaahp.org To: Thomas Lauer , Bart Schaefer Cc: Zsh Users Subject: RE: Re: ls completion In-Reply-To: References: User-Agent: 822_dng. X-Seq: 29994 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: Haai, On Tue, 04 Jun 2024 13:34:54 +0100, Thomas Lauer wrote: > (Nowadays I call these helpers ls0, or ls00, but back then I was a > complete 100% newbie whereas today I am just a 98% newbie... Big > progress :-) ). Don't blame yourself -- the lack of a dedicated, singular naming convention for local objects has become quite a problem in UNIX (at least in terms of the mess it creates). In the end, w/ all kinds of possibilities being reserved, me ended up w/ the convention 'ls_' -- w/ the underscore at the end, since also in many non-zsh contexts, names w/ a preceding underscore are already reserved for ``underfloor'' system use. This is not elegant. (Me's also been using the 'ls0' numbers convention, but to me, that implies a lower-level version of the routine, not a higher-level one; and what about programs w/ names like 'doom2'? Should the wrapper be called 'doom20'? ). There's also the related problem of there being no record, upon exec(3) (or, rather, execve(2)), of where in the PATH array the executable was encountered, so that wrapper programs would have to pull all kinds of tricks to properly invoke the underlying program (to prevent the wrapper script from executing itself again instead); understandably, at that point, coders usually bail out and include the full path to the intended program. At least zsh *somewhat* mitigates this by having a 'command' modifier that actually forces it to use ${PATH}, but that only helps when, as in your case, the wrapper routine (or alias) is confined to the shell. Mein 2 Groschen. --zeurkous. -- Friggin' Machines!