Lars Marowsky-Bree wrote:
> On 2006-08-09T11:16:33, David Lee <[EMAIL PROTECTED]> wrote:
> 
>> "ha_clustermsg()" looks worringly non-intuitive and opaque even to a
>> relatively experienced Bourne-shell tinkerer.  Even if it is technically
>> correct, it isn't the world's best example of programming clarity!
> 
> Hm, it looks obvious to me, but the $* really is confusing.
> 
>> Is Matt encountering yet another Bourne-vs.-Bash issue lurking hidden in
>> that dark undergrowth?
>>
>> Does it need a re-think?
> 
> Many places in the code can do with being cleaned up - we've got quite a
> bit of janitor work... I'm always glad if someone wishes to help with
> this!
> 
>> or:
>>    # copy stdin (text) to FIFO, with surrounding ">>>" and "<<<" marker 
>> lines.
>>    # no args.; no result
>>    ha_clustermsg() {
>>      (echo ">>>"; cat -; echo "<<<") >> $HA_FIFO
>>    }
> 
> I like this approach best.

But, I think you want a "| cat" before the ">> $HA_FIFO" for reasons I
explained in an earlier email.

-- 
    Alan Robertson <[EMAIL PROTECTED]>

"Openness is the foundation and preservative of friendship...  Let me
claim from you at all times your undisguised opinions." - William
Wilberforce
_______________________________________________________
Linux-HA-Dev: [email protected]
http://lists.linux-ha.org/mailman/listinfo/linux-ha-dev
Home Page: http://linux-ha.org/

Reply via email to