SUMMARY: /bin/sh cat on solaris 2.1

From: Aaron Shtromas (ams@watson.ibm.com)
Date: Tue Nov 30 1993 - 14:21:16 CST


first, thanks to both responders. second, this seems to be a classical
case of misdiagnosis.

i should have mentioned that the data was in afs. after much experimentation,
i compiled on in ufs, and voila - it worked. some doubt is lingering on though:
a similar sparc sun4 running the same afs binaries does not manifest the same
behaviour. in the meantime, i'm going to try solaris 2.2 with afs 3.3.

aaron

> i stumbled upon the following enigma while compiling such packages
> as rcs, patch, xntp all of which feature configuration scripts that
> create dynamically create include files in stages repetedly appending
> to it. for example, this is a fragment of makeconfig.sh in xntp3.3a
>
> if [ -f machines/$MACHINE ]; then
> cat machines/$MACHINE >Config ;
> if [ -f compilers/$MACHINE.$COMPILER ]; then
> cat compilers/$MACHINE.$COMPILER >>Config
> else
> echo "COMPILER= $COMPILER" >>Config
> fi
> echo "LIBDEFS= -D$BYTE" >>Config
> cat Config.local >>Config
> else
> echo "Don't know how to build xntpd for machine $MACHINE " ;
> exit 1
> fi
>
> the machines/sunos5.1 did make it into Config on the first build, but not on
> any subsequent builds until i modified makeconfig.sh:
>
> if [ -f machines/$MACHINE ]; then
> if [ -f Config ]; then
> rm Config
> fi
> cat machines/$MACHINE >Config ;
> ....
>
> i doesn't seem to happen for short test scripts i wrote to determine whether
> /bin/sh is badly broken. did anybody experience anything like it? any insights?
> this is one of those nagging problems fo which there's probably a very simple
> answer... thanks in advance,
>
> aaron
>
>
>
> .............................................................
>
> Aaron Shtromas (Internet: ams@watson.ibm.com) (914) 784-7587
>
> Software Engineering Group
> Agora Project
> IBM Research
>

-------------------------------------------------------------

Aaron Shtromas (Internet: ams@watson.ibm.com) (914) 784-7587

Software Engineering Group
Agora Project
IBM Research



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:08:31 CDT