SRCCOM

SRCCOM {listfile=} oldfile, newfile {switches}

SRCCOM compares two source files, reporting the differences. This is useful, for example, when comparing two versions of a program to see what has changed between them. It is most useful when the differences between the files are few; when they are substantial, it becomes both overwhelmed and overwhelming.

Switch

Effect

/B

Brief listing – same as /Q but without line numbers

/Q

Quick listing – list only the lines that differ between the two files

/?, /H

Writes switch listing and usage info to the screen.

 

Under UNIX, there is a much more powerful file comparison utility call diff, and in some cases, diff3, which can compare three files at a time. See the notes on DIFF, a A-Shell front-end to diff.

Note also that SRCCOM.LIT includes the list file name and switches in the listing header, matching the format of the AMOS version.