Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: tag-order func()
- X-seq: zsh-workers 12986
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: tag-order func()
- Date: Thu, 12 Oct 2000 14:52:23 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Thu, 12 Oct 2000 12:19:33 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> On Oct 12, 10:22am, Sven Wischnowsky wrote:
> }
> } Bart Schaefer wrote:
> }
> } > There's also the issue that I raised in zsh-users/3421 about how very
> } > difficult it is to return a glob pattern via the `reply' array from
> } > a style defined with zstyle -e.
> }
> } Any option setting that caused your problems?
>
> Try using 'zstyle -e' to put glob patterns in $reply in a context where
> they will actually later be used as glob patterns, such as in the
> file-patterns style. The problem isn't that zstyle -e can't return
> them, but that it returns them incorrectly metafied (I think).
I tried:
zstyle -e ':completion:*:*:foo:*' file-patterns \
'reply=( "*.h:header:header" )'
and (from that old message, only slightly changed):
zstyle -e ':completion:*:*:foo:*' file-patterns \
'[[ $PREFIX == /usr/[^/]# ]] && reply=( "*(@)" )'
And it both works without problems for me.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author