Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _files: -/ causes caller's _alternative to be disregarded
- X-seq: zsh-workers 39161
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: _files: -/ causes caller's _alternative to be disregarded
- Date: Fri, 2 Sep 2016 18:20:42 +0000
- 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=
- In-reply-to: <160901220355.ZM6836@torch.brasslantern.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20160902043202.GA25458@fujitsu.shahaf.local2> <160901220355.ZM6836@torch.brasslantern.com>
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".
Messages sorted by:
Reverse Date,
Date,
Thread,
Author