bug-findutils
[Top][All Lists]
Advanced

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

Re: updatedb files portable?


From: Eric Blake
Subject: Re: updatedb files portable?
Date: Sat, 10 Dec 2005 07:36:07 -0700
User-agent: Mozilla Thunderbird 1.0.2 (Windows/20050317)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Andreas Metzler on 12/10/2005 6:48 AM:
> 
>>      if ! bigrams=`mktemp -t updatedbXXXXXXXXX`; then
>>      
>>However (sadly), the solaris bin/sh doesn't support the "!" operation.
> 
> 
> Afaik using ! to change the exit status of a pipeline to its logical
> NOT is a required POSIX feature.

True, but solaris /bin/sh is not POSIX-compliant.  The autoconf project
maintains a good list of which shell constructs are portable to a wide
variety of shells, and documents that ! at the start of the pipeline
should not be used.

- --
Life is short - so eat dessert first!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFDmufW84KuGfSFAYARAlT2AJ9+BIpiNlXfkUdRi+bqDr2DWtIbIwCfVecb
49eKTRaHGEfxolKz6C6gOH4=
=pK2x
-----END PGP SIGNATURE-----




reply via email to

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