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, T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 17869 invoked from network); 18 May 2023 16:53:24 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 May 2023 16:53:24 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1684428804; b=Bkiq7dCgids1HOulVjxgk7UUCdmoEF7SPC/Pw3L4cdfW9kK7RdHN5i6f757SPEyr5dPieoNSP4 H04LrLjWfM/zyA/t53OWLO9ocSiB2uEsq1U9c97jtxLyfpA2ZBidayYBb4u1sag8b7MVGH7Z6F KOtL7fi/X4B4JCz0aOcglmYM7HIamM+2Y9vskJipfLbqc3909xE3RWXSBosbUAQWv5Z4J568FQ rn2hgdxwQeEDO+gISDjJTWz7fesVLEDInDlE1A4d2/w7hpDrzGT4yb3DdiWR43DfiioIM/Bx5B RCOhH3WE2MlkwBR7B6i7HgSaclOJCc9EnfVxEcFz44bSIg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202305e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202305 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1684428804; bh=Wlb5anLKdBYi30WcSG65/NWaW5c3hPG6X9LGZbjikBw=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=e/z04ewPMpcpvO/XJAe4qVzGqQcAXLfkOdDCLNYW4XdVOF1pSoYiXKZb4fDhhDQ020umlW3OuJ vG9F/DLAKM/otp7eH6nveyHc2CIrdz15V94JlCdlVmIf0WUqdCiLMf4XqpqZsUTLJnXLmOozDU PBfb1uttU646ma/WdVZUgI+JgdkDlcdTtWi2R+gNcT8TxoasoTNj2uc7K5kUBwt3KMFD5+vLmM 03m2s/DkFeQEXO1KD+5OVbG38sZ6Vm9bQ3EO2nIa9aySoKzOyz5Hfkabl/pI1Y3cAGD3bfwOjv IVdcURcbLD3X8I/B0sBzrBaUindGNE1TjFtjdxXy/BCXXA==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=u+tBFOwHoO37bL3Dq2GQAYf79kA1sVHn3oEV4Hvt+t4=; b=ccxp2HMIf9bY02YmGG9PRIyo9/ IYhG2U3AQkHcW5xHCf+pbaSAQANDcvrqZ8Oyc0Kbz4517G8mHp5WhSubIxtVc5cgtWJ7zF6Xnapi1 CT9+qqhc1Z0i22+XK1cqTN+XqnUV+WOTLqzdJfl6/sQ4jGaVh09fo2oUxg0ifT5Ch3TExe/0/PbjH hsqo+irtnWepi26G+Oiln1hhNDTbclLw4E68nkyh14zR3vRl25JRrxm37RNBEje1xihRRPfSplIXL Q9asnYfnghbHDCA1K3qUAUFx6mQ1Ty9UHCFvC6Mkmut4Yx8Xjf63iSCO/3l2SvkOD51PxEUUhxto3 RxQxqgdg==; Received: by zero.zsh.org with local id 1pzgsV-000Flx-BR; Thu, 18 May 2023 16:53:23 +0000 Authentication-Results: zsh.org; iprev=pass (mx.spodhuis.org) smtp.remote-ip=94.142.241.89; dkim=pass header.d=spodhuis.org header.s=d202305e2 header.a=ed25519-sha256; dkim=pass header.d=spodhuis.org header.s=d202305 header.a=rsa-sha256; dmarc=pass header.from=spodhuis.org; arc=none Received: from mx.spodhuis.org ([94.142.241.89]:59658) (DNSSEC AD) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pzgrv-000FTg-5x; Thu, 18 May 2023 16:52:47 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202305; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Reply-To:Subject:Date:To: Cc:Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP: Organization:Auto-Submitted; bh=u+tBFOwHoO37bL3Dq2GQAYf79kA1sVHn3oEV4Hvt+t4=; t=1684428767; x=1685638367; b=gZTAZfTZhWpiDGqMpU8X3Fbwjyk9Q2rayUiX2GIQqVSgC0Y u9j0pmEPF80y7VS61GyYNfKitgJiq+Asvy2aqo9PtnE+OOZmfNrnjJn4SBdp2skDLYhP8UvR1J+Ms 8tr6fnSvTsDDY86/NC2DylL+aXcNaK4tw81y7a8wSh/AGyy4fX8TO9FzefoDqfvnbnkoS7i5QAAn6 xLaWfwne0B6GoS5PhQmGnivq/jP2TJzu/1EPQ2vttq+C50sQ3RsIYvox9YTdPhNw0IZccFmLojvNe LobgR2s24q9ewFWlMqVwOfTdBRsBPpOWmiDnNcF2myEIhtxXXjAgi4H9eo7w+KFg==; DKIM-Signature: v=1; a=ed25519-sha256; q=dns/txt; c=relaxed/relaxed; d=spodhuis.org; s=d202305e2; h=OpenPGP:In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Reply-To:Subject:Date:To: Cc:Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP: Organization:Auto-Submitted; bh=u+tBFOwHoO37bL3Dq2GQAYf79kA1sVHn3oEV4Hvt+t4=; t=1684428767; x=1685638367; b=Am2QRPjNeV6vTlF7bDZIhnhje+7Tpj/SoSr84Wclc9awMSo cDJszEi51a2fNIgkHTYLu8CASb0ZpxRhto7htCw==; Received: from authenticated user by smtp.spodhuis.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pzgrt-000FTZ-P7; Thu, 18 May 2023 16:52:46 +0000 Date: Thu, 18 May 2023 12:52:42 -0400 From: Phil Pennock To: thomas.david.vaughan@gmail.com Cc: zsh-workers@zsh.org Subject: Re: Literal `~` directory created? Message-ID: Mail-Followup-To: thomas.david.vaughan@gmail.com, zsh-workers@zsh.org References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/keys-2013rsa-2020cv25519.asc X-Seq: 51754 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On 2023-05-18 at 13:59 +0000, thomas.david.vaughan@gmail.com wrote: > I ran `brew bundle install` in a newly created directory which contained only > a Brewfile, and noticed that afterwards a directory named `~` had been > created: > I have noticed this before perhaps as far back as three months ago, but I > never could narrow it down enough to understand what might be causing this. I > would see this after I ran some homemade scripts I wrote to maintain the > software installed on my laptop. These scripts always ran brew so maybe it's > the culprit? The expansion of `~` is something which the shell does when invoking a command, but if the command is getting a value from a configuration file then it needs to be supported on a per-app basis, because then the shell isn't involved doing some of the work for it. Similarly, if you have something which wants to use `~` as the default value for a flag, then that's going to be ... "iffy". So grep for '~' in your config files and try replacing it with $HOME instead, see if the command does env-var expansion or if you end up with a directory named '$HOME' in your home-dir. :^) There's nothing zsh-specific or zsh-involved here: the problem is arising _because the shell is not being involved_. -Phil