source: trunk/essentials/sys-apps/diffutils/NEWS@ 3180

Last change on this file since 3180 was 3043, checked in by bird, 19 years ago

-> essentials

File size: 8.0 KB
Line 
1User-visible changes in version 2.8.1:
2
3* Documentation fixes.
4
5User-visible changes in version 2.8:
6
7* cmp and diff now conform to POSIX 1003.1-2001 (IEEE Std 1003.1-2001)
8 if the underlying system conforms to POSIX and if the _POSIX2_VERSION
9 environment variable is set to 200112. Conformance removes support
10 for `diff -NUM', where NUM is a number. Use -C NUM or -U NUM instead.
11* cmp now supports trailing operands SKIP1 and SKIP2, like BSD cmp.
12* cmp -i or --ignore-initial now accepts SKIP1:SKIP2 option value.
13* New cmp option: -n or --bytes.
14* cmp's old -c or --print-chars option has been renamed;
15 use -b or --print-bytes instead.
16* cmp now outputs "byte" rather than "char" outside the POSIX locale.
17* cmp -l's index column width now adjusts to fit larger (or smaller) files.
18* cmp -l -s and cmp -s -l are not allowed. Use cmp -s or cmp -l instead.
19* diff uses ISO 8601 style time stamps for output times (e.g. "2001-11-23
20 16:44:36.875702460 -0800") unless in the C or POSIX locale and the
21 -c style is specified.
22* diff's -I and -F options use the regexp syntax of grep, not of Emacs.
23* diff now accepts multiple context arguments, and uses their maximum value.
24* New diff and sdiff options:
25 -E --ignore-tab-expansion
26 --strip-trailing-cr
27* New diff options:
28 --from-file=FILE, --to-file=FILE
29 --ignore-file-name-case
30 --no-ignore-file-name-case
31* New diff3 and sdiff option:
32 --diff-program=PROGRAM
33* The following diff options are still accepted, but are no longer documented.
34 They may be withdrawn in future releases.
35 -h (omit; it has no effect)
36 -H (use --speed-large-files instead)
37 -L (use --label instead)
38 -P (use --unidirectional-new-file instead)
39 --inhibit-hunk-merge (omit; it has no effect)
40* Recursive diffs now sort file names according to the LC_COLLATE locale
41 category if possible, instead of using native byte comparison.
42* Diff printf specs can now use the "0" and "'" flags.
43* The new sdiff interactive command `ed' precedes each version with a header.
44* On 64-bit hosts, files larger than 2 GB can be compared.
45* Some internationalization support has been added, but multibyte locales
46 are still not completely supported yet.
47* Some diagnostics have been reworded slightly for consistency.
48 Also, `diff -D FOO' now outputs `/* ! FOO */' instead of `/* not FOO */'.
49* The `patch' part of the manual now describes `patch' version 2.5.4.
50* Man pages are now distributed and installed.
51* There is support for DJGPP; see the 'ms' subdirectory and the files
52 m4/dos.m4 and */setmode.*.
53
54
55User-visible changes in version 2.7:
56
57* New diff option: --binary (useful only on non-POSIX hosts)
58* diff -b and -w now ignore line incompleteness; -B no longer does this.
59* cmp -c now uses locale to decide which output characters to quote.
60* Help and version messages are reorganized.
61
62
63User-visible changes in version 2.6:
64
65* New cmp, diff, diff3, sdiff option: --help
66* A new heuristic for diff greatly reduces the time needed to compare
67 large input files that contain many differences.
68* Partly as a result, GNU diff's output is not exactly the same as before.
69 Usually it is a bit smaller, but sometimes it is a bit larger.
70
71
72User-visible changes in version 2.5:
73
74* New cmp option: -v --version
75
76
77User-visible changes in version 2.4:
78
79* New cmp option: --ignore-initial=BYTES
80* New diff3 option: -T --initial-tab
81* New diff option: --line-format=FORMAT
82* New diff group format specifications:
83 <PRINTF_SPEC>[eflmnEFLMN]
84 A printf spec followed by one of the following letters
85 causes the integer corresponding to that letter to be
86 printed according to the printf specification.
87 E.g. `%5df' prints the number of the first line in the
88 group in the old file using the "%5d" format.
89 e: line number just before the group in old file; equals f - 1
90 f: first line number in group in the old file
91 l: last line number in group in the old file
92 m: line number just after the group in old file; equals l + 1
93 n: number of lines in group in the old file; equals l - f + 1
94 E, F, L, M, N: likewise, for lines in the new file
95 %(A=B?T:E)
96 If A equals B then T else E. A and B are each either a decimal
97 constant or a single letter interpreted as above. T and E are
98 arbitrary format strings. This format spec is equivalent to T if
99 A's value equals B's; otherwise it is equivalent to E. For
100 example, `%(N=0?no:%dN) line%(N=1?:s)' is equivalent to `no lines'
101 if N (the number of lines in the group in the the new file) is 0,
102 to `1 line' if N is 1, and to `%dN lines' otherwise.
103 %c'C'