[BusyBox] Functions in a shell script

Jonathan Thorpe thorpe at linuxmail.org
Wed Dec 26 21:45:39 UTC 2001


Greetings,

I've been trying to get BusyBox 0.60.2 to work with scripts that make use of functions in them. E.g.

--
#!/bin/sh

hello() {
    echo "You called hello"
}

hello

--

However, every time a script of this nature is executed, I get "syntax error" before the function is even executed. Any ideas of how to work around this?

Help would be much appreciated.

Thanks,
Jonathan Thorpe
-- 

Get your free email from www.linuxmail.org 


Powered by Outblaze




More information about the busybox mailing list