[BusyBox] strace for ash

Martin Volf mv at inv.cz
Sat Apr 26 21:21:22 UTC 2003


On 26 Apr 2003 23:01:52 +0200
Jules Colding <JuBColding at yorkref.com> wrote:

> On Sat, 2003-04-26 at 20:19, Erik Andersen wrote:
> > On Sat Apr 26, 2003 at 12:26:07PM +0200, Jules Colding wrote:
> > > Hi,
> > > 
> > > I have this problem that ash exits right after the:
> > > 
> > > "BusyBox v0.60.5 (2003.04.25-20:31+0000) Built-in shell (ash)
> > > Enter 'help' for a list of built-in commands."
> > >  
> > > greeting. I now have a trace of what happens, but I am rather lost as to
> > > what it means. Could someone give me a clue, please?
> > 
> > What does your /etc/profile file contain?  It looks like
> > it is causing ash to exit,
> > 
> 
> 
> I can not see anything special in my /etc/profile which, btw, used to
> work. Is there some dreadful error in it?
...
> pathmunge () {

What about this:

>         if [ -z "$1" ]; then
>             exit 0
>         fi
...

and this:

> 	pathmunge 
> 	pathmunge /sbin
> 	pathmunge /usr/sbin
> 	pathmunge /usr/local/sbin
...


Maybe the "exit 0" exits your shell.

-- 
Martin Volf



More information about the busybox mailing list