Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing in assignment
On Wed, May 23, 2012 at 11:30:56AM +0100, Peter Stephenson wrote:
> On Wed, 23 May 2012 18:08:46 +0800
> Ah, you're misunderstanding what's going on.
>
> GLOB_ASSIGN has the effect that
>
> v=*
>
> expands * at this point. The value of v contains all the files.
>
> GLOB_SUBST has the effect that a variable is expanded at the point where
> it's substituted. So without GLOB_ASSIGN, or equivalently quoting the
> value assigned to v,
>
> % v='*'
> % setopt globsubst
> % print $v
> <files>
> % unsetopt globsubt
> % print $v
> *
>
Thanks. Now I got it.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author