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,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 8129 invoked from network); 26 Jan 2021 23:56:25 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Jan 2021 23:56:25 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1611705385; b=omP+7Opg8lUCNVSXBc7c8JuZgh2yxEYRYHc/w26dwizdpNCV3V8D6Lns/HOvVrsS/1aUFvCqpz DoUqztl5kw90l3Daekrs5Ao2hUiSWhGHdICv09yAvNk1RiBdRABEwz0F/jlX2kVTjUGiGfagmA Qwhyg1tj64/ProM/h1e7kzWj69GMDnlNHsNeXEvaEdeE0BLaMwrgg+0x99UXl4XcwoT+Fb/Iy2 U7KFqxM855RO+RKlL1Pb0tQOdBjtSgfnZuAAW92SreZIZxPYmO7ngvfs037jyPQ+iCqEx8Q8DN sWrA8mpTbLFZ5+64PFLqSxw5AV6Q01xwkw7gsQYfpXcO0g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1611705385; bh=4MKFlapwE2mZ++feF7XeyDYeYqvTo//nrlnpVzJBjfM=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Transfer-Encoding:Content-Type: MIME-Version:References:Message-ID:Subject:To:From:Date:DKIM-Signature: DKIM-Signature:DKIM-Signature; b=wkjl9LKrhlIXXNpronFrTYH67T+0w2um4cfI3/3m2mRgrfdyRgOP68f7tJKnH2t6u/aag6Lkg0 BghimgOzQuZ3heiCNNJq3PBjul7+4kbHUgoIEIqmDEw+HW0IM1Ut6p9PrVaOoK+TlqHAvq82j8 spAZ+mO97ShR10RveXqZGpzkOJT4PpIydF082iOjWPeoTb76xaQKKjDMepF5nRUaa1at5kb4Wm w6TrxxlMGfqAK8dU9sPTmoh6Dr8m02I6/9DqJKKSoyi+EkVRdwHDkurGhh9ar0pDXXKIQjv2zJ ae3BnII6qcckuta5f6jt1HoeEMh4+DuChJj/rmI9GnOevA==; 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:In-Reply-To:Content-Transfer-Encoding :Content-Type:MIME-Version:References:Message-ID:Subject:To:From:Date: Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=+US1HLkLOL7iq9hH4XRMgDp+re57MokdSnl7EDKndKM=; b=xCFbbUlgaqWJMqVjIbuXmyLfU/ f44FahLBjGBnMKo1ln/uP53SfEODrZl+Imw6bHgI9kf5Sc9zCU9t4Ho4CJ4qAIG7H3lh+azFUAAn0 33P5oqgfJ8YGvYMJ9CuEdt9N4KHGkWr3/HU7H45Z5SstUTFnnn881comE7V3Fi61jwLUsHj2OMRKa Lqooc8+E5gpd86SWIfNIfKwRs5X54Y/6cCLqYBfG/mimwVTE8Y8EbpL78p6BPXyBy0QRO6aJaomEt n7k388Dd2cYbJHgjnZvwu/bKjG1X38xYaW76VW3vdd6uvFYsaQJWlcLm3VJPLHOM4tjBEiNSIn+wL Dw2aEAuQ==; Received: from authenticated user by zero.zsh.org with local id 1l4YC7-0004uh-Qd; Tue, 26 Jan 2021 23:56:23 +0000 Authentication-Results: zsh.org; iprev=pass (out2-smtp.messagingengine.com) smtp.remote-ip=66.111.4.26; dkim=pass header.d=daniel.shahaf.name header.s=fm2 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out2-smtp.messagingengine.com ([66.111.4.26]:51013) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1l4YBs-0004gw-I4; Tue, 26 Jan 2021 23:56:09 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.nyi.internal (Postfix) with ESMTP id B2AE95C00F2; Tue, 26 Jan 2021 18:56:07 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute3.internal (MEProxy); Tue, 26 Jan 2021 18:56:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=date:from:to:subject:message-id:references :mime-version:content-type:content-transfer-encoding :in-reply-to; s=fm2; bh=+US1HLkLOL7iq9hH4XRMgDp+re57MokdSnl7EDKn dKM=; b=EpJRar2kmAS7Jj1NsxpyTF4++puIoiZ9xlSlk7Nhl6e2ZesiUlPStFIp WMHNzckuYsMCufq/mY6Gp9Mx+YHhZ9OzljGdx/pBOrBF86ybAiB8xmfFsp1ru19E juLYgISmYA5hoG8ATk1pXwiWOaQ1rGnVmo1al87fLM5ySapG/Q7uV8akiGM6YgMf W3SrrZXhZ31oPSDrb6Yd/Ow6kpgL6dXoocDcglGIrIe4DYn0ZYuGKJTMjCFCtYxI xie7D+Z6tgKh0/qP283gNtUHHg1H/stiSDRF6RDEFLrM55KUSZG/oO1myocIHEFJ 1/vzSye6CYkSA77IfJVowFn1K6yTTQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=+US1HLkLOL7iq9hH4XRMgDp+re57MokdSnl7EDKnd KM=; b=Nx67+JsvBaUGUkhCSr0LWXuBxpvgc0EhiD5Drk8Fluq1lMhAX6Jhb1M2U dKEYYzBvDFOGxaROEuBNvVdpf3R723JL1LFGV/awUT01XKIGFDkumbXXTGUYGrJZ F7HfIEt56G4pMA2ZnT26uxPw8NnXAabIP9MEcCKPxHy3vdDhAOiOO8eX8+qO0cz9 Iw/Q5z6ava+bIq/1ytprbWTWsmzcVl4//NHyjMAKeRO9w+ZpppULRNJM7tHthCDQ syTfBkXl0XAVqfkALvlHxL0o6wVNPGwU+41Y+KS4TuhyZ4kRSQ04xRYf33BFOAP6 TafYWLJ+ET5gpcuDo6+ZBrejWchiw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdejgddujecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecunecujfgurhepfffhvffukfhfgggtugfgjggfsehtke dttddtreejnecuhfhrohhmpeffrghnihgvlhcuufhhrghhrghfuceougdrshesuggrnhhi vghlrdhshhgrhhgrfhdrnhgrmhgvqeenucggtffrrghtthgvrhhnpefgkefgfeejgfdvvd fguddtleelkedvfeetiedtudfhveevveduhfdvveeffedvueenucfkphepjeelrddukeef rdeihedrvddtgeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfh hrohhmpegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvg X-ME-Proxy: Received: from tarpaulin.shahaf.local2 (bzq-79-183-65-204.red.bezeqint.net [79.183.65.204]) by mail.messagingengine.com (Postfix) with ESMTPA id 49D3D108005F for ; Tue, 26 Jan 2021 18:56:07 -0500 (EST) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1005) id 4DQNsx5tBCz3rY; Tue, 26 Jan 2021 23:56:05 +0000 (UTC) Date: Tue, 26 Jan 2021 23:56:05 +0000 From: Daniel Shahaf To: Zsh hackers list Subject: Re: [PATCH] Tests for globbing below protected directories Message-ID: <20210126235605.GC25751@tarpaulin.shahaf.local2> References: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 47879 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: Bart Schaefer wrote on Sun, Jan 24, 2021 at 16:15:23 -0800: > Does this test look as expected? It's a little counter-intuitive that foo/* is not a superset of foo/file. The former can't tractably discover d111/file, of course. As to whether foo/file fall back to readdir() when the directory is readable but not executable, I guess this was either discussed in the other thread or is ETOOMUCHEFFORT, or possibly both — but it's too late right now for me to go look, sorry. Thanks for the patch, Bart. > Note there are trailing spaces on the "print -raC 2" output, which surprised > me but has nothing to do with the test itself. > The trailing spaces were eaten by something in the email delivery chain, but they're definitely unrelated to the test itself: % print -raC 2 x y | sed 's/$/$/' x y $ % Daniel