Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: globbing in assignment
On Wed, May 23, 2012 at 10:10:43AM +0100, Peter Stephenson wrote:
> On Wed, 23 May 2012 14:18:59 +0800
> Han Pingtian <hanpt@xxxxxxxxxxxxxxxxxx> wrote:
> > I just notice filename globbing doesn't occur in my script, like
> >
> > v=*
> >
> > but it works in the interactive shell. Althoug I can make it work
> > by "setop glob_assign" or use "v=(*)", but it looks like the behavior's
> > diversity is a little strange.
> >
> > Any thoughts?
>
> I would guess you don't have the option set in one case, but do in
> another. Try putting "setopt globassign" at the start of the script,
> which seems to do what I expect here. There's no explicit code to stop
> it working in scripts.
Thanks for reply. I don't set globassign in the interactive shell but
the globbing is working in assigment. And finally I find out it's
"glob_subst" which also has the same effect of "glob_assign". Maybe
something is wrong?
Looks like ther
>
> --
> Peter Stephenson <pws@xxxxxxx> Software Engineer
> Tel: +44 (0)1223 692070 Cambridge Silicon Radio Limited
> Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK
>
>
> Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom
> More information can be found at www.csr.com. Follow CSR on Twitter at http://twitter.com/CSR_PLC and read our blog at www.csr.com/blog
Messages sorted by:
Reverse Date,
Date,
Thread,
Author