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, [email protected] 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.
> > > 
> > > [...@\h \W]\#
> > > 
> > > the PS1 was set in /etc/profile:
> > > PS1="[...@\h \W]#"
> > > 
> > > however, when i replace it with :
> > > PS1="[$u...@$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
> > [email protected]
> > 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

_______________________________________________
busybox mailing list
[email protected]
http://lists.busybox.net/mailman/listinfo/busybox

Reply via email to