MPE/iX Shell and Utilities Reference Manual, Vol 1

diff(1) MPE/iX Shell and Utilities diff(1)
$ 99.99 -- Kiddie Destructo-Bot
- $125.00 -- Emperor’s New Clothes
--- 12,14 ----
diff –c marks lines removed from price1 with , lines added to price1 with + and lines
changed in both files with !. In the example, diff shows the default 3 lines of context
around each changed line. One line was changed in both files (marked with !), one line was
added to price1 (marked with +), and one line was removed from price1 (marked with
).
Note: If there are no marks to be shown in the corresponding lines of the file being compared,
the lines are not displayed. Lines 12 to 14 of price2 are suppressed for this reason.
DIAGNOSTICS
Possible exit status values are:
0 No differences between the files compared.
1 diff compared the files and found them to be different.
2 An error occurred.
4 At least one of the files is a binary file, containing embedded NUL (\0) bytes or new-
lines which are more than LINE_MAX characters apart.
Messages
Message: cannot open directory "pathname"
Cause: You do not have read permission on pathname.
Action: Use chmod to acquire read permission on pathname.
Message: File file1 is a type1 while file file2 is a type2
Cause: The two files specified on the directory were of different file types.
diff can only compare files that have the same file type.
Action: Specify two files that have the same file type.
Message: file "filename" is binary
Cause: You specified the binary file filename as a diff input file. diff only works on
text files.
Action: Only specify text files as diff input files.
Message: file "filename": line too long: limit num
Cause: The input line is too long.
Action: Try again with a shorter input line.
1-178 Commands and Utilities