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 32615 invoked from network); 1 Sep 2021 21:06:15 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 21:06:15 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1630530375; b=mp09oNWuH9YMsox7411WS1G47OzoXHIp8jIA3LCkx8kT1F8mxQ/msfvLyB5l3vEUm1xdFQ1tVC L3UbQgy5TIgZYX0u2EjeRQsR/SYhZl6Jkp2mlNC/2fTvQq+xaAhLnjE+NsjgmGRlyBvFEnMjDt /EuwZrOoTX9L+Zbzj+YkDaoNz3KcuhBf9BhXPHD8OrHaGoAI3BFeYp5rux8g0Ln4+EnwK7UIAZ PYLO4e89ix98GhnTmOo6xrrez4YDRIocmdQJ/Td3QMZ7QQur/H9jvtPHOoOLj58ilMBFTdNJlz 5ktI5LoXUQH9TZLdbmoypsDGiq772HJ18n39vWzpUmjIZQ==; 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=1630530375; bh=UWskhtccqvgfXMysdYj8nw1UdQ8+vDLK/fFNqaPZZc8=; 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=BrYJRyrbYs28QplLIphxDTMEEZwiQmA1qEFiYhr/skR0kNxZWkO/Y8g03zOzB/i7mPuIvlheeL nnkcCFfPFjRjc+EQjqtUIdMDfsHNZaBRbEW7LX0eGiOtsmeEk+6TlVqJyI9BDEABcx9rew3l05 BbsWxzj2chj3bGpRLam7i62e0ExZaEzvHY7qE/poGg2huPZHPPfdGjRZmwRx1GiUjcvUa3eeOj gQRKR+MlHQH9WtH6Cqapg7Np1hX38gt/DSHPyGLhJImFDHfGPNnMlGiwVOp/E2EHSO9HnQVa4e F+iahUnlAmQD5XH4JvRS/GwmOss1ZthpCn0gYrRLt1Ml4A==; 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=W4RvzFAkGHZ5+tTUCpq3PqRSEgosecDhLC9B7fopup0=; b=YJogHagudlK1GVlB7TL908xIPZ kXj1HjjWvWr1Y2Qs5v4SlxQt3E2Xofhtk1sr2kmu8cdDXDLSonSCMpYzLjPkcM0AegGV9K1m1UJ03 Bl/nLCgfw4mDBsNhq29j3e2hQXBPiRmhKmvJmVbmp897TGS7HC6P2ef34j4XNbQh8A/9Zng7X7nHo VOCLxFZQBqKtWbMQRIiFfZezXm8KEPYUjbGmoIvcGoHbRILOkAHp6z7jv2fk2+3w7CiywR9Gst30c 41IYNKdKdbv3u2cdEGf3MXjBuX/L0/X0Uh14LL3xpIqMro66GWqTH/E0NKnDIBinE5ivU4R5DjgGg v2jjZNDA==; Received: from authenticated user by zero.zsh.org with local id 1mLXR0-0008mR-VT; Wed, 01 Sep 2021 21:06:14 +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]:50447) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1mLXQF-00083p-J3; Wed, 01 Sep 2021 21:05:28 +0000 Received: from csp01.eastlink.ca ([71.7.199.166]) by mta01.eastlink.ca (Oracle Communications Messaging Server 8.0.2.2.20180531 64bit (built May 31 2018)) with ESMTPS id <0QYR00216SHK5LG1@mta01.eastlink.ca> for zsh-users@zsh.org; Wed, 01 Sep 2021 18:05:26 -0300 (ADT) Received: from [192.168.0.2] ([24.207.90.194]) by Eastlink with ESMTP id LXQDm7EYpVz4DLXQEmqxzC; Wed, 01 Sep 2021 18:05:26 -0300 X-Authority-Analysis: v=2.4 cv=c59u/Txl c=1 sm=1 tr=0 ts=612feb16 a=zv49KfEsxEDzuN5AGO7r0Q==:117 a=zv49KfEsxEDzuN5AGO7r0Q==:17 a=IkcTkHD0fZMA:10 a=UXbdIa1ubT_6rvrrQHIA:9 a=QEXdDO2ut3YA:10 X-Vade-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvfedgudehiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfgtefuvffnkffpmfdpqfgfvfenuceurghilhhouhhtmecufedttdenucenucfjughrpefuvfhfhffkffgfgggjtgfgsehtkeertddtfeejnecuhfhrohhmpeftrgihucetnhgurhgvfihsuceorhgrhigrnhgurhgvfihssegvrghsthhlihhnkhdrtggrqeenucggtffrrghtthgvrhhnpeekvdeuuefffefhvdeuieetffdvtddvjeegueejkeeiudehieetieehgeetvdfhfeenucfkphepvdegrddvtdejrdeltddrudelgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpedvgedrvddtjedrledtrdduleegpdhhvghloheplgduledvrdduieekrddtrddvngdpmhgrihhlfhhrohhmpehrrgihrghnughrvgifshesvggrshhtlhhinhhkrdgtrgdprhgtphhtthhopeiishhhqdhushgvrhhsseiishhhrdhorhhgpdhgvghtqdgkihhprfgrshhsfigupehtrhhuvg 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> From: Ray Andrews Message-id: <9f96d070-31fc-3a1e-925b-bde70a8f73a5@eastlink.ca> Date: Wed, 1 Sep 2021 14:05: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: Content-type: text/plain; charset=utf-8; format=flowed Content-transfer-encoding: 8bit Content-language: en-US X-Seq: 27063 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:03 p.m., Bart Schaefer wrote: > > No. "#!" is a comment, because it begins with "#". > I've always wondered about the syntax of that.  Seemed to me it was the one exception.  But ... what you're saying is that the shells themselves ignore the shebang as just another comment, but when you 'execute' the file, a closer look it taken, yes?  So, if I source a file, the shebang is 'just another comment' but if I execute it, the shebang is paid attention to because there is no presumption as to the correct interpreter -- could be Python, could be anything. > ... superficial > similarities so that incorrect interpreters can recognize themselves > and do a backflip, but for the most part it is indeed "barf." Sounds like a whole lot more trouble than it could be worth.  For now what I'm coming away with is that the shebang is only relevant if I have a 'chmod +x' file and execute it as tho it were a binary. And sourcing is not the same thing as 'executing'.   I've not done any of this executing of anything zsh yet, so up till now the issue has not come up, but I'm now forewarned, many thanks.