Re: [wmii] actions are broken

From: Paride Legovini <>
Date: Wed, 18 Mar 2009 20:36:27 +0100

On Thu, Mar 05, 2009 at 01:15:21PM -0500, Kris Maglione wrote:
> On Thu, Mar 05, 2009 at 01:54:37AM +0100, Paride Legovini wrote:
>> I noticed that in wmii-hg actions are partially broken [...]
>> I also noticed that a wmiir help message appears in the stdout, which
>> means that wmiir is called with the wrong arguments somewhere in the
>> scripts. I guess the problems are related.
> Nope, actions have nothing to do with wmiir. I'll look into it.

I found that the help message comes from this line in wmiirc:

wmiir rm $(wmiir ls /lbar | sed 's,^,/lbar/,')

It happens when `wmiir ls' returns nothing, as happens when wmii starts.
Something like:

LBARITEMS=$(wmiir ls /lbar | sed 's,^,/lbar/,')
if [ ! -z $LBARITEMS ]; then
        wmiir rm $LBARITEMS

should fix this small aesthetic detail. Or we can just throw wmiir's
output in /dev/null.

Received on Wed Mar 18 2009 - 19:36:27 UTC

This archive was generated by hypermail 2.2.0 : Wed Mar 18 2009 - 19:48:06 UTC