From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: (qmail 7332 invoked from network); 13 Apr 2020 15:01:11 -0000 Received-SPF: pass (primenet.com.au: domain of zsh.org designates 203.24.36.2 as permitted sender) receiver=inbox.vuxu.org; client-ip=203.24.36.2 envelope-from= Received: from ns1.primenet.com.au (HELO primenet.com.au) (203.24.36.2) by inbox.vuxu.org with UTF8ESMTPZ; 13 Apr 2020 15:01:11 -0000 Received: (qmail 9920 invoked by alias); 13 Apr 2020 15:01:05 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 45689 Received: (qmail 940 invoked by uid 1010); 13 Apr 2020 15:01:05 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f44.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.2/25779. spamassassin: 3.4.4. Clear:RC:0(209.85.210.44):SA:0(-1.9/5.0):. Processed in 5.995734 secs); 13 Apr 2020 15:01:05 -0000 X-Envelope-From: schaefer@brasslantern.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.210.44 as permitted sender) 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; bh=H44MYnRCYLzFT7bIPLDnde51n4DSjz/6wkzDOTTn+Jk=; b=DSzzrz9FJRBGzz0o7RhPJhhZASHIZ/gAVW6TTHewaqz2+thimc/UUlO0m3Jnx1zSKS /9OP/5VTlSykZTELd8oAuS/DPupuhsH+JYndbPucbGD06MKg/27l3/MDwhZW9uYEMMMM 7MYRaVBzc9/BaixTc1Lm8dmv3Eq0wuOo0flyQlZYdxGUm2F8z0N9ntBBkfQtfhEnnPrd 4Akp7E+yRv3qf3W9+bBpEtGkcJF5DLWoXO28ng0DzW/Wp4cjU7khHsj6Ws4GDKRo5cLS 8tmvdYjLPBxHONn/MSKLmN3J00bvChm4vCVIZK1E+NZ+A2T5KpuzTsnEhpwYGX6Jtyda 23pg== X-Gm-Message-State: AGi0PubFQtNWuojk1CQssfJDyKxtDv4RzDaqg50FR1hCFkPJPgdSUaj8 lgKZODhGs7QXeMhWprmtf6LzGCyag06V5XDInyUlHQ9T1ME= X-Google-Smtp-Source: APiQypJVlMW85D2eTf+f7XxqC0kt0V8TCHGuJeTd3AeAOtxtjaiKuB7VedIoNizFrSVgGC87fIBlG4gjqH5HJ/DE6dE= X-Received: by 2002:a05:6830:1bf7:: with SMTP id k23mr15450123otb.260.1586790024892; Mon, 13 Apr 2020 08:00:24 -0700 (PDT) MIME-Version: 1.0 References: <20200411173450.56nnznxtmil5oge3@chazelas.org> <20200411191711.GA1722320@zira.vinc17.org> <20200411203714.wupg6wmd7b7xch2w@chazelas.org> <20200411234817.GA1737986@zira.vinc17.org> <20200412012155.7954a35f@tarpaulin.shahaf.local2> <20200412021722.GA1748686@zira.vinc17.org> <20200412070930.etfzj6j2qvd5em7b@chazelas.org> <20200412142544.GA1783815@zira.vinc17.org> <20200412173448.rl3wttigdx5t5wcn@chazelas.org> <20200412233845.GB1831017@zira.vinc17.org> <20200413142257.orwzb4jrgmf7gpoi@chazelas.org> In-Reply-To: <20200413142257.orwzb4jrgmf7gpoi@chazelas.org> From: Bart Schaefer Date: Mon, 13 Apr 2020 08:00:13 -0700 Message-ID: Subject: Re: glob qualifier '-' doesn't work correctly on dangling symlinks To: "zsh-workers@zsh.org" Content-Type: text/plain; charset="UTF-8" On Mon, Apr 13, 2020 at 7:23 AM Stephane Chazelas wrote: > > [...] > > -e pathname > > True if pathname resolves to an existing directory entry. > > False if pathname cannot be resolved. > > > > BTW, I don't know how zsh behaves on "[[ -e pathname ]]" in case of > > error other than ENOENT in the pathname resolution, but this should > > be documented (and ditto for the other conditional expressions). > [...] > > The mention of "directory entry" is misleading here. It's really > about a "file" more than a "directory entry" as stat() gets you > to the inode. The problem is that "file" implies "not a directory", but a symlink can refer to either. And many users don't know the concept of "inode" as separate from "directory entry".