[Ultrix V4.3] Use SHELL=/bin/sh5

Jeffrey A Law law@cygnus.com
Mon Dec 21 06:33:00 GMT 1998


  In message < 13946.46954.666815.30518@xayide.TechFak.Uni-Bielefeld.DE >you writ
e:
  > I tried to bootstrap egcs 1.1.1 on MIPS Ultrix V4.3.  This failed initially
  > due to the broken Ultrix /bin/sh: /bin/sh's builtin test mishandles (among
  > others) the following construct:
  > 
  > if [ -f no-such-file ]; then echo no; fi
Ugh.  

  > sets the exit status to 1, causing a failure in gcc/Makefile's initial test
  > for lang-f77 (before the first touch of that file).  While one could
  > possibly `fix' the Makefile to ignore the return code in such tests, the
  > proper solution on Ultrix is to use /bin/sh5 instead, which is generally
  > bug-free and much faster than /bin/sh.
Losing shell.  Quite a common problem though.  Common enough that we have a
standard way to deal with it.  Change the above line to:

  if [ -f no-such-file ]; then echo no; else true; fi

If you could find any occurences that are giving your ultrix box troubles
and send a patch it would be greatly appreciated!

jeff



More information about the Gcc-patches mailing list