mirror of
https://github.com/dkogan/feedgnuplot.git
synced 2025-05-06 14:31:11 +08:00
more intelligent handling of shebang plotting
This commit is contained in:
parent
9212df053a
commit
e05c0e3232
@ -8,6 +8,7 @@ use Data::Dumper;
|
|||||||
use threads;
|
use threads;
|
||||||
use threads::shared;
|
use threads::shared;
|
||||||
use Thread::Queue;
|
use Thread::Queue;
|
||||||
|
use Text::ParseWords;
|
||||||
|
|
||||||
open(GNUPLOT_VERSION, "gnuplot --version |");
|
open(GNUPLOT_VERSION, "gnuplot --version |");
|
||||||
my ($gnuplotVersion) = <GNUPLOT_VERSION> =~ /gnuplot\s*([0-9]*\.[0-9]*)/;
|
my ($gnuplotVersion) = <GNUPLOT_VERSION> =~ /gnuplot\s*([0-9]*\.[0-9]*)/;
|
||||||
@ -120,7 +121,7 @@ OEF
|
|||||||
# takes care of both those cases.
|
# takes care of both those cases.
|
||||||
if(exists $ARGV[0] && !-r $ARGV[0])
|
if(exists $ARGV[0] && !-r $ARGV[0])
|
||||||
{
|
{
|
||||||
unshift @ARGV, split(/\s+/, shift(@ARGV));
|
unshift @ARGV, shellwords shift @ARGV;
|
||||||
}
|
}
|
||||||
|
|
||||||
# do not stream in the data by default
|
# do not stream in the data by default
|
||||||
|
Loading…
Reference in New Issue
Block a user