Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!cica!tut.cis.ohio-state.edu!gem.mps.ohio-state.edu!ginosko!uunet!zephyr!tektronix!orca!frip!andrew From: andrew@frip.WV.TEK.COM (Andrew Klossner) Newsgroups: gnu.gcc.bug Subject: "fixincludes" bugs Message-ID: <3945@orca.WV.TEK.COM> Date: 19 Jul 89 16:42:29 GMT Sender: nobody@orca.WV.TEK.COM Lines: 17 In the fixincludes shell script, in GCC 1.35: # Determine whether this system has symbolic links. if ln -s X $LIB/ShouldNotExist 2>/dev/null; then is done before mkdir $LIB > /dev/null 2>&1 so, if this was the first run of fixincludes, $LIB won't exist, so the ln will fail, and the system will appear not to have symbolic links. Fix: move the "mkdir" up above the "if ln". if egrep -s '[ ]_IO[A-Z]*\(|#define._IO|CTRL' $file; then system V egrep has no '-s' switch. Fix: for portability, eliminate -s and add ">/dev/null".