From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15191 invoked by alias); 2 Sep 2016 18:21:15 -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: X-Seq: 39161 Received: (qmail 16593 invoked from network); 2 Sep 2016 18:21:15 -0000 X-Qmail-Scanner-Diagnostics: from out4-smtp.messagingengine.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(66.111.4.28):SA:0(0.0/5.0):. Processed in 0.137086 secs); 02 Sep 2016 18:21:15 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: d.s@daniel.shahaf.name X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at daniel.shahaf.name does not designate permitted sender hosts) DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=mesmtp; bh=dm8QpVV033zdmMtq mBPDomBkuRM=; b=sSP0YVUii1hGuGZds7zqc3VW3qEppd9wA+u/CqK7QaIMbPqP pyOggcrDH6g5idhwi3wp+mFh5Ri41GQio9hzcCoH7LAKhuiZb9AgGc27+nZ5lJa6 wHdkk7Nt/DSn3vWl6uQsaWOC/3djMe+7ERhXmqPjO+LyRwEDfa2+v+LwqS8= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-sasl-enc:x-sasl-enc; s=smtpout; bh=dm8QpVV033zdmMt qmBPDomBkuRM=; b=iNMMdDlEX9X36yZZpEvOu570l+9lW/n5Q2NVf1AeNtmq8NQ HMdYopwx6lwV1G0DjGyzO17YitZ9o+hH2rvwkiTlHQ/kPuK9fk6cLyNK+GZZefJG cE2hthVCo1/JqwgoGn5+tUefKsM9BB7zqbu3JsSwSBxbFju86H7p1VQ+T/4w= X-Sasl-enc: bslOk/MktMkezG28rJI5H5aijBIsTJD5zHusnLNdu/04 1472840472 Date: Fri, 2 Sep 2016 18:20:42 +0000 From: Daniel Shahaf To: zsh-workers@zsh.org Subject: Re: _files: -/ causes caller's _alternative to be disregarded Message-ID: <20160902182042.GB26517@fujitsu.shahaf.local2> References: <20160902043202.GA25458@fujitsu.shahaf.local2> <160901220355.ZM6836@torch.brasslantern.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <160901220355.ZM6836@torch.brasslantern.com> User-Agent: Mutt/1.5.23 (2014-03-12) Bart Schaefer wrote on Thu, Sep 01, 2016 at 22:03:55 -0700: > Good catch, though normally _path_files attempts to fix up glob quals > to avoid this. However, doesn't (#q-/)(#q^-/) end up matching nothing? > (I think that's WHY the aborted portion is inconsequential.) Is that > really what is intended here? I don't know what is intended, but I could imagine doing it differently: perhaps directories that match the -g pattern should be separated from directories that don't. For example, «_files -g "M*"» in the zsh tree currently lists "Misc" under the "directories" tag along with all other directories, but instead it could show "Misc" either in a new "globbed-directories" tag [when list-dirs-first is set], or in the existing "globbed-files" tag alongside "Makefile.in".