mathstuf / uzbl

A web browser that adheres to the unix philosophy.
http://www.uzbl.org
GNU General Public License v3.0
5 stars 2 forks source link

VARIABLE_SET message contains extra newline #12

Open dominikh opened 10 years ago

dominikh commented 10 years ago

When sending a set foo bar on stdin, the resulting VARIABLE_SET event will be terminated with two newlines instead of one.

mathstuf commented 10 years ago

This is because set has no output. This also occurs with other no-return-value commands (e.g., menu).

dominikh commented 10 years ago

Is this intentional or why was the issue closed?

mathstuf commented 10 years ago

I guess we could remove the newline for empty results, but is there a reason not to do so?

mathstuf commented 10 years ago

From IRC: Return whether 'set' succeeded or not.