Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: PATCH: Problem with _expand, _path_files, and $(command)



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