Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!plx!dlb!megatest!djones From: djones@megatest.UUCP (Dave Jones) Newsgroups: comp.lang.c++ Subject: bug-fix foo.c.o Message-ID: <183@goofy.megatest.UUCP> Date: 24 Dec 87 04:25:33 GMT Organization: Megatest Corporation, San Jose, Ca Lines: 20 Release 1.2.1 under Sun-3 Unix BUG: CC -c leaves the object file in foo.c.o, rather than foo.o. TEST: Make a little foo.c, then say, "rm foo.*o; CC -c foo.c; ls foo.*o". It should say, "foo.o", not "foo.c.o". FIX: Replace the B=`basename $A .[cC]` with the following: case $A in *.c) B=`basename $A .c` ;; *.C) B=`basename $A .C` ;; esac