Hey everyone,
I have come across an issue to where I am trying to create a script which changes the text color with a simple if then statement. I have seen it done with Fedora 8 but when I try and create it using my MacBook Pro running Snow Leopard it doesn't work. Funny thing is, when I use the "export PS1=" followed by that script, that color changes. Here is what I have:
if [ $clr = "r" ] ; then
echo -e "\e[1;31m"
The only thing that happens when this is ran is the "\e[1;31m" is echoed.
The only thing I can think of is that between the fedora and Apple version of BASH are different? Not sure though. If anyone can offer any guidance on this I would greatly appreciate it. Thanks.