call "<input-file>" <param-0> <param-1> ... <param-9>
The name of the input file must be enclosed in quotes. As each line is read from the input file, it is scanned for the following special character sequences: $0 $1 $2 $3 $4 $5 $6 $7 $8 $9 $#. If found, the sequence $+digit is replaced by the corresponding parameter from the call command line. Quote characters are not copied and string variable substitution is not performed. The character sequence $# is replaced by the number of passed parameters. $ followed by any other character is treated as an escape sequence; use $$ to get a single $.
Example:
If the file 'calltest.gp' contains the line:
print "argc=$# p0=$0 p1=$1 p2=$2 p3=$3 p4=$4 p5=$5 p6=$6 p7=x$7x"
entering the command:
call 'calltest.gp' "abcd" 1.2 + "'quoted'" -- "$2"
will display:
argc=7 p0=abcd p1=1.2 p2=+ p3='quoted' p4=- p5=- p6=$2 p7=xx
NOTES: This use of the $ character conflicts both with gnuplot's own syntax
for datafile columns and with the use of $ to indicate environmental
variables in a unix-like shell. The special sequence $# was mis-interpreted
as a comment delimiter in gnuplot versions 4.5 through 4.6.3. Quote characters
are ignored during substitution, so string constants are easily corrupted.