I add mycmd to ash.c ash: addbyyang: not found What's wrong with the Built-in shell (ash)

walter harms wharms at bfs.de
Wed May 20 07:07:10 UTC 2009


Hi Ruifeng,
your source base is ancient. there have been nummerious fixes and changes in busybox since V1.0.
Please download the current version, config to your needs and try again. the change that someone
can help you will increase dramaticly.

re,
 wh


ruifeng yang schrieb:
> Hello everyone:
> 
>    I am reading the busybox's sources,the busybox version is 1.00.
> I want to add mycmd in the ash.c:
>    I add :
>    { BUILTIN_REGULAR       "addbyyang", addbyyangcmd },
>    to the static const struct builtincmd builtincmd[]=.
>    and add:
>    static int addbyyangcmd(int, char **);
>    to the 1281 cow in the ash.c.
> 
>    I make and make install the sources.I try the cmd but I get this:
>    /home/yrff/busybox-1.00/_install/bin # ./busybox ash
> 
> 
>    BusyBox v1.00 (2009.04.14-01:06+0000) Built-in shell (ash)
>    Enter 'help' for a list of built-in commands.
> 
>    /home/yrff/busybox-1.00/_install/bin # help
> 
>    Built-in commands:
>    -------------------
>            . : alias bg break cd chdir continue eval exec exit export false
>            fg hash help jobs kill let local pwd read readonly return set
>            shift times trap true addbyyang type ulimit umask unalias unset
>            wait
> 
>    /home/yrff/busybox-1.00/_install/bin # addbyyang
>    ash: addbyyang: not found
>    /home/yrff/busybox-1.00/_install/bin #
> 
>   What is wrong with the ash.c by my modified? help me!
>   Thank you!
> 
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> busybox mailing list
> busybox at busybox.net
> http://lists.busybox.net/mailman/listinfo/busybox


More information about the busybox mailing list