<div dir="ltr"><div>That sounds like a bug. I'll see if I can reproduce.<br><br></div>- Tim<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, Jun 27, 2014 at 4:54 PM, Ketan Maheshwari <span dir="ltr"><<a href="mailto:ketan@mcs.anl.gov" target="_blank">ketan@mcs.anl.gov</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Consider the following two cases:<div><br></div><div>1.</div><div><div>main{</div><div> file files[] = glob("adir/*.txt");</div>
<div> string commands[]=split(read(input_file("./commands.txt")),"\n");</div>
<div><br></div><div> foreach afile, i in files{</div><div> printf("%s", filename(afile));</div><div> foreach command, j in commands{</div><div> printf("%s", command);</div>
<div> }</div><div> }</div><div>}</div></div><div><br></div><div>2.</div><div><div>main{</div><div> file files[] = glob("adir/*.txt");</div><div> string commands[]=split(read(input_file("./commands.txt")),"\n");</div>
<div><br></div><div> foreach afile, i in files{</div><div> foreach command, j in commands{</div><div> printf("%s", filename(afile));<br></div><div> printf("%s", command);</div>
<div> }</div><div> }</div><div>}</div></div><div><br></div><div><br></div><div>Case 1 works while 2 shows error at runtime as follows:</div><div><div>can't read "u:afile": no such variable</div><div>
while executing</div><div>"turbine::file_read_refcount_incr ${u:afile} [ expr { ${tcltmp:iters} - 1 } ]"</div></div><div><br></div><div>Any clue?</div><div><br></div><div>Thanks,</div><div>Ketan</div></div>
<br>_______________________________________________<br>
ExM-user mailing list<br>
<a href="mailto:ExM-user@lists.mcs.anl.gov">ExM-user@lists.mcs.anl.gov</a><br>
<a href="https://lists.mcs.anl.gov/mailman/listinfo/exm-user" target="_blank">https://lists.mcs.anl.gov/mailman/listinfo/exm-user</a><br>
<br></blockquote></div><br></div>