in reply to Capturing ANSI color escape codes with backticks

From the ls man page:

By default, color is not used to distinguish types of files. That is equivalent to using --color=none. Using the --color option without the optional WHEN argument is equivalent to using --color=always. With --color=auto, color codes are output only if standard output is connected to a terminal (tty). The environment variable LS_COLORS can influence the colors, and can be set easily by the dircolors command.

Have you tried the --color=always option?

Replies are listed 'Best First'.
Re^2: Capturing ANSI color escape codes with backticks
by Mr_Micawber (Beadle) on Jan 08, 2010 at 18:55 UTC
    The --color=always option worked great. Thanks!