could you help me some shell problem?
Denys Vlasenko
vda.linux at googlemail.com
Sat Jul 18 15:38:27 UTC 2009
On Saturday 18 July 2009 08:26, Tito wrote:
> On Friday 17 July 2009 22:55:47 Denys Vlasenko wrote:
> > On Friday 17 July 2009 10:51, liu.yaojin at zte.com.cn wrote:
> > > i use busybox 1.14.2 to build a rootfs.
> > > when enter the system, it displays:
> > >
> > > BusyBox v1.14.2 (2009-07-17 15:35:45 CST) built-in shell (ash)
> > > Enter 'help' for a list of built-in commands.
> > >
> > > [\u@\h \W]\#
> > >
> > > the PS1 was set in /etc/profile:
> > > PS1="[\u@\h \W]#"
> > >
> > > however, when i replace it with :
> > > PS1="[$USER@$HOSTNAME \$PWD]#"
> > > it displays correctly.
> > >
> > > could you tell me what result in this?
> >
> > I cannot reproduce it. Please post your .config
> > --
> > vda
> > _______________________________________________
> > busybox mailing list
> > busybox at busybox.net
> > http://lists.busybox.net/mailman/listinfo/busybox
> >
>
> Hi,
> check if
>
> #
> # Busybox Library Tuning
> #
> # CONFIG_FEATURE_EDITING_FANCY_PROMP=y
>
>
> BTW: Denis, shoudn't this be automatically enabled when
>
> CONFIG_ASH_EXPAND_PRMT=y
No. ASH_EXPAND_PRMT seems to control backquote expansion in PS1 etc.
Try PS1="\`pwd\` # "
It works even with
CONFIG_ASH_EXPAND_PRMT on and CONFIG_FEATURE_EDITING_FANCY_PROMPT off
combination.
--
vda
More information about the busybox
mailing list