[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
GNU diff and missing last newline
From: |
Edward Arthur |
Subject: |
GNU diff and missing last newline |
Date: |
Fri, 06 Jul 2001 11:26:24 -0400 |
Hi,
We're using
% diff --version
diff - GNU diffutils 2.7.1
on Solaris and Linux. I use 'tkdiff' as a frontend to 'diff' and
occassionally I like to diff two logfiles where one is incomplete
and may be missing a newline on the last line. 'diff' returns an
error to stderr which tkdiff interprets as a bad thing.
I have hacked tkdiff to ignore stderr but I'd rather add on option
to diff to not print an error when a trailing newline (on the last
line) is missing. Alternatively I could just ignore whitespace but
I'd rather not ignore whitespace on all lines. Is there any
development going on with diff?
Thanks,
/Ed
- GNU diff and missing last newline,
Edward Arthur <=