[MITgcm-devel] Symbolic linked _mpi
Alistair Adcroft
adcroft at MIT.EDU
Fri Dec 5 14:03:14 EST 2003
Ok - lesson re-learned. I did miss the ==.
A.
--
Dr Alistair Adcroft http://www.mit.edu/~adcroft
MIT Climate Modeling Initiative tel: (617) 253-5938
EAPS 54-1523, 77 Massachusetts Ave, Cambridge, MA, USA
-----Original Message-----
From: mitgcm-devel-bounces at mitgcm.org
[mailto:mitgcm-devel-bounces at mitgcm.org] On Behalf Of Ed Hill
Sent: Friday, December 05, 2003 1:00 PM
To: MITgcm-devel
Subject: RE: [MITgcm-devel] Symbolic linked _mpi
Hi Alistair,
OK, you got me, I certainly forgot to check that $MPI was enabled. My
mistake.
But you missed one of the finer points of my earlier emails. The syntax to
use is:
test "x$foo" = "x$bar"
not
test "x$foo" == "x$bar"
You'll notice that the latter is not mentioned if you do a "man test" and
the "==" is actually non-portable. It works on the Linux boxes and fails on
most of the commercial Unixes. And if you don't believe me, just try:
test a == a && echo hi
on one of the Linux machines and then try it using the Bourne shell on one
of the IBM SP3/4's where you'll get:
$ test a == a && echo hi
sh: ==: 0403-012 A test command parameter is not valid.
Ed
--
Edward H. Hill III, PhD
office: MIT Dept. of EAPS; Room 54-1424; 77 Massachusetts Ave.
Cambridge, MA 02139-4307
email: eh3 at mit.edu, ed at eh3.com
URL: http://web.mit.edu/eh3/
phone: 617-253-0098
fax: 617-253-4464
More information about the MITgcm-devel
mailing list