Open MPI logo

MTT Devel Mailing List Archives

  |   Home   |   Support   |   FAQ   |   all MTT Users mailing list

Subject: Re: [MTT users] Patch for whatami (new sles10 lsb-release file format)
From: Ethan Mallove (ethan.mallove_at_[hidden])
Date: 2008-10-31 14:14:59


I'm still getting the error. Solaris sh seems to genuinely
have a problem with foo=$(bar) syntax:

  $ cat ./dollar-paren.sh
  #!/bin/sh
  foo=$(date)
  $ ./dollar-paren.sh
  dollar-paren.sh: syntax error at line 2: `foo=$' unexpected

Backticks seem to work though. E.g.,

  foo=`date`

-Ethan

On Fri, Oct/31/2008 02:01:55PM, Jeff Squyres wrote:
> Sorry; my stupid mailer didn't display it as an attachment when I
> forwarded. Try this.
>
> On Oct 31, 2008, at 1:56 PM, Ethan Mallove wrote:
>
>> On Fri, Oct/31/2008 01:01:02PM, Jeff Squyres wrote:
>> > Re-sending to the MTT list, because I think our listserver will
>> > automatically block Brian (I'll add him to the whitelist for future
>> > posts!).
>>
>> I'm getting a syntax error:
>>
>> $ whatami
>> whatami: syntax error at line 149: `DISTRIB_ID=$' unexpected
>>
>> Not sure if I'm doing a bad copy/paste out of my mail
>> client. Jeff, can you send the new whatami script as an
>> attachment?
>>
>
>
> --
> Jeff Squyres
> Cisco Systems

> _______________________________________________
> mtt-users mailing list
> mtt-users_at_[hidden]
> http://www.open-mpi.org/mailman/listinfo.cgi/mtt-users