[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: could you help me some shell problem?
From:       Denys Vlasenko <vda.linux () googlemail ! com>
Date:       2009-07-18 15:38:27
Message-ID: 200907181738.27884.vda.linux () googlemail ! com
[Download RAW message or body]

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@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@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

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic