[ClusterLabs] Antw: Re:  ocf scripts shell and local variables
    Ulrich Windl 
    Ulrich.Windl at rz.uni-regensburg.de
       
    Tue Aug 30 06:09:34 UTC 2016
    
    
  
>>> Dejan Muhamedagic <dejanmm at fastmail.fm> schrieb am 29.08.2016 um 16:37 in
Nachricht <20160829143700.GA1538 at tuttle.homenet>:
> Hi,
> 
> On Mon, Aug 29, 2016 at 02:58:11PM +0200, Gabriele Bulfon wrote:
>> I think the main issue is the usage of the "local" operator in ocf*
>> I'm not an expert on this operator (never used!), don't know how hard it is 
> to replace it with a standard version.
> 
> Unfortunately, there's no command defined in POSIX which serves
> the purpose of local, i.e. setting variables' scope. "local" is,
Isn't it "typeset"?
> however, supported in almost all shells (including most versions
> of ksh, but apparently not the one you run) and hence we
> tolerated that in /bin/sh resource agents.
> 
> Thanks,
> 
> Dejan
    
    
More information about the Users
mailing list