Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!floyd!harpo!seismo!hao!hplabs!sri-unix!reece@nadc From: reece%nadc@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: bugs in cb under 4.1 BSD Message-ID: <17285@sri-arpa.UUCP> Date: Wed, 7-Mar-84 14:45:54 EST Article-I.D.: sri-arpa.17285 Posted: Wed Mar 7 14:45:54 1984 Date-Received: Sat, 10-Mar-84 08:09:03 EST Lines: 33 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@NADC