#743247 gnuplot: Running load destroys arguments from call

#743247#5
Date:
2014-03-31 21:16:22 UTC
From:
To:
Dear Maintainer,

When running a "call" command with arguments, if the called file runs a "load" command, then the arguments are destroyed.
For example, if there are three files in the current directory:

experiment.plot:
set samples 1000
set pointsize 2.5
call "experiment.plotcall" "1"

experiment.plotcall:
load "experiment.plotload"
set terminal postscript eps monochrome enhanced dashed dashlength 2 22 size 6.6in, 4.45in
set output "experiment.eps"
plot 'flibble$0.out'

experiment.plotload:
<empty file>

then the command "gnuplot experiment.plot" is run with version 4.6.4-1~bpo70+1, then the following error message will be given:

"experiment.plotcall", line 6: warning: Skipping unreadable file "flibble.out"
"experiment.plotcall", line 6: No data in plot

whereas with version 4.4.0, the following error message is given:

"experiment.plotcall", line 6: warning: Skipping unreadable file "flibble1.out"
"experiment.plotcall", line 6: No data in plot

Note that the argument "1" has been destroyed. If the "load" command is removed from experiment.plotcall, then the argument is preserved.

#743247#10
Date:
2014-05-29 12:13:34 UTC
From:
To:
tags 743247 +upstream
forwarded 743247 http://sourceforge.net/p/gnuplot/bugs/1414
thanks

#743247#19
Date:
2014-05-29 18:14:43 UTC
From:
To:
tags 743247 +unreproducible
thanks

Hi Ethan,

you are right, I have just tried it and got also "flibble1.out", sorry
for possible false alarm.

Matthew, please confirm whether you still have problems.

Thanks

Anton


2014-05-29 18:37 GMT+02:00 Ethan Merritt <sfeam@users.sf.net>:

#743247#26
Date:
2014-06-02 09:56:43 UTC
From:
To:
tags 743247 -unreproducible
thanks

Yes, bug was reported against Debian wheezy 4.6.0-8, which is still the
current wheezy version.

Bug exists in current Debian stable version 4.6.0-8, but appears to be
fixed in 4.6.3 and onwards? That sounds like a partial solution - is there
a possibility of a bugfix for wheezy?

Matthew

#743247#33
Date:
2014-06-02 10:08:11 UTC
From:
To:
2014-06-02 11:56 GMT+02:00 Matthew Wakeling <matthew@wakeling.homeip.net>:

4.6.4 is available in backports for Wheezy [1].

[1] https://packages.debian.org/source/stable-backports/gnuplot

Anton