[BusyBox] msh and functions

Erik Andersen andersen at lineo.com
Thu Jul 12 14:01:31 UTC 2001


On Thu Jul 12, 2001 at 05:00:52PM +0200, Martin Sieper wrote:
> $ usage() { echo "foo bar"; }
> syntax error
> $ exit
> ~/CVS/busybox/_install/bin$

The minix shell (msh) does not support functions.  If you need 
functions, you will need to use the ash shell, by editing Config.h 
and disabling BB_FEATURE_MSH and setting BB_FEATURE_ASH instead.

    BusyBox v0.53pre (2001.07.12-20:00+0000) Built-in shell (ash)
    Enter 'help' for a list of built-in commands.

    $ usage() { echo "foo bar"; }
    $ usage
    foo bar
    $

 -Erik

--
Erik B. Andersen   email:  andersen at lineo.com
--This message was written using 73% post-consumer electrons--





More information about the busybox mailing list