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=0.2 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_SBL_CSS, UNPARSEABLE_RELAY autolearn=no autolearn_force=no version=3.4.4 Received: (qmail 13927 invoked from network); 25 Jan 2021 14:06:20 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 25 Jan 2021 14:06:20 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1611583580; b=g/MQPafLIizt2VcK9rm6fpK60zUMWjTqIHEDrgP1j2emc5UxgcCvo1y8LHHzxm1cNhEnuIFkpC F0gRoAP9IVyJbcAAR9FYf4sRfN1jSKPMN8R8hqIHAVW2EybKdyzmXrMjwZsfRDosk5cs8I1p93 jdUM4nvIkW9WSviJgdhQmQ8MjlhEUmFkJfz4f3tXVrCsm7lRcV0VI2rXO0+YidnGUuKZVi5iU+ W8khvLPcPh56/uKkHDJbjTzQalYcdAj3ccQxlIpJjGgfQ+PLeTTvuKfSsEW5IHpUWmla5T8GK+ r2aXedyPpoIRGvkV8sqX3r8ajNwBVHBYEURs2xi/jeyCCg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1611583580; bh=Q4bvL5Z8hR4W9/KrJshbGD95l0obWk05b8qNdxspoTA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=bqRniTAUwY6tIU1ttIwIB1WoZAU1XzVHB/KOkg92YUQlqC0ROJEp5j8Zv6GfS0PhtUbmSHG8BW wBJRrGJKHDqnOr0WYe9XBVoDur65qnf/RGC4MldPGPbsV3h/mbBa8s9urrXHyfws5zdCfs+a1N leZkOFyORiUAtQGMWQ1QAU0bmW5ZnBo6Ok20nxqRSAPpuVwf39tyhxz2euVesqb8VyBE7Iwr7k ONEhBhDYGX+7FucTU3WzHONocAGm0QDPMHtGIe5TRnvbV8vZNvXnN0eeNZUOBEpLB1+bjPP8sJ Tq5/UICf67JReMoo/nTov8gfSKNm87Y2jXGNShsc3+/WrA==; 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:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=mBDNYxXoxmJRsZk2AQEp52N1oXARkpp0atR1lU2piTk=; b=y/GaTrPGG21DHbsMDDv3D/ZRxR FIcCOTrVpIgFuvqr9rkmC2wtHu/OG2rkmYYcTMqeWROgyCXU0CALFWgwxWHVBJEwycr1gcbTUg8k0 FehHkOkdmNzfOt3vqCBZltaZKd0iMQDLidD7g4hUm3pczLWfIC2dnHRWEuZKu0Mxvw2mS4VHlOwfo O9bZNh+fwZeUquHV6dQJAVrUtaG7DqEIElz025qqJYOrIMJOBGkdtuo/0or19pUex7KMrvTE1bXUJ Ppu/bX1Ba7QYxnyXA8lIRU0wA9QqQkDSL5ta3YA+C08bBkDxQ5Fr6jGgxEI9AxklJjQ+t960aS3Lr 6lXKdAAQ==; Received: from authenticated user by zero.zsh.org with local id 1l42VU-000FgG-UC; Mon, 25 Jan 2021 14:06:17 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:60652) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1l42V4-000FXp-Pg; Mon, 25 Jan 2021 14:05:58 +0000 Received: from [212.54.57.80] (helo=smtp1.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1l42V3-0007Ap-MC for zsh-workers@zsh.org; Mon, 25 Jan 2021 15:05:49 +0100 Received: from oxbe20.tb.ukmail.iss.as9143.net ([172.25.160.151]) by smtp1.tb.ukmail.iss.as9143.net with ESMTP id 42V3lE22xxC0w42V3lXCMZ; Mon, 25 Jan 2021 15:05:49 +0100 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-workers@zsh.org X-SourceIP: 172.25.160.151 X-CNFS-Analysis: v=2.4 cv=NpcUz+RJ c=1 sm=1 tr=0 ts=600ed03d a=Ip+kZtMD4PYul4iMASbA3A==:117 a=DeGUKtW0en8A:10 a=IkcTkHD0fZMA:10 a=zAZwVUNnDPoA:10 a=q2GGsy2AAAAA:8 a=Vv31VQ4LQiOGitZSo5oA:9 a=QEXdDO2ut3YA:10 a=z9dJwno5l634igLiVhy-:22 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1611583549; bh=Q4bvL5Z8hR4W9/KrJshbGD95l0obWk05b8qNdxspoTA=; h=Date:From:To:In-Reply-To:References:Subject; b=VLKCxDJPT4gwr2y05Ieqs5tQR33BW71EPkqhj2jvMfNgWj3zy5rR4Qh6I4rswza5S rAmSQe34cgJne2MA2OgG2m4Ck95Qa5rP0OhHL0f3x+9l7oC9WmOMN1dgF+Dcrm6WZD fYd0kpOqwgmeaCpEdh6haj7As1Bqcr/YARdnExzHKzrl13JcOg1u8b8iPkOKlW3Ekc JIY8NzLqY34egzFTlqGjfiRy+6lMrj5oAxJuyTXnu5nE09AwTbJX5nYt9kosh6auRG q9dnuNlErbwBb3lohRVjn+vsYpKnXF8QoJL/QGNTaQHuYyxC42M/AngbCctnZbUFbE A8MqSQr/0pqEA== Date: Mon, 25 Jan 2021 14:05:49 +0000 (GMT) From: Peter Stephenson To: zsh-workers@zsh.org Message-ID: <1009925809.3264416.1611583549597@mail2.virginmedia.com> In-Reply-To: References: Subject: Re: NO_CASE_GLOB and unreadable directories (Episode VI: A New Hope) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 165.225.81.25 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfCxe/UQwguVn61GHo8S5hcgaRXJ6RxnRQOfSCPjjoDohHB2KvQXLYGdGRbEO4PbGDT69O5nSTQ4e58zR7qLMOLM9OcaZ3L52TBb04chbQkNSX/iTULFk Yi+BvkEwwTB/6b2WraEoXtdZM7I6pCdjjDNoApH3B6UJ0iQlFKgIw7Gah3jcZDNhAi1iXIXaUMensZchlDPvbtCTFUCzETia5ha0ytjFj6CIYTvbU7YP7iyp X-Seq: 47872 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 25 January 2021 at 00:52 Bart Schaefer wrote: > I see these possibilities: > 1) Do nothing; Devin's case is broken by design and termux needs to > come up with a solution that doesn't involve NO_CASE_GLOB. > 2) Adopt (a CYGWIN-clean variant of) my patch from workers/47832, and > accept that some current usage of NO_CASE_GLOB will break. > 3) Add a setopt (CASE_DIRS ?) for the current behavior, and merge that > with workers/47832. I haven't yet worked out how to avoid having > "setopt nocasedirs" imply the effects of "setopt nocaseglob" ... > perhaps name it CASE_SEARCH (?) and simply leave the implication? I don't think 2) is so unreasonable in that only patterns with some form of case-insensitivity are involved. This is something of a minefield at the best of times and getting something that looks natural on systems that are intrinsically case-insensitive, whether or not case-preserving, is difficult. But with a new option it seems to provide a definite path forward in any case. The only serious objection to that other that I can see is that it makes the code more complicated; the reply to that is if the code is simple there's a good chance it doesn't quite do what you need it to. (For the same reasons I'm not actually commenting on the details, since I'm well aware how easy it is to miss some crucial aspect.) pws