|
From: Petr M. <mi...@ph...> - 2005-11-14 16:33:33
|
> No, it's not supposed to be escaped. At least not in any version up to 4.0 > it wasn't. There are no backslash escapes being processed on single-quoted > strings in gnuplot, period. See 'help syntax'. Thus this > behaviour: > >> gnuplot> set title 'C:\'; foo' ; show title >> title is "C:\\'; foo", offset at ((character units) 0, 0, 0) > > Is a bug, and has been as long as it was present in the program. > > In other words: \-escape sequences in "" can become special characters like > LF, TAB or the backslash itself, whereas \ characters in '' become literal \ > characters, which 'show' doubles up since it uses "" strings. > > Not inside single-quoted strings. Exactly. Thus, 'C:\tmp' is really C:\tmp and not C:<TAB>tmp, and '\' is really \ (1 char) and not anything else. --- PM |