[GE users] Error with "export -f" shell (bash) functions

s_kreidl sabine.kreidl at uibk.ac.at
Thu Jan 14 10:15:50 GMT 2010


    [ The following text is in the "utf-8" character set. ]
    [ Your display is set for the "ISO-8859-10" character set.  ]
    [ Some characters may be displayed incorrectly. ]

I guess this might be referring to the (very) long lasting issue #2173 
<http://gridengine.sunsource.net/issues/show_bug.cgi?id=2173>
As this is an issue, which might concern a lot of people (e.g., using 
the environment modules package), can anyone report on whether there is 
any progress on a possible solution?

Thanks and  regards,
Sabine
 
rayson schrieb:
> On Wed, Jan 13, 2010 at 4:42 PM, fx <d.love at liverpool.ac.uk> wrote:
>   
>> No, one-liners are fine; the function body is any compound command and a
>> {}-list requires a terminating newline or semicolon (in sh generally):
>>
>>  $ func2 () { echo a; echo b;}
>>  $ func2
>>  a
>>  b
>>  $ printenv func2
>>  () {  echo a;
>>   echo b
>>  }
>>     
>
> I have to disagree with you on this.
>
> I was referring to needing new line when the function environment
> variable is set in a C program -- run the 2 C programs and see the
> difference.
>
>
>   
>> I suspect it generally needs to treat the environment correctly, but I
>> haven't looked at the code.  It should be perfectly fine to have
>> newlines in arbitrary environment values.
>>     
>
> Yup, likely because we don't have a lot of env vars that is more than
> one line. And as Ron mentioned, the environment file records 1
> variable per line and it is a flat file, so it is a bit harder for
> shepherd to parse it correctly during the environment setup stage...
>
> Rayson
>
>
>
>
>
>   
>> --
>> (Dr) Dave Love
>> ?E-Science?, Computing Services Department, University of Liverpool
>> AKA fx at gnu.org
>>
>> ------------------------------------------------------
>> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=238613
>>
>> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
>>
>>     
>
> ------------------------------------------------------
> http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=238676
>
> To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].
>
>

------------------------------------------------------
http://gridengine.sunsource.net/ds/viewMessage.do?dsForumId=38&dsMessageId=238711

To unsubscribe from this discussion, e-mail: [users-unsubscribe at gridengine.sunsource.net].



More information about the gridengine-users mailing list