|
From: Juergen W. <wie...@fr...> - 2005-11-13 21:43:56
|
On Sunday 13 November 2005 22:31 Petr Mikulik wrote:
> gnuplot> set title 'C:\tmp'; show title
>
> title is "C:\\tmp", offset at ((character units) 0, 0, 0)
>
> gnuplot> set title 'C:\'; show title
> gnuplot> set title 'C:\'
> gnuplot> show title
>
> title is "C:\\'", offset at ((character units) 0, 0, 0)
>
> gnuplot>
gnuplot> set title 'C:\'; show title
gnuplot> show title
title is "C:\\'; show title", offset at ((character units) 0, 0, 0)
gnuplot>
As I said: The string is implicitly ended by the end of the line,
not by the last single quote.
> In gnuplot, the \ is escape character in "this" string, but a normal
> character in 'this' string.
I would have expected this, too, two months ago. But which section
of the docs says so? I haven't found any. If I had, I would have
submitted a bug report, then. I say, it's not a bug, it's weird
undocumented behaviour (which may end up being mostly the same).
But there *is* an example of a similar syntax out there (raw
strings). So there probably is a reason for it.
Don't get me wrong: I don't promote the current syntax. Change it
if you like. I just want to explain it.
Juergen
|