d

diff(1)

diff(1)

WARNINGS

Editing scripts produced by the -eor -foption are naive about creating lines consisting of a single dot (.).

When comparing directories with the -b, -w, or -ioptions speci®ed, diff ®rst compares the ®les in the same manner as cmp, then runs the diff algorithm if they are not equal. This may cause a small amount of spurious output if the ®les are identical except for insigni®cant blank strings or uppercase/lowercase differences.

The default algorithm requires memory allocation of roughly six times the size of the ®le. If suf®cient memory is not available for handling large ®les, the -hoption or bdiff can be used (see bdiff(1)).

With other options if suf®cient memory is not available, then either the swap or maxdsiz values can be increased.

When run on directories with the -roption, diff recursively descends sub-trees. When comparing deep multi-level directories, more memory may be required than is currently available on the system. The amount of memory required depends on the depth of recursion and the size of the ®les.

AUTHOR

diff was developed by AT&T, the University of California, Berkeley, and HP.

FILES

used by -hoption

/usr/lbin/diffh

SEE ALSO

bdiff(1), cmp(1), comm(1), diff3(1), diffmk(1), dircmp(1), ed(1), more(1), nroff(1), rcsdiff(1), sccsdiff(1), sdiff(1), terminfo(4).

STANDARDS CONFORMANCE

diff: SVID2, SVID3, XPG2, XPG3, XPG4, POSIX.2

Section 1180

− 3 −

HP-UX Release 11i: December 2000