Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!cmcl2!brl-adm!adm!eichelbe@nadc.arpa From: eichelbe@nadc.arpa (J. Eichelberger) Newsgroups: comp.unix.wizards Subject: indent bug Message-ID: <10266@brl-adm.ARPA> Date: Tue, 10-Nov-87 12:26:35 EST Article-I.D.: brl-adm.10266 Posted: Tue Nov 10 12:26:35 1987 Date-Received: Thu, 12-Nov-87 21:25:23 EST Sender: news@brl-adm.ARPA Lines: 38 We are running 4.3 BSD UNIX on a VAX 11/780. The following bug has been found when "indent" was run. No flags were specified. Just "indent input.c output.c". The input.c file looks like this: main() { int i=0; i=!i; if(i) printf("true\n"); } Unfortunately, the output.c file looks like this: main() { int i = 0; i != i; if (i) printf("true\n"); } --- Notice the change in the line "i=!i;" to "i != i;". I know the workaround, but input.c compiles and works. output.c compiles, too, and "works as coded", but indent has corrupted the code. If this bug has been fixed, please forward the bug fix to me. Thank you. Jon Eichelberger eichelbe@NADC.ARPA