From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5422 invoked by alias); 1 Oct 2014 15:47:49 -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: 19193 Received: (qmail 23291 invoked from network); 1 Oct 2014 15:47:48 -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=-1.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.2 From: Bart Schaefer Message-id: <141001084733.ZM5806@torch.brasslantern.com> Date: Wed, 01 Oct 2014 08:47:33 -0700 In-reply-to: Comments: In reply to "Yuri D'Elia" "Re: Empty directories" (Oct 1, 4:47pm) References: <20141001120022.72b2bf53@pwslap01u.europe.root.pri> <20141001142506.52d75405@pwslap01u.europe.root.pri> X-Mailer: OpenZMail Classic (0.9.2 24April2005) To: zsh-users@zsh.org Subject: Re: Empty directories MIME-version: 1.0 Content-type: text/plain; charset=us-ascii On Oct 1, 4:47pm, Yuri D'Elia wrote: } } I tried to look into _path_files, and there's actually a special rule to } handle empty directories, though I got lost in the expansion loop. I'm not entirely sure (see "no one really understands") but I think that rule is for handling partial path completion, that is, given "a/b/c" it eliminates empty directories matching a* or a*/b* -- because it knows it has to get as far as a*/b*/c*, so empty dirs along the way are useless.