22 Apr, 2009, Igabod wrote in the 1st comment:
Votes: 0
I just switched servers and my uber colorful makefile now looks like a bunch of gibberish because echo doesn't allow for colors.

I just get something that looks like this

-e \e-e \e[1;34m[- \e[1;37mRebuilding MUD executable:  \e[1;32mmerc.exe\e[1;34m -]\e[0;00m[/code]

so it's obviously not accepting the -e flag. anybody know how I can get this functionality back?
22 Apr, 2009, quixadhal wrote in the 2nd comment:
Votes: 0
Although I personally *loathe* the idea of colourizing Makefile output….

Are you using the full pathname of the command? IE: /bin/echo? If not, you may be getting a shell built-in, and if you're using /bin/sh (and it's not a link to bash), it won't know anything about extended escape sequences.
22 Apr, 2009, Kline wrote in the 3rd comment:
Votes: 0
ie: type "ls -l /bin/sh". If it's linked to bash you'll see something similar to "/bin/sh -> /bin/bash". You can also "which echo" and see what echo bin you are using.
22 Apr, 2009, Sharmair wrote in the 4th comment:
Votes: 0
Though I don't know if it will fix your problem here (or even work in this context), you
might try changing \e to \x1b or \033. I have had to change this in a lot of poorly
written code where the non standard \e is used.
23 Apr, 2009, Igabod wrote in the 5th comment:
Votes: 0
which echo shows /bin/echo as the echo I'm using. I typed ls -l bin/sh and got the /bin/sh -> dash kline mentioned. I did sharmair's method with the \033 instead of \e and it worked. the \x1b didn't work. Thanks for the help guys, I truly appreciate it.
Random Picks