Bug Report: executing a couple of commands in command-line

akira akaishi <[email protected]> Sat, 14 Jan 2012 19:16:57 +0900
Newsgroups gmane.comp.graphics.gnuplot.bugs
Message-ID <CAOi20Vcj94ZnKieNyJG=byQ1SnXbRuE-K=0FZyeMxE9xONappA@mail.gmail.com>
--e89a8f838e4133ac5504b67a49e8
Content-Type: text/plain; charset=ISO-8859-1

Dear gnuplot,

I found a bug in gnuplot 4.4 patchlevel 4.

The bug involves an error when I try to do the followings:
1. create a file of seven-character name containing a function of
five-character name defined with a tricky combination of brackets.
2. pass the following commands via command-line option "-e":
(i) load the file
(ii) set variables
(iii) save settings

> echo "f2345(x,a)=sin(-1.0+((x)))" > 1234567
> gnuplot -e 'load"1234567"; set size 1.0,1.0; set origin 0,0; save"-"' > /dev/null

load"1234567"; set size 1.0,1.0; set origin 0,0; save"-"
                         ^
line 0: invalid expression

Note that the file name and the function name do not matter as far as
seven-character file name
and five-character function name (or even four-character function name).
The commands are apparently correct in their syntax.

A spooky behavior of the bug is that the error only occurs with the
above sequence of commands as far as I checked.
In other word, the error does NOT occur if any of followings is
slightly changed.
(i) length of file name/function name
(ii) combination of "set" commands
(iii) command expression including what spacing matters
See the attached files in detail.

The bug is obviously present, although the tests that I try to figure
out the bug
do not necessarily cover a systematic check (and my example may not be minimal).

Not to mention, one can easily avoid the error by proper spacing
around brackets for instance
while the bug remains unfixed.


Thanks in advance,


Akira Akaishi

--e89a8f838e4133ac5504b67a49e8
Content-Type: text/plain; charset=US-ASCII; name="result.txt"
Content-Disposition: attachment; filename="result.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gxehdi5j0

PiBiYXNoIHRlc3Quc2gKdmVyc2lvbiBvZiBnbnVwbG90OiBnbnVwbG90IDQuNCBwYXRjaGxldmVs
IDQKZW52aXJvbm1lbnQ6IExpbnV4IDIuNi4zMi0zNy1nZW5lcmljLXBhZSAjODEtVWJ1bnR1IFNN
UCBGcmkgRGVjIDIgMjI6MjQ6MjIgVVRDIDIwMTEgR05VL0xpbnV4Cgpsb2FkIjAwMzE5MDYiOyAg
c2V0IHNpemUgMS4wLDEuMDsgc2V0IG9yaWdpbiAwLDA7IHNhdmUiLSIKICAgICAgICAgICAgICAg
ICAgICAgICAgICAgXgpsaW5lIDA6IGludmFsaWQgZXhwcmVzc2lvbiAKCj4gCg==
--e89a8f838e4133ac5504b67a49e8
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
RSA(R) Conference 2012
Mar 27 - Feb 2
Save $400 by Jan. 27
Register now!
http://p.sf.net/sfu/rsa-sfdev2dev2
--e89a8f838e4133ac5504b67a49e8
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
gnuplot-bugs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gnuplot-bugs

--e89a8f838e4133ac5504b67a49e8--