> I have aliased diff to 'diff -u' in my shell, so I did the same for
> colordiff. However, this breaks further uses of colordiff in a pipe,
> since it *seems* to me that the presence of a single option arguments
> triggers colordiff into invoking /usr/bin/diff.

>   % diff foo bar | /usr/bin/colordiff -u
>   diff: missing operand after `-u'
>   diff: Try `diff --help' for more information.

So the solution could be entering "stdin" mode if stdin is not a tty, or
maybe just checking if all arguments are -options, and do not take those
into account when deciding between stdin mode or not.

-- 
Adeodato Simó                                     dato at net.com.org.es
Debian Developer                                  adeodato at debian.org
 
                           Listening to: Nightmares on Wax - Biofeedback



Reply via email to