"Bodo Eggert <[email protected]>" <[email protected]> wrote:
>
> Andrew Morton <[email protected]> wrote:
>
> > hmm, that's exciting. How to tell diff and patch to remove a zero-length
> > file?
>
> $ md a b c
> $ touch a/a
> $ echo .>c/a
> $ diff -purN a c
> diff -purN a/a c/a
> --- a/a 2005-05-10 04:08:14.000000000 +0200
> +++ c/a 2005-05-10 04:09:17.972505331 +0200
> @@ -0,0 +1 @@
> +.
> $ diff -purN c b
> diff -purN c/a b/a
> --- c/a 2005-05-10 04:09:17.972505331 +0200
> +++ b/a 1970-01-01 01:00:00.000000000 +0100
> @@ -1 +0,0 @@
> -.
> $ cd a
> $ patch -p1 # < both patches (c&p)
> <snip>
> $ ls -l
> total 0
That's cheating!
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]