[BusyBox] Re:Problem with ECHO -en

Ryan Lindeman lindemanr at rubberstampfactory.com
Sun Feb 17 00:44:03 UTC 2002


I just noticed a problem with Busybox 0.60.2


Normally with regular Red Hat installed the following will change the 
text to red:
echo -ne "\\033[1;31m"
It will also leave the cursor on the same line.
According to Busybox help, this can be done as well.
However in practice you can't get the -n and the -e to work together.
Only separate:
echo -e "\\033[1;31m"
Successful at changing color
echo -n "Stay on this line: "
Successful at staying put
but if you do this:
echo -ne "\\033[1;31m"
-ne \033[1;31m
echo -n -e "\\033[1;31m"
-e \033[1;31m#
echo -e -n "\\033[1;31m"
Success at color change but puts a -n on the screen

Anyone else can confirm this issue?
Thanks,
Ryan Lindeman





More information about the busybox mailing list