On Sunday 22 Apr 2012 09:16:43 Neil Bothwick wrote:
> On Sun, 22 Apr 2012 08:02:13 +0100, Mick wrote:
> > modules_3_2="cls_tcindex"
> > modules_3_2="${modules_3_2} cls_tcindex"
> > 
> > and only the last one actually loads.  I don't understand how this
> > works or what ${modules_3_2} does ...
> 
> The first one replaces the contents of modules_3_2 with cls_tcindex, the
> second adds cls_tcindex to any existing contents of modules_3_2. They are
> the string equivalents of
> 
> x=1
> x=x+1

Awww!  I see!  So, if I have a list of modules on separate lines; e.g.

modules_3_2="x"

modules_3_2="y"

modules_3_2="z"

only module z will load - unless I add the ${modules_3_2} string!

It makes sense now.  Thank you for explaining this!  :-)
-- 
Regards,
Mick

Attachment: signature.asc
Description: This is a digitally signed message part.

Reply via email to