1

busybox ash PS1 not expanding

view story
linux-howto

http://unix.stackexchange.com – I am trying to setup busybox's ash on an embedded system to support expanding the PS1 prompt statement. I have it currently set as PS1='\u@\h:\w\$ ' However, all that is displayed is literally \u@\h:\w\$. My environment vars are HOSTNAME=linux USER=root and my pwd is / So what should be displayed is root@linux:/$. Is there something special I need to do to get the PS1 to expand correctly? One thing I noticed is my SHELL variable is /bin/sh even though in my /etc/inittab I have the following line ttyO0::respawn:-/bin/bash I imagine this is the case because sh and bash are both alias (HowTos)