I need to develop a script in gnuplot that is usable under both Windows and Linux.
To decide which OS I have, I wrote
OS=system("echo %OS%")
print "OS = ", OS
if (OS eq "Windows_NT") \
...; \
else \
...;
and it worked.
Is there an alternative way, native to gnuplot, which does not depend on environment variables?