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 2388 invoked from network); 1 Sep 2021 21:24:07 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 21:24:07 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630531447; b=Gf8WBy7c8qzxqZlgxZI2ip8Nd46j6K0NIBNuEbXi4aKZJfbKgo3p0dxfYrwlYpXG7RAXwYmv+w OCKNYganak8ZElgglZps9hMadyAYMUkRC9Z35tLNEUJyIPR1lVpQzENhxIWvaA5f5XiZRb1I38 +zsYQbEYAco6xoCTcAIc0MwMAtttNQNaiQZzUT0WMoGuBtGz3IM87gExT+7Mt17S16YppXZtWe hQyHJVViZQ0/L2AVkvYgBT4Ex4oI/ZjaEuLV88C3yEFGpRB3vvn7Cy/Fi2LpvClIGnpKYy6+4f xylk6VLASdGgyN3ztGVkOIqYb/wWPzq0pBrpga/ivJCLzA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; 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=1630531447; bh=Qv1nSsxz9jskAOFPPoQaeNvJozgrDmn2YC6ITIfKOtE=; 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=oEpjo63n2Cavo2WuM/emy7REo5aZlyWz5JTpBxIAfHzUhIO7u0BJtkie1p0DtmFC7kJSLx5p49 yoBFYAXTkFFbg+mSvQxYzL695BP8p6xOk+IkGd5DdV+EIMcxWcfyQz0KXGVxXvoKACXaFSkVys K32hWUZd6SLFbhtG99sl8x8KAo6/3qtxHF5fKCxTXbaZ46eR6oKiDEk5GUzKkiVJUw1xHXY+1j 0ceJHrDORq3zsfqdrrkYxFYBN6Oxg0zQddpdLIUEX6IsoU162kS54/GtGDOaLjmbQ977IH5eDQ lXWvcWlEImedFtU5KzT03bly5vIIvrtwqznve2P9Y+p4yg==; 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=XtAT+U5Q+SKjGV/lJBlEMDfJViepC6Rao+0CdsNe+Ls=; b=o4HyDypxuKpdIrOymcp9XYU5O1 YHMJumMSKd13vNmN/jOxzK1GDS0zEV+ITFQdEfEYV1Yqhshi15LzuKVsg2+pdm1b6lYeiuMVQscrj ToK/8t96WyirmeAq4aNWp7xihq118Lp08hOa7niMs8oKpC48tWDmpQtIq+fPkG9T5ry/JFojIWqlb rmf8veLxMNnngltU8rxluwtjxgre2ZEQ0lalvFf2RkAgZkdP4yRAgy6zvZHw2lz9tStM5TvY62Djc kyxI9XHIvHkrZNxHscjVIIKN+ThAMTCA6MFaNxnCnmKlR2DtXZKGJI4aHYTxe2xXqDPCD31iYPER8 udA+xqJQ==; Received: from authenticated user by zero.zsh.org with local id 1mLXiJ-000EPH-Iv; Wed, 01 Sep 2021 21:24:07 +0000 Authentication-Results: zsh.org; iprev=pass (mta01.eastlink.ca) smtp.remote-ip=24.224.136.30; dmarc=none header.from=eastlink.ca; arc=none Received: from mta01.eastlink.ca ([24.224.136.30]:37881) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mLXhf-000DgS-F1; Wed, 01 Sep 2021 21:23:27 +0000 Received: from csp02.eastlink.ca ([71.7.199.167]) by mta01.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QYR001B0VXTPBP0@mta01.eastlink.ca> for zsh-users@zsh.org; Wed, 01 Sep 2021 18:23:26 -0300 (ADT) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id LXhdmWNWJo387LXhemJn0o; Wed, 01 Sep 2021 18:23:26 -0300 X-Authority-Analysis: v=2.4 cv=QdajAuXv c=1 sm=1 tr=0 ts=612fef4e a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=u7xgx3oWel085-4wDlEA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvfedgudehlecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeekvdeuuefffefhvdeuieetffdvtddvjeegueejkeeiudehieetieehgeetvdfhfeenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg 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> <7248837b-fe22-4faa-8f2a-4e62973d5f91@www.fastmail.com> <7ed02d4d-a7b8-e457-f814-dc88e1cf5c35@eastlink.ca> <079751a8-0494-0432-d4b6-f8f3e6e3e2f9@eastlink.ca> <3e294425-c74b-4218-ad54-ac7044cf2171@www.fastmail.com> From: Ray Andrews Message-id: Date: Wed, 1 Sep 2021 14:23:25 -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: <3e294425-c74b-4218-ad54-ac7044cf2171@www.fastmail.com> Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 27067 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-09-01 1:53 p.m., Lawrence Velázquez wrote: > Even before getting to language mismatches, it generally doesn't > make sense to source a file that has a shebang because such a file > probably assumes that it'll be run in a separate process. That's just the point I wanted to clear up.  As I now understand it, the shebang will be completely ignored when sourcing although it had occurred to me that it might force a separate process.  But experiments here show that does not happen.  Steve says the same thing.  So, when 'dot' or 'source' starts the command, that what is in the file will be zsh code is already expected.  But when we execute, nothing is presumed and the shebang is read and a separate process is started.   Quite sensible.