I like my approach (and git diff approach) more because it is the least surprising:
$ diff | program > file should produce a valid diff and $ diff --color=yes | program > file should produce a colored diff. I expect that if GNU diff ever gets colored output, it will have this behaviour (like grep and git diff do). But I fully understand that changing the defaults once set is difficult. Feel free to close this as wontfix. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1161826 Title: smarter handling of redirections and add --color option to override auto settings To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/colordiff/+bug/1161826/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs