On Tue, 2011-02-08 at 12:40 +0000, David Collier wrote:
> Ah.... I've had another look at this
>
> bash _allows_ the round brackets as in
>
> func2 ()
> {
> }
>
> but on further examination, they are apparently redundant syntax!!!!!
I'm not sure what you mean. The parentheses are definitely NOT
redundant; you cannot leave them off. Without them you don't have a
function definition, not in any POSIX-based shell (including bash)
anyway.
~$ foo { echo bar; }
bash: syntax error near unexpected token `}'
~$ foo () { echo bar; }
~$ foo
bar
_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox