"Michael Brown" <ebebe33_AT_gmail.com> 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
Received on Wed Dec 17 2008 - 06:26:32 UTC
This archive was generated by hypermail 2.2.0 : Wed Dec 17 2008 - 06:36:05 UTC