I want to make shell-command produce colored (or at least ungarbled) output in the *Shell Command Output*. Can someone point me to the right direction?
Not really a solution, but it works if you use async-shell-command instead of shell-command:
if you need shell-command I'd suggest to look at ansi-color-compilation-filter function from the built-in ansi-color.el. It should be applied to the output somehow, but I couldn't find a proper hook for shell-command.
Thanks! async-shell-command seems to work well for the command I'm using.