[BusyBox] Sh/CmdEdit fixed.

Gennady Feldman gena01 at cachier.com
Wed Apr 4 17:37:38 UTC 2001


On Wed, 4 Apr 2001, Vladimir N. Oleynik wrote:

> Gena,
>
> > 2. I have change the default full prompt to resemble bash. Also added \W
> > handling in the prompt. This is a rather simple and yet very effective way
> > to have paths in the prompt and is used by bash.
>
> Hmm
> 1) in minimal configuration have setup without
> BB_FEATURE_GETUSERNAME_AND_HOMEDIR
> 2) usage gethostaname() is very strange for default configure setup prompt
> 3) in your patch variable `l' not used.
>
> In my opinion, \W is not suitable for use ;-)
> Also, current sh have many-many other lame problem, you improvements is
> crazy in compare with this ;-)
>
My patch has nothing to do with BB_FEATURE_GETUSERNAME_AND_HOMEDIR. All I
do is get the current dir and find last directory name. The only exception
is '/' which is root directory.

P.S. You can remove that line w/ variable 'l' I missed that. It should not
be in there.

G.F.






More information about the busybox mailing list