Using self-compiled gnuplot version 6.1 patchlevel 0 on openSUSE Leap 15.5.
When using gnuplot interactively, history is available through arrow keys and through ^R. However, when calling gnuplot -e 'print "hello"' -
, I get an interactive session in which no history from previous sessions is available.