bug-diffutils
[Top][All Lists]
Advanced

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

[bug-diffutils] diff -urN 3.0 omits empty directories and also empty fil


From: Hugo Mildenberger
Subject: [bug-diffutils] diff -urN 3.0 omits empty directories and also empty files
Date: Mon, 15 Nov 2010 18:41:18 +0100
User-agent: KMail/1.13.5 (Linux/2.6.36-hardened; KDE/4.5.3; x86_64; ; )

I'm unsure if this is a bug or a feature of diff, but certainly it was 
unexpected to me
that diff doesn't account for an empty directory or file:

$ diff --version
$ diff (GNU diffutils) 3.0
Packaged by Gentoo (3.0)

$ mkdir a/c -p
$ mkdir b/c -p
$ touch b/c/emptyfile
$ diff -urN a b

One might argue that diff isn't exactly tar. But when generating a patch you
sometimes need to create empty directories, empty files or both.







reply via email to

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