|
From: Ethan A M. <merritt@u.washington.edu> - 2005-11-13 16:50:16
|
On Sunday 13 November 2005 06:27 am, Petr Mikulik wrote:
>
> It is a bug.
>
> Can be reproduced in this way:
>
> gnuplot> set title 'c:\'
> gnuplot> show title
>
> title is "c:\\'", offset at ((character units) 0, 0, 0)
> It seems routine try_to_get_string() returns one superfluous ' more.
It has nothing to do with try_to_get_string().
The behaviour has been there since at least version 3.7
Backslash is an escape character, and you have escaped the trailing
single quote. This forces it to be kept in the string.
What you need to do is to escape the backslash itself,
and use double quotes:
gnuplot> set title "c:\\"
gnuplot> show title
title is "c:\\", offset at ((character units) 0, 0, 0)
This time the first backslash is an escape for the second backslash.
When you use the title in a plot, you will get only one backslash printed.
Now, whether this has anything to do with windows command lines, I'm
not so sure.
Does the original problem persist if you use double quotes?
Can you use the cygwin syntax (forward slash) instead?
cd "c:/"
--
Ethan A Merritt
Biomolecular Structure Center
University of Washington, Seattle 98195-7742
|