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=linuxUSER=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 aliased to ash in the busybox config. However, I have the following options enabled though:
bash-compatible extensionsExpand prompt string
.config. – Gilles Nov 14 '12 at 23:25menuconfigand on Google for a solution to this. Thanks! – E-rich Nov 16 '12 at 11:38