Re: [ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Dejan Muhamedagic
On Tue, Aug 30, 2016 at 08:09:34AM +0200, Ulrich Windl wrote: > >>> Dejan Muhamedagic schrieb am 29.08.2016 um 16:37 in > Nachricht <20160829143700.GA1538@tuttle.homenet>: > > Hi, > > > > On Mon, Aug 29, 2016 at 02:58:11PM +0200, Gabriele Bulfon wrote: > >> I think the main

[ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Ulrich Windl
>>> Lars Ellenberg schrieb am 29.08.2016 um 22:07 in Nachricht <20160829200739.GQ5268@soda.linbit>: [...] > And no, I strongly do not think that we should "fall back" to the > "art" of shell syntax and idioms that was force on you by the original" >

[ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Ulrich Windl
>>> Jehan-Guillaume de Rorthais schrieb am 29.08.2016 um >>> 18:04 in Nachricht <20160829180440.5b7f1a2e@firost>: > On Mon, 29 Aug 2016 10:02:28 -0500 > Ken Gaillot wrote: > >> On 08/29/2016 09:43 AM, Dejan Muhamedagic wrote: > ... >>> I doubt that we

[ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Ulrich Windl
>>> Dmitri Maziuk schrieb am 29.08.2016 um 17:13 in Nachricht <161a5209-166c-e837-dcb0-169b8a4b3...@gmail.com>: > On 2016-08-29 04:06, Gabriele Bulfon wrote: >> Thanks, though this does not work :) > > Uhm... right. Too many languages, sorry: perl's system() will call

[ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Ulrich Windl
>>> Gabriele Bulfon schrieb am 29.08.2016 um 17:08 in Nachricht <14184995.610.1472483315074.JavaMail.sonicle@www>: > Sure, infact I can change all shebang to point to /bin/bash and it's ok. > The question is about current shebang /bin/sh which may go into trouble (as > if

[ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Ulrich Windl
>>> Dejan Muhamedagic schrieb am 29.08.2016 um 16:37 in Nachricht <20160829143700.GA1538@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

[ClusterLabs] Antw: Re: ocf scripts shell and local variables

2016-08-30 Thread Ulrich Windl
>>> Ken Gaillot schrieb am 29.08.2016 um 15:47 in >>> Nachricht <8ca22867-2103-b2da-316b-ac97234f8...@redhat.com>: > On 08/29/2016 04:17 AM, Gabriele Bulfon wrote: [...] > > Interesting, I thought local was posix, but it's not. It seems everyone > but solaris implemented