[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: diff -c0 reports change instead of deleted
From: |
Eric Blake |
Subject: |
Re: diff -c0 reports change instead of deleted |
Date: |
Sat, 10 May 2008 16:57:18 -0600 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.14) Gecko/20080421 Thunderbird/2.0.0.14 Mnenhy/0.7.5.666 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
According to Allen Tupker on 5/10/2008 12:11 PM:
|
| When the command diff -c0 A B is used to compare the two separate text
| files (with contents listed below), shouldn't diff report the test2 line
| as "deleted" by preceding it with a minus sign in the diff output?
No. Context diffs (-c) are different than unified diffs (-u). Changed
lines in context diffs are listed with !; with a changed line defined as
any line belonging to a consecutive sequence of lines that is altered
between the two files.
- --
Don't work too hard, make some time for fun as well!
Eric Blake address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iEYEARECAAYFAkgmKE4ACgkQ84KuGfSFAYC39ACfU6TlhnKin3GNeV8aPWAR2jYv
t8wAoLqlrsS5SpWfssLqYoBIUgdWOsUi
=7Bdo
-----END PGP SIGNATURE-----