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,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22578 invoked from network); 18 May 2023 18:49:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 May 2023 18:49:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1684435741; b=S8EAGyRvAPdJvdAwhPSYAolyXcwJe0GLhM5fyWSHTz31Qf5q3/i6z2AresaNKPy6qV6NsibxDS LKF4iFbpOt/he1/w4fOCQSCgsbYVo8vILFsLao6Lq9zB7nO3b2IZboIzeGdTrAXV9Uwyu4zuYt SqkceVH54325NObe9AQE8MDDKwRLCJiJNIpC8J/6hI7pylJPNUvfAIBwgIPUszArbN04L/HFZK ywco7K8rY1p7EqcnTgUc+mrrfIkdH2tKOWDa4Zw4IiJ452zJkzj6JJ0MAwCyx/MGUkaamTUk4s m7mTurAXdewXuS7qPXwI+al8W3qAWFq0K6ETxovH67aD3g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oa1-f53.google.com) smtp.remote-ip=209.85.160.53; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1684435741; bh=eXttpTlN2v4ptuamFGUKXxdV6enPpGe15pZM3SbQH/g=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:To:References:Message-ID:Content-Transfer-Encoding:Cc:Date: In-Reply-To:From:Subject:MIME-Version:Content-Type:DKIM-Signature: DKIM-Signature; b=ri8HvU7bWzSD8EHQuHPHdwNC6NxsgLw6cPCyew8+KPYMmr0nyUfEB35JRF2Jz1o8Ii7C/Fzxui hFwW69mcbWOqHpkqLJbywSAG2MW0pjl+lN370KIkZFRbE1ufILbKTjZJVjjheW5ahq77NCiqfY iKvK/Cy8Xh7/m02EC0RW0JScYVtSHMtlLv50sf454tk8dFuPVogih4HQOofZ3zt1qCVHLMg6gQ 6DJJjMH82vm+HUugC5/1p7EOWzvIA1varvahzECuZiG8CaKo6dRbicFJM720fx0e0I8X/6d/D8 EZ4ccFt5lfazDXJvZPtNUc86///I1wuQFDXjILWBFCOuow==; 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:To:References:Message-Id: Content-Transfer-Encoding:Cc:Date:In-Reply-To:From:Subject:Mime-Version: Content-Type:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=xteZ2DEwifVku5J6Au6XOzydkfV7ylNawjXupwzSSO8=; b=gOjq7QQfwd/V3pVDLmfVnQLBnJ bW+3gv0dy9uNtIkg8kIKiE8mLxG84jgbD07wwxFZ6/asnXEmIqD6SjOkGFJB8HXyRjNLGPLfK49ac dDVZViAXrDo+LTlLACyqA4xt9/Li7G8ntw7WbEw6PLQExkF/GxF0nlInnbbv3u9IXllKtTnDU2x93 SzQT6j7f99FGKqButx5Vu7kJ9E2cVbWQ84un1n6rlOPqeSUIL9Jp9MnkF7R3s4HA7ryD+JKWUOsx6 Ezu2WgV0b91Eg9QqzR7U7h7HfxnsP0z6biYdoaetInEWuoM1QtPY0/Dor6btLvsK9ileU8CnTrr3/ g5D5cnig==; Received: by zero.zsh.org with local id 1pzigP-000K8Q-7a; Thu, 18 May 2023 18:49:01 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oa1-f53.google.com) smtp.remote-ip=209.85.160.53; dkim=pass header.d=gmail.com header.s=20221208 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-oa1-f53.google.com ([209.85.160.53]:55417) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1pzifl-000JoW-Bq; Thu, 18 May 2023 18:48:23 +0000 Received: by mail-oa1-f53.google.com with SMTP id 586e51a60fabf-19a427d7b57so263877fac.2 for ; Thu, 18 May 2023 11:48:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684435700; x=1687027700; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=xteZ2DEwifVku5J6Au6XOzydkfV7ylNawjXupwzSSO8=; b=eu3+q2YFobwJqn7GL3CamgOWyJIHU4CXNlaefVE02MFnJ5O5JPq1oJBo62X+TmuE0V /gNcxk1xdkxltNYuhXRjx0j/s3zYXgFMd1dc6830UfHXSVJsWKVLexA44UTEuM6eQy27 eJ9dDcC7iHKEeGmZPnUYTNCXFwbR9tdxCtpAkWuCMHwTNtc6HpG8bUYMlQfhv+b95TTL MXqcBPwWQBfbKxDXI7bmvGS0abudViUGg3AlT2ntKLFN36uZ0bGbsaqjyUtEnwLfgSXV dWvEsC1R0MUNL6l/ps72vqDnnyzCgsoQOSDi1lj5+TodUQP4CNol1JqfIkSwa0vGH69S SDJg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684435700; x=1687027700; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=xteZ2DEwifVku5J6Au6XOzydkfV7ylNawjXupwzSSO8=; b=KxVdHRW0zl/l3jrW1CnDGbzFSnFiiwrHPPL7bthXWjLeoseinWdNMLy096AIRmXFSQ VmybwLCYIhcxxjzKygNZgO86mKouy1TRsTHQON5K05whxYOi8j3KIc4vggf05Iow8rV1 qBeep9H+ARXNcqc2pwkp0EB23abj2DZoJDDY3FILilXd3lpzL61ROqjPxOm80af6W8Nm mm87LzefHBG4PHN7kh/7Pfsl+vksVL+Lkw9ltgPAimovdYaSLL1UkRCL+uLPkWYTzO9j rhLwvjw3Uq6iexFqrg8MoGpDaCZsGBIbctUe5Cq9hcL4NWbeo2H4xrdCocWH3CZ1DiGx nrug== X-Gm-Message-State: AC+VfDwsJus2A7w7T5ODIrsiV07ogHD/v2qX/hORgvWOVmtYwORQbLB7 r6xs5/oRXbJK/qW3fHPcIS4= X-Google-Smtp-Source: ACHHUZ44OeTvBPhseFoEvg/5BHtHTr2Unp37vA8ZiWWBmltNWz5OBkDz903oZT6q/yI7i2v9MSFxNw== X-Received: by 2002:a05:6870:a416:b0:18e:2e28:d3aa with SMTP id m22-20020a056870a41600b0018e2e28d3aamr1234943oal.31.1684435700193; Thu, 18 May 2023 11:48:20 -0700 (PDT) Received: from smtpclient.apple ([138.84.33.139]) by smtp.gmail.com with ESMTPSA id dx11-20020a056870768b00b0017b21991355sm1087553oab.20.2023.05.18.11.48.18 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 18 May 2023 11:48:19 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3731.500.231\)) Subject: Re: Literal `~` directory created? From: Tom Vaughan In-Reply-To: Date: Thu, 18 May 2023 14:48:17 -0400 Cc: zsh-workers@zsh.org Content-Transfer-Encoding: quoted-printable Message-Id: <74770309-94CB-4C2B-8FC4-C89A8064B293@gmail.com> References: <92F7C23E-37C1-4204-95E1-6B8050F9CAB0@gmail.com> To: Phil Pennock X-Mailer: Apple Mail (2.3731.500.231) X-Seq: 51757 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 May 18, 2023, at 13:59, Phil Pennock = wrote: >=20 > On 2023-05-18 at 13:50 -0400, Tom Vaughan wrote: >> Thanks, Phil. Based on this it seems like the problem is due to: >>=20 >> mkdir -m 0700 -p "$_cache_dir" >=20 >> 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/_stor= e_cache#L10: >>=20 >> $ echo $_cache_dir >>=20 >> $ zstyle -s ":completion:${curcontext}:" cache-path _cache_dir >>=20 >> $ echo $_cache_dir >> ~/.cache/zsh/compcache >>=20 >> Perhaps this tilde should be expanded? Running the mkdir command = above creates a literal '~' directory in the current working directory. >=20 > It should have been expanded _when you set the style_. >=20 > 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. >=20 > You should have things like: >=20 > zstyle ':completion:*' urls ~/.urls > zstyle ':completion:*' cache-path ~/.cache/zsh/${HOST%%.*} Sorry, I'm a bit confused. The previous link is to the zsh source code = mirror on GitHub, specifically the definition for _store_cache which is = what calls zstyle and mkdir.=20 Do you mean that, in this particular case, radian should include these = two zstyle commands above in its setup? But if zsh provides a fallback, = is this really a requirement? FYI - I left out that I traced brew, which calls _store_cache at = https://github.com/Homebrew/brew/blob/16b2a14c9408140b04828462b660d3005642= 1fdb/Library/Homebrew/completions/zsh.erb#L143 -Tom