[Gluster-devel] Tiny glitch in mount script in 2.0.4

Amar Tumballi amar at gluster.com
Tue Jul 14 22:32:54 UTC 2009


Hi Brent, Thanks for reporting. we think removing 'function' seems to be
better fix than changing /bin/sh to /bin/bash. I will be sending a patch for
this.

Regards,
Amar

On Tue, Jul 14, 2009 at 11:30 AM, Brent A Nelson <brent at phys.ufl.edu> wrote:

> 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
> "function-name ()" to "function function-name ()", which is bash syntax.
>
> If I change the top line from "#!/bin/sh" to "#!/bin/bash", 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.
>
> Thanks,
>
> Brent
>
>
> _______________________________________________
> Gluster-devel mailing list
> Gluster-devel at nongnu.org
> http://lists.nongnu.org/mailman/listinfo/gluster-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://supercolony.gluster.org/pipermail/gluster-devel/attachments/20090714/628a588f/attachment-0003.html>


More information about the Gluster-devel mailing list