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=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14912 invoked from network); 1 Sep 2021 18:24:47 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 1 Sep 2021 18:24:47 -0000 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-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id:Mime-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=TlurSQ5G2dtpMqyvAU18c63rIy+Bv5TmeyQRZBpj15s=; b=BG8XumeSyvnaQMQpIYTVbBNk8r Qay9GWMB+B3eFQ4djyY8KL+dYw2eF7a5OsDHgB/D/Kmbj/iyKPmwI+RsVR4c/kNKFmHMPUCwFUhiZ hC3sCyzuozRopOX4Qw24TNjWNmEhH6amC5RDghLaRi6emCh0PtJEn6oprKZ6svCPNI44zJxLCWPz1 IGa6OJ6xnpOkdEQjzYZPDLjOrKi26lIEfh4BQRzUlvhWnT9VFDfHEMIg34feq5SCY2ojPJgRxMKNm DrYHmeHBo5bY6RLcqbK7OoxQ53sJ+8egmnm6AECrgnSEt4o8M3khBjbuImz0Lm82eUxL+tsHyfV3D N2cyzrkA==; Received: from authenticated user by zero.zsh.org with local id 1mLUul-000FQG-8m; Wed, 01 Sep 2021 18:24:47 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mLUtH-000E90-AQ; Wed, 01 Sep 2021 18:23:16 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id E142327C0054; Wed, 1 Sep 2021 14:23:12 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute3.internal (MEProxy); Wed, 01 Sep 2021 14:23:12 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddruddvfedguddvfecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderreejnecuhfhrohhmpefnrgif rhgvnhgtvggpgggvlhojiihquhgviicuoehlrghrrhihvhesiihshhdrohhrgheqnecugg ftrfgrthhtvghrnhephfekieejhfeggefgudeuleffueekjeeuleffleekveetuedvteei jeeukedugedvnecuffhomhgrihhnpeifohholhgvughgvgdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpehlrghrrhihvhdomhgvshhm thhprghuthhhphgvrhhsohhnrghlihhthidqudduhedukeejjedtgedqudduledvjeefke ehqdhlrghrrhihvheppeiishhhrdhorhhgsehfrghsthhmrghilhdrtghomh X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 3E404A002E5; Wed, 1 Sep 2021 14:23:12 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1126-g6962059b07-fm-20210901.001-g6962059b Mime-Version: 1.0 Message-Id: <7248837b-fe22-4faa-8f2a-4e62973d5f91@www.fastmail.com> In-Reply-To: References: <41fa241f119fdb9b8598293aad345823@dondley.com> <776abe09c579095258b2eef28a7ad5ca@dondley.com> <1ee1545904fdc1b5f473460cddfe5000@dondley.com> <29064969-76d0-48a1-cb4a-719a9acaab29@eastlink.ca> Date: Wed, 01 Sep 2021 14:22:51 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Ray Andrews" Cc: zsh-users@zsh.org Subject: Re: Best practices for managing aliases in ohmyzsh? Content-Type: text/plain X-Seq: 27054 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 Wed, Sep 1, 2021, at 11:58 AM, Ray Andrews wrote: > Ok, that's all transparent. What puzzles me is why the now executable > file won't run Roman's example. Just tried it, and indeed it doesn't > work. Lots of test lines work but not the 'mkdir' and not the 'cd'. No. Those commands do work. You are either invoking the example incorrectly or testing the results incorrectly. > 'cd' being a builtin I'm wondering why it doesn't work in an executed file: > > #!/usr/bin/zsh > echo "This echos just fine" > cd -- "/tmp" > > ... no 'cd'. https://mywiki.wooledge.org/BashFAQ/060 https://mywiki.wooledge.org/BashGuide/Sourcing -- vq