Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!ucbvax!decwrl!wyse!mips!prls!philabs!linus!raybed2!rayssd!srhqla!kosman!kevin From: kevin@kosman.UUCP (Kevin O'Gorman) Newsgroups: comp.sources.d Subject: Bug in indent, working on itself Message-ID: <735@kosman.UUCP> Date: 4 Apr 89 16:13:08 GMT Organization: K.O.'s Manor - Vital Computer Systems, Oxnard, CA 93035 Lines: 31 I scarfed indent off the sources group, applied the patches for sysv, (but not the second such patch, which patch complained looked like a reversed patch anyway). Then, to test that it was working, I tried indent indent.c foo and it complained about an unterminated literal in line 26. The line is the last before the #endif in the following: >#ifndef lint >char copyright[] = >"@(#) Copyright (c) 1985 Sun Microsystems, Inc.\n\ > @(#) Copyright (c) 1980 The Regents of the University of California.\n\ > @(#) Copyright (c) 1976 Board of Trustees of the University of Illinois.\n\ > All rights reserved.\n"; >#endif /* not lint */ In foo, the output looks like >#ifndef lint >char copyright[] = >"@(#) Copyright (c) 1985 Sun Microsystems, Inc.\n\ > @(#) Copyright (c) 1980 The Regents of the University of California.\n\ > @(#) Copyright (c) 1976 Board of Trustees of the University of Illinois.\n\ >All rights reserved.\ n "; >#endif /* not lint */ Note the missing space at the beginning, and two added near the end of the line. Am I doing something wrong? Did the sysv patches do this? Was there something in that second sysv patch that I needed? Does indent not like copyrights? Anyone else see this?