|
From: Petr M. <mi...@ph...> - 2005-11-13 21:32:12
|
>> There is no change to behaviour:
>> this works: X 'C:\tmp'
>> this not: X 'C:\'
>> where X is set title or cd or whatever else.
>
> I simply don't understand you (which may be the case because you
> haven't understood me, so: more probably my fault). What do you
> mean by "works"?
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>
So it looks there are two bugs:
1. A problem with c_token++ (?) on the 2nd line (prompt)
2. On the 3rd line, it should be "C:\\" and not "C:\\'"
> starts the string, then there are two ordinary characters. Then
> there is an *odd* number of backslashes, meaning that the following
> character is to be taken literally *as are all of the backslashes*.
> The string is ended implicitly by the end of the line. So, there is
> no bug. Just a very silly syntax. I don't know who has invented
> this and why, but gnuplot is not the only program using it.
In gnuplot, the \ is escape character in "this" string, but a normal
character in 'this' string.
---
PM
|