[BusyBox] tab search bug in ash

Andrew Hall temp02 at bluereef.com.au
Wed Jan 14 00:01:42 UTC 2004


I haven't started looking through the code, but from experimentation it
seems that the tab-edt like function is hard-coded to only look in
/bin:/sbin. I noticed this because it finds commands in these directories
even when I set the PATH statement to empty.

----- Original Message -----
From: "Larry Doolittle" <ldoolitt at recycle.lbl.gov>
To: "Andrew Hall" <temp02 at bluereef.com.au>
Cc: "Vladimir N. Oleynik" <dzo at simtreas.ru>; <busybox at mail.codepoet.org>
Sent: Wednesday, January 14, 2004 10:40 AM
Subject: Re: [BusyBox] tab search bug in ash


> On Wed, Jan 14, 2004 at 10:30:31AM +1100, Andrew Hall wrote:
> > modified /etc/profile and used export PATH statement.
> > The cmdline is able to find java in the path, but the tab function can
not.
> >
> > From: "Vladimir N. Oleynik" <dzo at simtreas.ru>
> > > cmdedit used PATH variable for search.
> > > Have you real changes PATH to search from /usr/local/java/bin ?
>
> Could it be that cmdedit initializes a (local) static variable with
> getenv("PATH"), so if the path changes during execution that
> static string becomes stale?
>
> This is idle speculation, I don't have a -pre4 tree handy to inspect
myself.
>
>   - Larry




More information about the busybox mailing list