I add mycmd to ash.c ash: addbyyang: not found What's wrong with the Built-in shell (ash)
ruifeng yang
yrffren at gmail.com
Wed May 20 03:25:58 UTC 2009
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!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090520/d1d75eae/attachment.htm>
More information about the busybox
mailing list