Hi Brent, <div>Thanks for reporting. we think removing &#39;function&#39; seems to be better fix than changing /bin/sh to /bin/bash. I will be sending a patch for this.</div><div><br></div><div>Regards,</div><div>Amar<br><br>
<div class="gmail_quote">On Tue, Jul 14, 2009 at 11:30 AM, Brent A Nelson <span dir="ltr">&lt;<a href="mailto:brent@phys.ufl.edu">brent@phys.ufl.edu</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
On my hardy system, /bin/sh refers to dash.  The new /sbin/mount.glusterfs still uses /bin/sh, but its function definitions have changed from &quot;function-name ()&quot; to &quot;function function-name ()&quot;, which is bash syntax.<br>

<br>
If I change the top line from &quot;#!/bin/sh&quot; to &quot;#!/bin/bash&quot;, all is well. Otherwise, I get a syntax error at line 21.  For systems where /bin/sh is a link to bash, this would not be a problem.<br>
<br>
Thanks,<br>
<br>
Brent<br>
<br>
<br>
_______________________________________________<br>
Gluster-devel mailing list<br>
<a href="mailto:Gluster-devel@nongnu.org" target="_blank">Gluster-devel@nongnu.org</a><br>
<a href="http://lists.nongnu.org/mailman/listinfo/gluster-devel" target="_blank">http://lists.nongnu.org/mailman/listinfo/gluster-devel</a><br>
</blockquote></div><br></div>