<div dir="ltr">Consider the following variant of above example:<div><br></div><div><div>type file;</div><div><br></div><div>app (file _b) s_app(string a){</div><div> str_app a @_b;</div><div>}</div><div><br></div><div>file b[]<simple_mapper; location=".", prefix="b_",suffix=".out">;</div>
<div><br></div><div>foreach i in [0:10]{</div><div> b[i]= s_app("hello");</div><div>}</div></div><div><br></div><div style>And the corresponding bash script that app links to:</div><div style><br></div><div style>
<div>#!/bin/bash</div><div><br></div><div>echo "$1">$2</div></div><div style><br></div><div style>This variant exhibits the same pattern as the previous one except that b now is a file type variable. The original example which did not work involved b as a non-file type variable (string).</div>
<div style><br></div><div style>Since this one works, I understood the one with other types should also work.</div><div style><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Apr 1, 2013 at 4:23 PM, Mihael Hategan <span dir="ltr"><<a href="mailto:hategan@mcs.anl.gov" target="_blank">hategan@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 class="im">On Mon, 2013-04-01 at 16:18 -0500, Ketan Maheshwari wrote:<br>
> To my understanding, it has to be used in the commandline so that Swift<br>
> knows where to put its value.<br>
<br>
</div>I'm not sure what you mean there, or where you got that information, but<br>
when you say<br>
<br>
app ... {<br>
appname x;<br>
}<br>
<br>
that means invoke 'appname' with the value of x as a parameter on the<br>
command line. There is no such value if x is a return parameter.<br>
<span class="HOEnZb"><font color="#888888"><br>
Mihael<br>
<br>
<br>
</font></span></blockquote></div><br><br clear="all"><div><br></div>-- <br><font face="'courier new', monospace">Ketan</font><br><br>
</div>