#!/bin/sh # see new stuff if [ -t 1 ]; then # connected to a tty => use glorious technicolour exec cvs diff -rBASE -rHEAD "$@" 2>&1 | \ egrep -v 'tag BASE is not in file' | \ colour-diff-output | \ diff-less else # probably piping to a file, use black and white exec cvs diff -rBASE -rHEAD "$@" 2>&1 | \ egrep -v 'tag BASE is not in file' fi