Package: ratpoison
Version: 1.4.0-beta4-10
Severity: minor

On the ratpoison man page, one can see an option for echoing text, like this:
" echo text
             Show text as ratpoison message."

However, if one naively runs " ratpoison -c echo foo ", one gets "
Error: junk arguments:
                foo ".
One needs to run instead " ratpoison -c "echo foo" "
Perhaps this could be updated to mention the need for quotes?

(Attached is the IRC conversation on #ratpoison I had when I ran into
this problem).

~maru
#from ratpoison:
<Marudubshinki> why does "$ratpoison -c echo text" give "Error: junk arguments:
                text"? [18:06]
<Marudubshinki> echo is a ratpoison command that is supposed to take a single
                textual argument and ehco it in the text box, isn't it?
                                                                            
[18:07]
<sen> ratpoison -c "echo text"
<Marudubshinki> ah
<Marudubshinki> thanks
<sen> np :)
<Marudubshinki> but why must arguments to -c be quoted? [18:08]
<Marudubshinki> for example, "ratpoison -c focusleft" works fine
<sen> hmm
<sb2> its way your shell parses things
<Marudubshinki> oh. you mean -c is passed on argument, so ratpoison gets only
                "echo" and not the argument to echo? [18:09]
<Marudubshinki> *one
<sb2> ratpoison -c echo foo is passed to the C program as: "ratpoison" "-c" 
"echo"
      "foo"
<sb2> ratpoison *could* assemble them back [18:10]
<sb2> but it uses getopt
<Marudubshinki> ah, I understand now. not really ratpoison's fault then.

Reply via email to