bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug diff: no difference between 0 byte files and no files.


From: Andreas Schwab
Subject: Re: Bug diff: no difference between 0 byte files and no files.
Date: Tue, 31 Jul 2007 14:32:03 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux)

"J.C. Pizarro" <address@hidden> writes:

> Hi, diff v2.8.1 and v2.8.7 ignore 0 byte files, and it's a bug.
>
> The program diff doesn't see the difference between 0 byte file and no file.
>
>   mkdir dir1 dir2 2> /dev/null ; cat /dev/null > dir1/empty.out ; \
>   tree dir1 dir2 ; echo "Differences between dir1 and dir2 from diff:" ; \
>   diff -Nduar dir1 dir2 ; rm -f dir1/empty.out ; rmdir dir1 dir2

Not a bug:

  -N  --new-file  Treat absent files as empty.

Andreas.

-- 
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."




reply via email to

[Prev in Thread] Current Thread [Next in Thread]