"Michael Brown" <[email protected]> writes:

> Seems the problem has something to do with xsetroot's whitespace
> handling...

Then it's probably working like bourne shell.  Observe:

    $ argcount () { echo $#; }
    $ argcount 1 2 3
    3
    $ argcount "1 2 3"
    1
    $ argcount $(echo 1 2 3)
    3
    $ argcount "$(echo 1 2 3)"
    1
    $ 

So,

    xsetroot -name $(echo 1 2 3)

is different than

    xsetroot -name "$(echo 1 2 3)"

You need to figure out how to get rc to take the output of your status
script and pass it in as a single argument to xsetroot.  Anselm's
suggestion appears to do precisely this.

Passing around arguments which contain whitespace is one of the trickier
aspects of shell programming.  "$@" is the bourne shell hacker's friend.

Neale

Reply via email to