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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12356 invoked from network); 3 Feb 2021 22:34:02 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 3 Feb 2021 22:34:02 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1612391642; b=vGw/4zjkGPKc4srNQderENxP/+nrsGvGyX6ec//QPB9aEdSDJ182kQou2439rEqQjcPyH+SJIT pLsEofyW+cfEzFqST+aIC/irtaqzMIISQuUnPIvqtdmfERX2DEwyuZyeotUj4E5S1nY3HveXSG V41zZSrbjeKSjXscJ6u6co1gFVQG/5Zeus1b7wvY2KRH+2JN4vYoh/a4TZtxC6RUV/bpmGOYpn JeBLTvb74x7IinlIv1jFKHyFFe8hSq+PBC1JVcLUriedGTBS1AXRdmaP0dGdQAjVQ2wSpy76ny cjIpsASdYLI4QXKMmLFX8c1ORwJ/C7uWoi0dsBSuX/om4Q==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ot1-f53.google.com) smtp.remote-ip=209.85.210.53; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1612391642; bh=EDKxH5FZYyaBN3j60VC1AaX4Kn2oQ2jdojabvbZ+FQA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=aYyMy43X119YM4CAl/T3MoaEEen9qHRN6aWmvYTXgg1gKRFTtZBwr8GxBjsdJ0fUsLkDrOEsWa t00/aaw3LQHZ7A+ZM0ktd/FqEc+oY+pJVpfCrdwJPmg33X4EALYWONWawZL1q8RL1VIvgVJZjh syo+mnjJ1jsk6nTxVJCQuYD/0d/QAkfNIO2fRQec9VWyX/p2rSxOWVZQLdE4Ops+d8J5a4nMnV I/3CjvqB7H/cb4t08nzavfqoDDzHRAjKFHgHWSdArilHA/eFs1XdozIDxtL4V4oDM7TXBGReLH spoUKzD2uO/zOXfq7eqsB9WbixTe7ayxza9V/VjX1HVppg==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=aDn5C5Y0Ye6lckOnLTBSspdXEuJg5K/qF6EJqsEZXPk=; b=ApEXbxuRbP719X1tE9iiqOPKIp y71WOmIRH1fvjzLxz+v9uNV+4lpWLGsPRwDuKRQ57ksDmqb3izXPtpqzaz5UoXS3dY7YpZSashTDt xmN9RDIns8sCD2OgUV3bzuTsmWmuCOTZCpDPIo46A+CboBPLw7ETsn/c76F5P9FjCivP4WGLTWJKC JA5frm7R2vGt/my7peSMeLOGEYNxEHLv/W2+V+IipyQjbRu4JEfuWmRH+JBfX+ub/BJ4Eq8j7MKPA MQn+bLYECudPrHmda0TRLVwpW++G7z3BTjbIPhpMSJpLcywz35ZFKBZYxt/nQizunobFDuEczh9pA dGv9SRpg==; Received: from authenticated user by zero.zsh.org with local id 1l7Qil-000Bpv-6P; Wed, 03 Feb 2021 22:33:59 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ot1-f53.google.com) smtp.remote-ip=209.85.210.53; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ot1-f53.google.com ([209.85.210.53]:45278) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1l7QiT-000BhL-JC; Wed, 03 Feb 2021 22:33:42 +0000 Received: by mail-ot1-f53.google.com with SMTP id o12so1442376ote.12 for ; Wed, 03 Feb 2021 14:33:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=aDn5C5Y0Ye6lckOnLTBSspdXEuJg5K/qF6EJqsEZXPk=; b=KIhtONC2Hol/KBYt2OF6UHRU2wTxSNP6v1k5aASWk0C5FfRKoiRzkdGw3DEHBJ6/bI ZadKIHGajLEakOszwtHM9GG1v/uSjxZ3ZOdqyBHKqMNTe5cAwK3WLf9In+dBUYP+ipfn 5vBpUlOvtYmPCePtnR5GTrKnAQfOQGb8P0+tu4t5tB600sHQYbzj0jsDw6E3QgYoPY9r awLRgzus3ErQtykPipzmP9o2gARZlNAkG1/S3dK6LYJ13S+Kj5GXTSuWPPKLxtvXY9A5 3q9I0EnsPwjXlAaSZuz4CF4mqgvt8TH5hE8Bu0XDvcz8gu7QCmV3JD1Yjm9qpCtdLRlF 5Y/g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=aDn5C5Y0Ye6lckOnLTBSspdXEuJg5K/qF6EJqsEZXPk=; b=Tvm42f5Kg8Gi4Qe0xNU5UPraq77jXOQU/S+dvfpNYjwxTMRbRVhWQiBJFT7R5N8CT5 kMNwJnx97VvhMrMjYuuuXRQHI+Yqm4OD1eX9HkryGD2nQQnseo+XA5rswUhrjmy+JLWm VKz6rsi0h4Gy5kYPjqBySmlAw9wdUOZ6LHr9RJKve8GjPvmaZFa21EML0hYW3//2xWiB NQf20/eibruSadI+rmQJPcDZM4sGSkTgu+y4wmDgDB6iEs9eJQUCGCduzggsS6AX6/ln Q6Qf/LHkzxPR/QSwTycgBLF+N42b9Ma9dZHKjWIaslqkPKU65pyx17se05svAjrLpf06 DhLQ== X-Gm-Message-State: AOAM532KLJ2kmLK3HGXk0EBv0tMdeuqkpSjdHBnNpS1aDZ7j7VfxMfd/ NHWNMG2Q+zHYVQYM5QMwFH20PJiNZKelAKZr0TcdrQ== X-Google-Smtp-Source: ABdhPJy96KyFjkVWTcx4H6sFkSKvIgEIcuRascJQ1MMLYmW0tY6EUKP+sQGEqllMKiujV2BfaNFrM0GrOP15uVmiWQA= X-Received: by 2002:a9d:6358:: with SMTP id y24mr3492533otk.229.1612391619862; Wed, 03 Feb 2021 14:33:39 -0800 (PST) MIME-Version: 1.0 References: <20210126235605.GC25751@tarpaulin.shahaf.local2> <20210203112225.GB12261@tarpaulin.shahaf.local2> In-Reply-To: <20210203112225.GB12261@tarpaulin.shahaf.local2> From: Bart Schaefer Date: Wed, 3 Feb 2021 14:33:28 -0800 Message-ID: Subject: Re: [PATCH] Tests for globbing below protected directories To: Daniel Shahaf Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 47909 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: On Wed, Feb 3, 2021 at 3:22 AM Daniel Shahaf wrote= : > > Sorry I wasn't clear. I was observing that the expansion of =C2=AB*/*=C2= =BB does not > include =C2=ABfoo/bar=C2=BB, even though the expansion of =C2=AB*/bar=C2= =BB does include =C2=ABfoo/bar=C2=BB > and one might expect the expansion of =C2=AB*/*=C2=BB to be a superset of= the expansion of > =C2=AB*/bar=C2=BB. This could be surprising. Perhaps, but that's the definition of the difference between "readable" and "searchable" (executable) directories. In the example of =C2=ABfoo/bar=C2=BB, if the parent of foo is searchable but foo is only readable, then you can expand =C2=AB*=C2=BB to discover foo and attempt to "read" under =C2=ABfoo/=C2=BB for the existence of the known name bar, but = you can't "search" foo (expand =C2=ABfoo/*=C2=BB) to discover anything, so by extension =C2=AB*/*=C2=BB can't include =C2=ABfoo/bar=C2=BB.