|
From: Ethan M. <merritt@u.washington.edu> - 2005-11-14 19:05:41
|
On Monday 14 November 2005 10:00 am, Juergen Wieferink wrote:
>
> As a small excuse for the mostly pointless discussion I've caused,
> I've prepared a small patch which should switch to a more intuitive
> behaviour. Maybe the docs could be clarified accordingly.
But this breaks the ability to embed quotes:
gnuplot> a = "foo\"bar"
gnuplot> print a
foo"bar
gnuplot> b = 'foo\'bar'
^
';' expected
This is particularly a problem is you are constructing, say,
unix shell command lines to pass to a system() call.
There really needs to be a way to escape quote characters.
The other common convention is to repeat the quote character:
c = 'foo''bar'
but that convention is not so far used anywhere in gnuplot.
--
Ethan A Merritt merritt@u.washington.edu
Biomolecular Structure Center
Mailstop 357742
University of Washington, Seattle, WA 98195
|