DIFFBAS(1)

NAME
diffbas - Show differences between two tokenized Atari 8-bit BASIC files

SYNOPSIS

diffbas [diff-options] [-- listbas-options] file1 file2

DESCRIPTION

diffbas shows the differences between two tokenized (SAVEd) Atari BASIC programs, using listbas(1) and diff(1).

OPTIONS

diffbas takes no options of its own. It will pass options as-is to both listbas and diff. Use -- to separate them: everything before -- is passed to diff, and everything between -- and the first filename is passed to listbas.

COLOR

By default, the output is colorized by listbas. If you want to use diff's --color option, you should use -n as a listbas option. Color diffs are most useful with -u (unified diff format), so the command would look like:

$ diffbas -u --color -- -n A.BAS B.BAS

EXAMPLE

$ diffbas -u A.BAS B.BAS
--- A.BAS.lst 2024-07-12 23:56:46.937965855 -0400
+++ B.BAS.lst 2024-07-12 23:56:46.938965854 -0400
@@ -1,3 +1,4 @@
 10 ? "THIS LINE IS IN BOTH PROGRAMS."
 20 ? "THIS LINE IS ALSO IN BOTH."
+25 ? "THIS LINE ONLY IN B.BAS!"
 30 END

EXIT STATUS

0 for success. On failure, the exit status is that of whichever command failed (listbas or diff).

COPYRIGHT

WTFPL. See http://www.wtfpl.net/txt/copying/ for details.

AUTHOR

B.  Watson <urchlay@slackware.uk>; Urchlay on irc.libera.chat ##atari.

SEE ALSO

a8cat(1), a8eol(1), a8xd(1), atr2xfd(1), atrsize(1), axe(1), bas2aplus(1), blob2c(1), blob2xex(1), cart2xex(1), cxrefbas(1), dasm2atasm(1), diffbas(1), dumpbas(1), f2toxex(1), fenders(1), listbas(1), listamsb(1), protbas(1), renumbas(1), rom2cart(1), unmac65(1), unprotbas(1), vxrefbas(1), whichbas(1), xex1to2(1), xexamine(1), xexcat(1), xexsplit(1), xfd2atr(1), xex(5), atascii(7), fauxtari(7).

Any good Atari 8-bit book: De Re Atari, The Atari BASIC Reference Manual, the OS Users' Guide, Mapping the Atari, etc.