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 25640 invoked from network); 13 Jan 2021 01:29:03 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 13 Jan 2021 01:29:03 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1610501343; b=fYSq0hSnOZ3D0OfuTUifDB2t8FRtbdjm9aMemkCx0Uaw8wkH1o+fOvAlIX8gyKtFT3qjix6bHR 0Ua3IYiNUKJpSch7VWDNhhPm/BPB5TIRrBxVTAnJikXB+Cs9o1bkM54VfCTDVlWgjz28oTP6Vm RIcPf5v6LipGvhU6D83SrG5EudT6z23ILkUb00nvtoRzWz9RU8sZ1m3HefaEBbIX+3Abdkvh0G /62zkr4sKtvsSzYTiM6JP2zgMHgd6obc8F88nuRXes9vJYoOggSVdfy8l4qXCzFD5SktluH8zk McY1Pp5L2oecX47HdDGC9WQxWZpYCnG2lWhdQRItdSm4+g==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-oi1-f177.google.com) smtp.remote-ip=209.85.167.177; 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=1610501343; bh=RrEyMrHalWHNBuwm1UTcXh1GIxkhxnW/VPu9fGbYio8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=zYENY0PPbaS+md1GBW1jmKZSXe9wSNVQmf/LK3ibuD5E8rQloXAd6WUqsJopFTvEKUlkCXHIIn twj7d6Grf4slBAvoG9u9D4LF1+GsqZ5z07U7mjA23+sZ1N5VdhgYTetly3mmGTkbdSlE+yxBYf klj0qn5wMxf7rTMEdABGOxkLvX3/s2R1t/Intln8Ci0qxQmg/WKluwv4G8fg06xj7Q3m1o0aK6 nkG4xWhMOc/0U4YT7OhccQpnqTWCd9CtUQNSxslgpeulCciWk6VFZLFFTbpgsW5vhbFkUoJe0c 8xkwgJoKH0Sf7Wa4n4RaaQF8/c55ur/VuO0HCRfOgTFnxg==; 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:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ixX50x/hJHGfgioRfJOGdOQtEPEFQF/2bI6XhgRcH1o=; b=n/nLt0ANYx+eIK6OpuNroeBd5r MD18hrOZoujTrLmIS5hdLQWr9w3zEmkfUvMVQdx/+ubTQkP6ZHfHxj7WFp22hH8UBuJmZQHxSJu99 vBHxvZsgYnXxKc5A7tNTpTdXkAxOBYK15dzdRoLnPvkoCtNDwfM9vleXf7+UloKU7WpZT9oI5RP4P xO3ZusyVpA98avSeI01Odjd+BtIc4G+Qry+98D92n3j344yCHIbryRjGGh3tBqu/nx4dGKOLRLxR7 OzmHBibZlho0KdluiSTSevlGJO6gs9rkUvFuO1SoD07sLTFD6PVI8yg87RDBMamqekccXJJ1ncRuP 0pXc3eig==; Received: from authenticated user by zero.zsh.org with local id 1kzUy6-000919-G7; Wed, 13 Jan 2021 01:29:02 +0000 Authentication-Results: zsh.org; iprev=pass (mail-oi1-f177.google.com) smtp.remote-ip=209.85.167.177; 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-oi1-f177.google.com ([209.85.167.177]:34193) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kzUxv-0008rj-JB; Wed, 13 Jan 2021 01:28:52 +0000 Received: by mail-oi1-f177.google.com with SMTP id s75so480771oih.1 for ; Tue, 12 Jan 2021 17:28:51 -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; bh=ixX50x/hJHGfgioRfJOGdOQtEPEFQF/2bI6XhgRcH1o=; b=w5gtjpFBqswx20F7q2su8dCFsnXmtLWsqilVaYGo6oSxTVkpEZcVBkJjQAF010KamZ 81cOggCsYBjekywyAh5Qvd7WdlTYOk5U7jWbfy+a2Yj5LjIYsoxjEzXLOuppasosHpMG xmAY8OHHeoFP8aKEIK6WyCGPxoGgEYsp43L63aWVnHLGbu6RkKpKOethbOrg259cOTu7 haq4CDlqiydDTcwvudAMdCxt647hkKj/gEiNSbdissZ6LKHSaGMe0ZyH9hR3jh4YIrNu CQC8BN/OjKvio8fJtPvMHwgBe/g/4RL+T7eMa2GZAfzzR7XlpyjvEwDlQp1/A08fhcyP dgGg== 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; bh=ixX50x/hJHGfgioRfJOGdOQtEPEFQF/2bI6XhgRcH1o=; b=Gv/oOeXyjEh1xEfnme142lkrrEgYKSOldKsVhOJSTPQn/Ye8U6mauniZdYlvXt8CrE WWRLv68akeiJS94FfWxxQ6o4fWCsa0CYtWM3qHuddS6LePYMAKcr6mW3b9h+qdJ8Ui5B s17MQwCwEnkxQ6VUDeNHHDtpksnp847j60zuuTxkt1C5Fgw4fx6y5VOmCCCDvAgf6gL/ sciph+Wg1zN3i6IBwn9mMy4gQSlTeK1hmyffaiyUnIRgpVAxqId2b70DlfTbN2qjM1yH p6/nGYOxCf5ZKLsKTRHWnh9vpMUInfCHwegTtCDrRYTsMvXs66MC1JLCVuZUVtU3y/bk iJEA== X-Gm-Message-State: AOAM532wkyf+OKDWTLcCbhfotLbSWaFhTOv3zeebhiADNQTZX2AuGN69 w6f2bIFI4OZdtFOfX1phF7zjbchirAMJtUtuun8RSg== X-Google-Smtp-Source: ABdhPJzno8lm3eJvANX8t+UO/ZtWQet2siV6pcEQXwP2Ji/vVqOCQE8xTgW6hVhM8LF4XP9GIJ3CkrqK7a3p1YxWy7o= X-Received: by 2002:a05:6808:8c2:: with SMTP id k2mr263220oij.132.1610501330508; Tue, 12 Jan 2021 17:28:50 -0800 (PST) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Tue, 12 Jan 2021 17:28:39 -0800 Message-ID: Subject: Re: [PATCH] Ignore EACCES when doing non-pure globbing To: Devin Hussey Cc: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= , "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" X-Seq: 47819 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 Tue, Jan 12, 2021 at 5:12 PM Devin Hussey wrote: > > So, both the pre-patch and post-patch behaviors are noncompliant. The first is too strict and this is too lenient (although I prefer more lenient than strict). Back to the drawing board, I guess. There are options (shglob, shfileexpansion, no_nomatch, etc.) controlling whether the globbing behavior does or does not conform to POSIX. It's not a problem that "no matches found" is printed when the shell is not in POSIX mode. It would be a problem if "too many" matches were found when the shell IS in POSIX mode. So it may be that any patch here has to take one or more of those setopts into account. That said, the POSIX requirement is only that any "component that contains a pattern character" must have read permission on the directory containing it. A "component" here is what appears between two "/" (or after the rightmost one). So I don't think there was a problem with that requirement.