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,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 6004 invoked from network); 20 Sep 2020 19:33:56 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 20 Sep 2020 19:33:56 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1600630436; b=MGeqr0PoagCZT2Uo71fQBkPM2OPhLt8UI0DK3hRkYpo3mMmH7JDxJO6kmQXHKkv4RY/NFs1oSG 0A8cFzr7f28OyQT55+h6bUGGHDBc0QCyNxOiJQXVA3+XVAu6iAWz4Sf8SNAF6AL4YB/wcyBsVg dA2/air15/hm/s5wktmY17vC3EQap3bJ6pBhT33VTwogKnbrXgycL/fgJXqQbKGHPtr2KUc9Vt 6ukpDKTar7tavVYTkb9kIAbGucHtwlpaneU0MUYjlbU0JTlBHFAdrOHHT9DZZVdbvzLEVU5CSN cl11Oh5DiYLgGWwYFg9FY2TUk+AiQRMFc5LpmAdYAdgOTA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-il1-f180.google.com) smtp.remote-ip=209.85.166.180; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1600630436; bh=NtCMrkHI4xIdnthiLDJ8RfpmrcJSWGzVq0DIqMqhb78=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:To:Subject:Message-ID:Date:From:MIME-Version: DKIM-Signature:DKIM-Signature; b=TZkX/VZ9cXyae+jnPRU7gbemeVCVlPrX3XZbcuhgS3ntdjtjsCa/ZEmZ2gAf2aMvz12d6hL8Z9 TwR8mvL6FfbmRazcCUT9QXEKmTFMGZFK+ELhYr95QaDWgZ6X6j+Y+9GqxOa5UMrlf0puHOcgHJ gf+jMr87LwOevAlAop465MXVGzay7jk5p8u9cYcwMEZjS9PGYSOzuSD8V0gj4Eajk81oDXQD36 dyLNTbEmb/EUvui4mQvrBifU/+EU2edXUhdsGJdpZEbDg6UEC/eQjo3MCY4ZXrpHaFhheLaT7j Ii4S6SA5y0c+cYUZmXLK4vuMt4tt4vY8LA6KZDpO9syDJA==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:To:Subject:Message-ID: Date:From:MIME-Version:Reply-To:Cc:Content-Transfer-Encoding:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References; bh=EOf1D/v4xnheMawES/A4mi35w9IpN3bDfVVu1DflFAk=; b=gAvRk8rVJWcUiqqv/3L2C7/I8C vxIcZ7nT9yEKTC9zbsgu+bszFo9FLPLWoyqoyx+fvVo/IE5CV1oT5s4zMSXM15B5n7wRG1sd2qgjt b6tn7au9OjLTGvmN42VmgDxtwMWRDS92NU6u8cWy+TjrQO82IYXfFdp7Oht4Skxwne9xkl7lMF3oH fytSOJWXYkDZ4giV2YJhNuHlB15Ua4Q8WEIM/LKclsYyQYu8cP2D9qKvUF92i5Nep8XC0c4AuXPvE nI7sHj01OBCwnZX+2PxBhQWHAfn0AG9KKtsu+7qYx4XyRlKf5GzQXUCYhxbw9Owedyp0FWavpx8v+ 42IOfGHQ==; Received: from authenticated user by zero.zsh.org with local id 1kK55t-000LMh-2F; Sun, 20 Sep 2020 19:33:53 +0000 Authentication-Results: zsh.org; iprev=pass (mail-il1-f180.google.com) smtp.remote-ip=209.85.166.180; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-il1-f180.google.com ([209.85.166.180]:37635) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kK55Y-000LDv-22; Sun, 20 Sep 2020 19:33:32 +0000 Received: by mail-il1-f180.google.com with SMTP id q4so11670810ils.4 for ; Sun, 20 Sep 2020 12:33:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:from:date:message-id:subject:to; bh=EOf1D/v4xnheMawES/A4mi35w9IpN3bDfVVu1DflFAk=; b=ehjvEuJ7WUEev/NCL96hA5K+QhcCXWcir/VsXXf9R2Shl7WzDqDZLBU8yLM956G6EP mf5PDR8aPkJSCjCUQgsOLZxmwTZletaBvY8LNgX/3D7ukMqpzzP59W+14BdJQPCbwYHs 8qgGZWJoETIdV0DsUso/xi1TFc0WzzTR6eeQE9PbOxK53khCnpGQqIkglmLZwrXqKo3W sp2CMNy6whbsT67DXLFHK5zT3kN3L6l7aznzxwYec+8a6RFhgha2DQc5OWcXiipEzNcb qXHTGQDMYXsSJPRpfVN8r2SboL8GhlL0cPwOW8g+hJe+iiGOUV2vVXs+B6f0HyCQp8BE PdoA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EOf1D/v4xnheMawES/A4mi35w9IpN3bDfVVu1DflFAk=; b=GGUcyClMWYnTnPwrp3kYxmkgMh6hxRNzB+feGy8Ib7KA0c/Po8Uv8t/YCGIfu3Jm5d lAjT8Ui4S+mnwZlez+dkn7Dj7heWK7RAQ+t02YNjLWN8boWC004vSGcY8a4kIvaBMytH 01hhYoWO6u+WZUrQfBEeSxQqY3S8JQsyqnsSQcV+eSkc5q8rXCTxRFvLw1ftBr7X8HQU HFFfGnydxYuA943930Lo8Lb1ySwC2zfniTQFh1WcDKaYkU33mrFL5/vH+hcd7FmtPS0U LzGr7JxuvIRWtH6Lr0HDVXMxrt30nho1mCI/HVJjZH78u6vp1jqEKpbU+jNGsI5Gq6h9 TYBA== X-Gm-Message-State: AOAM531X6QSbJ2pjxF02OJxIyFSsIXmlipaONASEMxrorIsto8difxlh 9JBD8Gw81zO4XW8wjOhddciKK0ms5444PBMVJQnPQXW4kuw= X-Google-Smtp-Source: ABdhPJwVxFDpywjOebkqQ9CqwHBHAJvfHXpc8FIma2Qx3jEartDlVgKsgO5IpHzJOQZniTK6p8kzvTecuk+HbJrpRQ0= X-Received: by 2002:a92:8509:: with SMTP id f9mr32429740ilh.253.1600630410475; Sun, 20 Sep 2020 12:33:30 -0700 (PDT) MIME-Version: 1.0 From: Jacob Menke Date: Sun, 20 Sep 2020 15:33:19 -0400 Message-ID: Subject: Bug: Missing local decl in _store_cache To: zsh-workers@zsh.org Content-Type: multipart/alternative; boundary="000000000000087de705afc3cfad" X-Seq: 47395 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: Archived-At: --000000000000087de705afc3cfad Content-Type: text/plain; charset="UTF-8" Hello The Completion/Base/Utility/_store_cache function is missing the local declaration for _cache_dir. Thus it is global. I do not see any reason for it to be global seeing that it's value is coming from zstyle in the function body. Because _cache_dir is global, it is overwriting my named ~directory for the compsys compcache directory. I believe line 5 should be changed to: local _cache_ident _cache_ident_dir _cache_dir Thanks Jacob --000000000000087de705afc3cfad Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello

The Completion/Base/Ut= ility/_store_cache function is missing=C2=A0the local declaration for _cach= e_dir.=C2=A0 Thus it is global.=C2=A0 I do not see any reason for it to be = global seeing that it's value is coming from zstyle in the function bod= y.

Because _cache_dir is global, it is overwriting= my named ~directory for the compsys compcache directory.

I believe line 5 should=C2=A0be changed to:
local _cache_ident= _cache_ident_dir _cache_dir

Thanks
Jacob<= /div>
--000000000000087de705afc3cfad--