pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Errors on Solaris


From: John Darrington
Subject: Re: Errors on Solaris
Date: Fri, 30 May 2008 06:34:57 +0800
User-agent: Mutt/1.5.13 (2006-08-11)

On Thu, May 29, 2008 at 09:08:55AM -0700, Ben Pfaff wrote:
     John Darrington <address@hidden> writes:
     
     > The only two test failures now should be two which use $PPID which is
     > a bash thing and non-portable.
     
     We could do something like
             if test -z "$PPID"; then
                 exit 77             # Make automake ignore this test
             fi
     to cater to systems that don't have it.

That would be one option.
     
     But it's not a bashism.  This is what SUSv3 says:

Well it's not recognised by the /bin/sh which ships with Solaris9.

One construct which seems to work both on solaris and on GNU/Linux is
"ps -o ppid -p $$ | tail -1"  but I don't know what BSD and all the
other OSes might think of that.

J'

-- 
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://pgp.mit.edu or any PGP keyserver for public key.


Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]