When loading a file (using the load command) from a gnuplot file that has been called, the callee looses access to all its parameters after the load statement.
Steps to reproduce:
Unpack the attached code to reproduce the bug.
Execute 'gnuplot -persist test.gnuplot'
Expected results (tested in 4.3):
The first parameter $0 is accessible in the plot statement in plot.gnuplot. Gnuplot produces a line plot of the data file test.dat
Results when using gnuplot 4.6:
Gnuplot fails to pass the correct parameter to the plot command in plot.gnuplot.