<div dir="ltr">I've got a shell script that I tried to make a little more readable with ANSI color. It works when I run it from the command line, but when I have it open in TM2 (and 1) and press Cmd-R, the script executes but I get no color.<div>
<br></div><div style>For simplicity, I tried it with a very simple script:</div><div style><br></div><div style><div><div>#!/bin/bash</div><div>printf "\e[31mhello\e[m\n"</div></div><div><br></div><div style>In Terminal, I get a red "hello". In TM, I get</div>
<div style><br></div><div style><div>[31mhello[m</div><div><br></div><div style>Seems like some kind of escaping thing going on; can anyone point me in the right direction? I've tried a number of variations, including using print and echo (with -e and w/o), but I get essentially the same results.</div>
<div style><br></div><div style>Thanks,</div><div style>+dru</div></div></div></div>