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 10:48:00 UTC 2009
HI,Walter harms,
Thank you!
By your advice,I got the version is 1.13.4.
I add:
{ BUILTIN_SPEC_REG "addbyyang",addbyyangcmd },
and add:
static int addbyyangcmd(int, char **);
to the 8636 cow in the ash.c.
I make and make install the sources.I try the cmd but I get this:
[root at beijing2008 bin]# ./busybox ash
BusyBox v1.13.4 (2009-05-20 17:41:57 CST) built-in shell (ash)
Enter 'help' for a list of built-in commands.
# help
Built-in commands:
-------------------
. : [ [[ alias bg break cd chdir command continue echo eval exec
exit export false fg getopts hash help jobs kill let local printf
pwd read readonly return set shift source test times addbyyang
trap true type ulimit umask unalias unset wait
# addbyyang
ash: addbyyang: not found
#
but I get the same error.
2009/5/20, walter harms <wharms at bfs.de>:
>
> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20090520/6c231a3b/attachment.htm>
More information about the busybox
mailing list