bugs in cb under 4.1 BSD

reece%nadc at sri-unix.UUCP reece%nadc at sri-unix.UUCP
Thu Mar 8 05:45:54 AEST 1984


One of our users found the following two "cb" bugs. Has anyone else found
these? fixed them? The fix to the first is almost trivial. The second is
not as obvious.
------------------------------------------------------------------------

1. cb does not operate correctly in the following conditions:

If you have a keyword followed by anything but a lower case character
CB will treat this as a key word and will invoke the keyword processing.
This will cause very strange behavior such as core dumps and infinite
loops.  Examples of problem code are as follows

main()
{
	for_cdu1();
}

replacing for_cdu1() with the following also causes the error:

forHIST()
do_iam()
doHIST()
else_proc()

2.  cb will not process the following line correctly:

{0x01,0x30,444}

It will reach the last brace and insert n tabs before printing out the brace.

------------------------------------------------------------------------
Jim Reece
REECE at NADC



More information about the Comp.unix.wizards mailing list