|
From: Hans-Bernhard B. <br...@ph...> - 2004-10-26 12:56:00
|
only4 wrote: > I want to obtain the version string of gnuplot and get is in a shell script > variable, but I get an error trying the common VERSION=$(gnuplot --version) > Ps: My goal is write some lines of shell script that uses "filledcurves" > only if Gnuplot is >=4, "lines" otherwise Your main problem is that "gnuplot --version" works for version 4, but *not* for the version you're trying to test against (anything before that, up to and including 3.7.3). The only backwards-compatible method to extract a version number from gnuplot is to run echo show version | gnuplot and parse the resulting multi-line text. |