Hallo David!

> I really don't want to face trying to write scripts without functions..
> and as far as I can see the ash syntax is incompatible with the bash one,
> and vice-versa.
Incompatible? ... in which way?

myfunction () {
  ... add your statements here
}

... that should work with ash and bash and other compatible shells too.
You just need to have an eye on your function names. As far as I know
the standard says such names allow only letters, digits and underline.
bash allows some other characters to be included in function names, so
you need to avoid those.

... so why do you think functions are incompatible between bash and ash?

--
Harald

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to