Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Problem with _expand, _path_files, and $(command)
- X-seq: zsh-workers 12135
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Problem with _expand, _path_files, and $(command)
- Date: Mon, 3 Jul 2000 10:12:22 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Sun, 2 Jul 2000 17:13:54 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> ...
>
> After the patch below, there's still a problem with _path_files, because
> the parens in $(exit 0) are interpreted as enclosing a glob qualifier, so
> something else goes haywire:
>
> zagzig[88] echo $(exit 0)
> zagzig[88] echo \$\*\(exit\ 0Om\)
>
> ...
>
> - tmp1=( $~tmp1 )
> + eval 'tmp1=( $~tmp1 )' 2>/dev/null
Hrm. I don't like that eval there, especially if it still doesn't
work. Shouldn't we just test for [[ $PREFIX$SUFFIX = *\$\(*\)* ]] and
give up if that is true?
Or am I missing something?
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author