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 4218 invoked from network); 1 Sep 2021 02:33:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 02:33:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630463636; b=TulXtAcdgPWE37lbG1uPAmKgfZ6a1IFd/GSyh9uYzMFexd5C5urlfWXjokVzuzSv9CxQdRS0oK l5bKA6gP7z2cJMqnz71yYsxXQn56Kv9YkcCOcOz74B7Q9xXle6DMzhqvTpsMOMTJ8GP6gZ6uUM xKxddML8Tnwbu+zasaXv1D/GedHV8XqctLnvrspJzxMM49zQ1RdFSOcnnJifCVZ8HpYt85Fl5U 0BJYq7d05GZZM/0YMzs8z6bxE0kOaNh9TLOzRok+mmk5Rj1QF2iXnr+ce0rN2xMYheptxWzxkd 20NEYGystxrXdS06uHdedIpRzwJE1HQglPTACCpM1WTLYA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; 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=1630463636; bh=okY9ZadQkLTBL4ZNUg1ahgTkTqITfGHIdLRdEuZ53uc=; 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=kIYBGNANgOHsOli0Oe4L4VU0hJJ6X0Pc3/XhH1nrffnGhDCig/smZpNg+8Eqe0xktkIfoVK95Y fAFPC9/3JeVpcBHryQl6UAfucju+RbqdRnAky433TnB0XUTlMuVA6fDG+d8/+Ig6K2tWm2z5O5 zDbeVNGJ8eUt90MmECvsRO6mEhOgqEfgizLw0ydpBVv3qO35zXX2sjSK4nbl8cdhVf/glseSxk AfQHwbS1C0wFQqmcRnlkQgkA/KI3g79+NtiGYs/A0hZ+EuIM4FFXfTuiHcNkWOiAMSEgjfllpZ 5v3yzL1IQwNtvBiIWlEn54+IQjTgASv7rzv8b+uSZhC9Ow==; 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=yqT3/ZcDtRoroE7rJCEp1VoJyoWmVxU/us+om+QcMT8=; b=TjZFkcT+1u5UQRLwgZar7KomP6 +FoGk7KbUlLqpkeOWAimH8MLZPz6NiDFNXb5rpGvVZY7DeHb/ELc0KsbvaERxSnhJuoGotVDIfk7a knzZpeaMb9NLuwUAvp0Y5WO3UfJ2kRmLjSRe8oKLb3Y6KGCXUHruFeRvk/KavXBFS4753FwxM/yvM KScS+UbmTR+4rRpIAP3s/Tq3xF3+gzLJpWmhxNRwdd2ETsjqvBiJk29ZAuxzjGNltWc9xBeV5I6wl J7o9PpNhX/k5spLjJT8GM8ViyOzefIOrGA/swQrA153AF/kD/+fXn7CnM/CSSPLy0LhlXbekFZEcC Ih6Fu4qw==; Received: from authenticated user by zero.zsh.org with local id 1mLG4Z-000O9s-9C; Wed, 01 Sep 2021 02:33:55 +0000 Authentication-Results: zsh.org; iprev=pass (mta04.eastlink.ca) smtp.remote-ip=24.224.136.10; dmarc=none header.from=eastlink.ca; arc=none Received: from mta04.eastlink.ca ([24.224.136.10]:57829) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mLG3w-000NSN-B3; Wed, 01 Sep 2021 02:33:16 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta04.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QYQ005WNH2F07Y1@mta04.eastlink.ca> for zsh-users@zsh.org; Tue, 31 Aug 2021 23:33:14 -0300 (ADT) Received: from [192.168.0.3] ([24.207.90.194]) by Eastlink with ESMTP id LG3mmU9i4o387LG3mmJ3rl; Tue, 31 Aug 2021 23:33:07 -0300 X-Authority-Analysis: v=2.4 cv=QdajAuXv c=1 sm=1 tr=0 ts=612ee663 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=4kvCmJwZtro61hG9jCYA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvvddgiedtucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecugfetuffvnffkpffmpdfqfgfvnecuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptfgrhicutehnughrvgifshcuoehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgeqnecuggftrfgrthhtvghrnhepkedvueeuffefhfdvueeiteffvddtvdejgeeujeekieduheeiteeiheegtedvhfefnecukfhppedvgedrvddtjedrledtrdduleegnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepvdegrddvtdejrdeltddrudelgedphhgvlhhopegludelvddrudeikedrtddrfegnpdhmrghilhhfrhhomheprhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrpdhrtghpthhtohepiihshhdquhhsvghrshesiihshhdrohhrghdpghgvthdqkghiphfrrghsshifugepthhruhgv 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> From: Ray Andrews Message-id: <29064969-76d0-48a1-cb4a-719a9acaab29@eastlink.ca> Date: Tue, 31 Aug 2021 19:33:06 -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: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 27040 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 5:28 p.m., Bart Schaefer wrote: > No, that's sourcing it. "Giving it a run" would be > 4 /aWorking/Zsh/Source/Wk/Junk 0 $ chmod +x ./test > 5 /aWorking/Zsh/Source/Wk/Junk 0 $ ./test /tmp/foo > >> I must be misunderstanding you. > Sourcing a file is not the same as executing a script. > Yikes, I'm missing something fundamental.  In my head, executing a script is identical to sourcing it.  It's not a binary, so what else can there be than interpreting the file?  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?  If 'chmod +x' then you don't hafta 'say' 'source me', it's automatic, and it will be found if on the path, etc, but I'm laboring under the idea that nothing else is different.  Is this going to hurt?  I don't understand the lesson of Roman's example, so I think it is going to hurt.