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 20276 invoked from network); 18 May 2023 18:01:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 May 2023 18:01:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1684432878; b=FiCWXYpjtZQk0wD0Ch+KcSZjWQJ7F+da1qLVlkEP/TyZq+emOlte+wYSPcRx7NINKgze2H04R5 6ZVz1oJEp5B+Ytsgc2+rfFwbuhdwH4GdcMR8S3f1ol0fWT18SfpW1GcN7o4hWaWOxks2xsSlB/ CJOwM+1HlmTeLvxBHhmtHHQbGsSJd/nj/xGeq4fP6useJ7JBWVqrygxxp/885P0JBEtSqJEHpZ gmnUvmr193MqbIlw5R6fDP/o14FMCOYqm70/XKF+FWFh6p247kGW550lCHwxJYtC9ZXjPcKYn4 MY56o/IawhNCnId7E3SdOix4D9Li7QXxvgWIam8rXcIpLg==; 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=1684432878; bh=eWxVE9kiaocehNMnJDMMkiNTcg1TEXLP7vtEwfC6ABU=; 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:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=KWSgq/ZanIPW2S9slzObs4iAQ16/p/VdcQCkqIRAJBvPi2nOQm/CaKE8KstVf/zo5axO+D5zA4 gNz0BuyWQM0eBWItQoF3VXVLqVcrnxmnpk5nFCl71fsFWsgQRzwq9NsgcL+etwJqbvS7nY3C3a rgPxVPVSTqeE9DHXJn+jSEN/jCB5sgWdXVQPZ7VBU/xTyu+Joi0cCA8Uvko8CiHyHLGDXT5Ysj Gom8A61FoDan/f6COWOmxWT5iOhRjae+5QOkXqZuenPbpaZc1pbBRxHaRZjjhxkgjj25IuZkmx 3XtjKkzdon5f5F5NkWoIXNKQ7NRR0sBf1rSSIiY42bU2vw==; 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:To:From:Date:Reply-To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=d00eb5Tsvl0x9vBxcVSj9U2IpfKmFHd54GfOtAwQVHc=; b=V7yvtlNv3zREIogQwa506h8lyw qChyptv3wuva8g/zf6iZsgCKC9JfBSLMda9BMdDBrqEeE3TfV7Z3Qh73dWyVltP2FeVMrOnGm2Es6 RLe4IhLC4g1FF2EEjuYiZEhKzed5lbqR9WsCE6PPfneI79LHVZkEI+BT8PWdK2Z3JVzu5TBDC4qp2 IMH9UPaqfYKKc4qmIsLaLHjo3I042PB7hBeE9Al/rp9duj9HEf31pc8FT+x80vAsfI5GNQMoMuYFA CqroTBgXQezxFL7C9kZVOe8wH13bDs/ctdEZGc5994izSD/RZwpVKQtXQpRivJXgoYXNL2mrWkyi9 9Z/nkDxw==; Received: by zero.zsh.org with local id 1pzhwD-000IRR-MG; Thu, 18 May 2023 18:01:17 +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]:45854) (DNSSEC AD) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pzhuv-000I3b-J3; Thu, 18 May 2023 17:59:59 +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:To:From:Date:From:Reply-To:Subject:Date:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP:Organization :Auto-Submitted; bh=d00eb5Tsvl0x9vBxcVSj9U2IpfKmFHd54GfOtAwQVHc=; t=1684432797; x=1685642397; b=Ry/ox2UNkHRVNulBz8Mex6YMxOX4Sc0rqfgfTeQ5Z0k5bX+ qRxYJkv2ro4LPjaP3y3Eg9NUz9+80Bd17mybeZ22xWpFlylQy0j36tvQuUBqmCW9Xxeaby5xIwYNq Um5D8pDiVApU56wHQgkmHbPzcZpcVsmPSe7ykCVnQ4pbFfZ8ySfK18D6dgSKvIhcEckxyBFYEjDJl Coz6MO5INbBgkAtsTA9yvrWmKLh6JSWD1R2u3VD9KEi+ugb+NUE3fbHHWxFfwIMnyj0eiQ7Z1mTvB L+1CPYtN/stozk+ZRvaQQsafUzJSo3/Apry94Ssi+vC8Bz5R//5HLQ6GxuZKKHUw==; 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:To:From:Date:From:Reply-To:Subject:Date:To:Cc: Content-Transfer-Encoding:Content-ID:Content-Description:OpenPGP:Organization :Auto-Submitted; bh=d00eb5Tsvl0x9vBxcVSj9U2IpfKmFHd54GfOtAwQVHc=; t=1684432797; x=1685642397; b=OJioa5nYFTHcaGlpst60XQKEeP98tO26bYhYVubOxMEUYqh SpcLu7x6l3sp2IbWyqF5m3ZXWVvGG8bsYo+BxAQ==; Received: from authenticated user by smtp.spodhuis.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1pzhuv-000I3U-9p; Thu, 18 May 2023 17:59:57 +0000 Date: Thu, 18 May 2023 13:59:55 -0400 From: Phil Pennock To: zsh-workers@zsh.org Subject: Re: Literal `~` directory created? Message-ID: Mail-Followup-To: zsh-workers@zsh.org References: <92F7C23E-37C1-4204-95E1-6B8050F9CAB0@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <92F7C23E-37C1-4204-95E1-6B8050F9CAB0@gmail.com> OpenPGP: url=https://www.security.spodhuis.org/PGP/keys/keys-2013rsa-2020cv25519.asc X-Seq: 51756 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:50 -0400, Tom Vaughan wrote: > Thanks, Phil. Based on this it seems like the problem is due to: > > mkdir -m 0700 -p "$_cache_dir" > Tilde is not expanded when quoted, right? _cache_dir is set a little higher up at https://github.com/zsh-users/zsh/blob/master/Completion/Base/Utility/_store_cache#L10: > > $ echo $_cache_dir > > $ zstyle -s ":completion:${curcontext}:" cache-path _cache_dir > > $ echo $_cache_dir > ~/.cache/zsh/compcache > > Perhaps this tilde should be expanded? Running the mkdir command above creates a literal '~' directory in the current working directory. It should have been expanded _when you set the style_. So don't quote a parameter when invoking zstyle to set it, because then you're setting the style's value to hold the literal string. You should have things like: zstyle ':completion:*' urls ~/.urls zstyle ':completion:*' cache-path ~/.cache/zsh/${HOST%%.*} -Phil