Path: utzoo!attcan!uunet!lll-winken!lll-tis!helios.ee.lbl.gov!pasteur!ucbvax!decwrl!pyramid!prls!mips!dce From: dce@mips.COM (David Elliott) Newsgroups: comp.mail.mh Subject: Re: version.c not updated correctly Message-ID: <2897@dunkshot.mips.COM> Date: 24 Aug 88 21:16:26 GMT References: <3710@polya.Stanford.EDU> Reply-To: dce@dunkshot.UUCP (David Elliott) Organization: MIPS Computer Systems, Sunnyvale, CA Lines: 19 In article <3710@polya.Stanford.EDU> weening@Gang-of-Four.Stanford.EDU (Joe Weening) writes: > @version.sh; $(CC) -O -c version.c This is a pain, but it's worse if you are running SVR3.1 (or have the new awk as the default awk). version.sh was seemingly written by a shell quoting novice, since the part involving awk looks like: ... awk 'BEGIN { ... } \ { ... \ ... }' ... Inside of quotes, it is not necessary to escape newlines for programs like awk and sed. An escaped newline becomes a space. The result is that awk sees a program that is all on one line, and the new awk doesn't accept this (the behavior, though incompatible, has been shown to be correct according to the awk definition, and we have to be able to handle this). After fixing the awk script, it's a pain to get version.c rebuilt by the makefile, and the existing version.c doesn't compile.