Comment 1 for bug 242115

Revision history for this message
Aaron Bentley (abentley) wrote : Re: [Bug 242115] [NEW] cdiff should detect if there is a terminal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Olav Vitters wrote:
> Public bug reported:
>
> I'd like to alias diff to cdiff. This so I do not have to remember if I
> should run cdiff or diff. However, cdiff doesn't automatically disable
> its colouring when the output goes to a terminal, preventing me from
> aliasing it.

However, I pipe cdiff through less on occasion, and less is not a
terminal, so that would cause color to be disabled.

Aaron
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIXoSF0F+nu1YWqI0RAvGmAJ9vCV5D8AMYGaRW8zyt9wxN9Y4dWwCfbbBv
ZN94YSVXl/EwUG8nYqAW6Os=
=waTN
-----END PGP SIGNATURE-----