comparison scripts/plot/__gnuplot_version__.m @ 9248:98034ebda172

ensure quoted gnuplot binary
author Benjamin Lindner <lindnerb@users.sourceforge.net>
date Sun, 24 May 2009 10:05:30 +0200
parents eb63fbe60fab
children fd0a3ac60b0e
comparison
equal deleted inserted replaced
9247:b2790fd23800 9248:98034ebda172
28 function version = __gnuplot_version__ () 28 function version = __gnuplot_version__ ()
29 29
30 persistent __version__ = ""; 30 persistent __version__ = "";
31 31
32 if (isempty (__version__)) 32 if (isempty (__version__))
33 [status, output] = system (sprintf ("%s --version", gnuplot_binary ())); 33 [status, output] = system (sprintf ("\"%s\" --version", gnuplot_binary ()));
34 if (status != 0) 34 if (status != 0)
35 ## This message ends in a newline so that the traceback messages 35 ## This message ends in a newline so that the traceback messages
36 ## are skipped and people might actually see the message, read it, 36 ## are skipped and people might actually see the message, read it,
37 ## comprehend it, actually take the advice it gives, and stop 37 ## comprehend it, actually take the advice it gives, and stop
38 ## asking us why plotting fails when gnuplot is not found. 38 ## asking us why plotting fails when gnuplot is not found.