From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3663 invoked by alias); 1 Oct 2014 19:58:13 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 19196 Received: (qmail 18508 invoked from network); 1 Oct 2014 19:58:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=BAYES_00,HTML_MESSAGE, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.2 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:content-type; bh=RSN7Zj8JMMqvNa3xhmcFf5MwkH+DuGquEMTqUlYOAOM=; b=ScYU5u2jw7sGGaD/Cu9xYueJZierCyM1edimlEt1BipzYUCufmzHCNex2JZ+RVKf4U IaK0BDO86/E19lnIRLPq9fn/m6m3nEvzzNf4Tb7id9z/0xmHyJorUhbuK6/3SMQ4KQPC sjTE0ZJ0FXTeTf+P0h022jzoDCpKpbToNRNNtRb+lcMpzzIUrUS9/0/TOEEcKyS//RBE jnzSdHtSY/zc5UZgL/yzHM3GXAE977U2h0HJKy4T1C1N5pgJyarUfqhwnpVrSNjgdpTU D0AwDTikX6KpFRC4egNQuwBAlQTrqj1M4ITmDEfouleXYjSw/HCgHMF9qEDCCTQ9QW7p LPMQ== X-Gm-Message-State: ALoCoQk6olcmSXtzqLUUsM3aYwRKY0M/9q41nWcA21ir+JrTnbRu8pD3zqrh37ytTjbVFYHLAiJ3 MIME-Version: 1.0 X-Received: by 10.180.86.167 with SMTP id q7mr12870573wiz.21.1412193483055; Wed, 01 Oct 2014 12:58:03 -0700 (PDT) In-Reply-To: References: <20141001120022.72b2bf53@pwslap01u.europe.root.pri> <20141001142506.52d75405@pwslap01u.europe.root.pri> <141001084733.ZM5806@torch.brasslantern.com> Date: Wed, 1 Oct 2014 12:58:02 -0700 Message-ID: Subject: Re: Empty directories From: Bart Schaefer To: Zsh Users Content-Type: multipart/alternative; boundary=f46d0418260ce98015050461ea62 --f46d0418260ce98015050461ea62 Content-Type: text/plain; charset=UTF-8 On Oct 1, 2014 11:15 AM, "Yuri D'Elia" wrote: > > Ok, so maybe we can cut it short and avoid to append a slash on empty > directories directly on the first run? The trouble is there is no way to tell that a directory is empty except by looking "inside" it. If the directory is network-mounted or contains thousands of files (or, worse, both) that could be an enormous performance hit to save you typing one character. We might be able to do something with the newly-added short-circuit glob qualifier, but that doesn't help with the network mount issue, and it still means manufacturing a path tail, testing it, and then throwing it away again. --f46d0418260ce98015050461ea62--