|
From: Juergen W. <wie...@fr...> - 2005-07-26 17:57:28
|
Ethan Merrit wrote: > Simpler example of breakage: > > gnuplot> set title offset 1,1 > undefined variable: offset > > > What has happened is that whenever the keyword "title" > is seen, the parser calls try_to_get_string(), which > then chokes if the next token on the line is a keyword > rather than a string or an expression. > > I don't know when or how this broke - possibly at the > time of Harald Harders' addition of the generalized > "offset" keyword for all string positions. > > I'm not sure yet where to fix it. I think try_to_get_string() should check the expression before evaluating it (using isstring() and friends :-) I'm quite surprised it doesn't do so far. This bug must have been there for quite a long time... I'm short of time at the moment, so I haven't really checked this suggestion. Juergen |