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=-4.0 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 844 invoked from network); 1 Sep 2021 16:20:55 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 16:20:55 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630513255; b=H/Tp2Z7xQy+FRRkU8rPVZey6173mzKOfPKcPntQx3EulJouEDJwfuNIBVjlxCEO6tS+3bZXOnW z54znLIzldoU+PLD0F2wDRoiaUOnBBhGu3i2/bbx/iEgi4cjclPR/OLILWeUQg0uYMmJUYTMV7 pJ/FOVwVHACgZZeR+UsZBBhoSXBXN9kj4f41INobokPEy52NXu5N7+mtsmuNn+92LrXU6RBayB gxuZ4smiItNeLPVveDEumCCRLHH8cvb0+2ir7SZXrUeFfpWiG4LPME63v7t7um/Ia+gOLvu/8A 25KMw9fexsn+DNGeHKlndSjGx96ZcqDzUU7MRIdwOWtRAQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1630513255; bh=+qlmycViF5pxCeZJfugVTmWl+PYxLl3ISewWt1B2j1Y=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=JZFzcntOaRgWiPBDytJZnNo+cz9NZU/OQ+OfY4HD7XSu8c/oURjGxI3tSPLxpsOWT1FjEInKgE MpnLonfVp7hBz2qIZKcS8bk7irtej/HWPM7hsdkJTRgfdX8+9SxE3LpeMe8YFjTIoiGQYdAUM/ juGUBtNbizsNUnBHnK1PnDCbRopXqGPxGGWxQohd7ojDrDxZ1Vmlq8pl7LS3iWRoRRr48BSzAj F8jnUqPE8C6QivOxgoLF3dUt6B44SzmhWedDIzZ3cVirO75i5JV+efY+KSY0lLxXdtTEJEcGpD skwMTLs6DuHQPpzxaHbN1NTYupB5+I0H7OMN+YwSNZYMdw==; 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-transfer-encoding: Content-type:In-reply-to:MIME-version:Date:Message-id:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=L1gbRF+Q4sJEcbV31qFn5ylGGUosk5s9hkmfjrvLE0k=; b=F8+6Z3VPmlNOnDaE0aecbxRv32 em8MLqDCwva/8Br4QMzPCZXsrbBZ66dg8p6LSuOOfF97MGE6OxlHFXQ3wOVnaJKjfkBeqRMOjlGhH oV7HpxMAc9wlxXwBjxlts5IL5M/7l+wU6AkIFOuih8NkNUoKSnz0lsZPjR3oe7YJq5T7cTrQu2feX Zv1lJuG6ClJVo0EEjDSQIhCW8Wo5rMHb3FXNmgmk7qtzGnQzKbYcULLWHjazy6h6wsl0nQ76BA9UV vakAtOA6tYTNRYYxmJApnEzKuZ0wkEB4zhPyUk85iBJJDCN48JTuj5T5x63SZUqmTpb8bSi04utUn +5ccTebg==; Received: from authenticated user by zero.zsh.org with local id 1mLSyt-0005dR-2K; Wed, 01 Sep 2021 16:20:55 +0000 Authentication-Results: zsh.org; iprev=pass (mta03.eastlink.ca) smtp.remote-ip=24.224.136.9; dmarc=none header.from=eastlink.ca; arc=none Received: from mta03.eastlink.ca ([24.224.136.9]:37468) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mLSy4-0004sr-VO; Wed, 01 Sep 2021 16:20:05 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta03.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QYR00641JC75070@mta03.eastlink.ca> for zsh-users@zsh.org; Wed, 01 Sep 2021 13:20:03 -0300 (ADT) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id LSy3m6beBVz4DLSy3mqisC; Wed, 01 Sep 2021 13:20:03 -0300 X-Authority-Analysis: v=2.4 cv=c59u/Txl c=1 sm=1 tr=0 ts=612fa833 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=fVtmT0gJAAAA:8 a=wg5a8cmhAAAA:8 a=MQVqVsmUAEXVPVqN5mgA:9 a=QEXdDO2ut3YA:10 a=rdjqrxlyEKMA:10 a=Z68JwAoA-C4Plj1ZTcjC:22 a=OLxCDBSQqaTmPw1G8xXr:22 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvfedgleelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepfeegveelkeehveetudeigfdvuddtvdffhedttefggeettdduvdelvedvieduveelnecuffhomhgrihhnpegtfihirdhnlhdpihhnqdhulhhmrdguvgenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg X-Vade-Score: 0 X-Vade-State: 0 X-EL-IP-NOAUTH: 24.207.90.194 Subject: Re: Best practices for managing aliases in ohmyzsh? To: zsh-users@zsh.org References: <41fa241f119fdb9b8598293aad345823@dondley.com> <776abe09c579095258b2eef28a7ad5ca@dondley.com> <1ee1545904fdc1b5f473460cddfe5000@dondley.com> <29064969-76d0-48a1-cb4a-719a9acaab29@eastlink.ca> <00160177-798f-4dcc-a4ef-da6c3663883c@www.fastmail.com> From: Ray Andrews Message-id: <521bbe94-d8a8-a85f-9abc-5b10e97c7407@eastlink.ca> Date: Wed, 1 Sep 2021 09:20:03 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.13.0 MIME-version: 1.0 In-reply-to: <00160177-798f-4dcc-a4ef-da6c3663883c@www.fastmail.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 27053 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 2021-08-31 8:27 p.m., Lawrence Velázquez wrote: > > If you want to go a little deeper than Bart's summary, here's some > light bedtime reading. > > https://homepages.cwi.nl/~aeb/std/hashexclam-1.html "The first group, /arg0/, consists of one argument. For SysVR4, SunOS, Solaris, IRIX, BSDI, BSD-OS, OpenBSD, DU, Unixware, Linux 2.4, FreeBSD this argument is |/path/interpreter|. For Tru64 (4.0), AIX (4.3, 5.1), Linux 2.2, MacOS X this argument is |interpreter|. For HP-UX this argument is |/scriptpath/script|." ... I am in awe of the mind of the person who compiles this sort of information. > https://www.in-ulm.de/~mascheck/various/shebang/ "On many other flavours, the maximum length varies between _POSIX_PATH_MAX (255) and PATH_MAX (f.i. 1024); see |limits.h| or |syslimits.h| on the respective system.Exceptions are BIG-IP4.2 (BSD/OS4.1) with 4096 and FreeBSD since 6.0 (PAGE_SIZE) with 4096 or 8192 depending on the architecture.Minix also uses the limit of |PATH_MAX| characters (255 here) but the actual limit is 257 characters,because |patch_stack()| in |src/mm/exec.c| first skips the "|#!|" with an |lseek()| and then reads in the rest. " ... Good to know! > >> If a function is declared (yes I know, wrong word but you get my >> meaning) then the function enters memory, otherwise it's >> interpret-and-forget until next time, no? > I don't really know what you mean here. When we source a function it's there in memory for next time, no? Otherwise a script is freshly read each time it is sourced.  I"m pretty sure about this. > It's trivial to confirm that this is not the case. > Indeed, I'm now aware of the difference but  I sure don't understand it.  I had no idea there was any such issue.