changeset 9248:98034ebda172

ensure quoted gnuplot binary
author Benjamin Lindner <lindnerb@users.sourceforge.net>
date Sun, 24 May 2009 10:05:30 +0200
parents b2790fd23800
children 470af0f93ca9
files scripts/ChangeLog scripts/plot/__gnuplot_version__.m
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/ChangeLog	Fri May 22 23:48:04 2009 +0100
+++ b/scripts/ChangeLog	Sun May 24 10:05:30 2009 +0200
@@ -1,3 +1,8 @@
+2009-05-24 Benjamin Lindner <lindnerb@users.sourceforge.net>
+
+	* plot/__gnuplot_version__.m: quote gnuplot_binary to allow spaces
+	in file name
+
 2009-05-22  John W. Eaton  <jwe@octave.org>
 
 	* general/interp3.m: Don't require interpolation grid to have same
--- a/scripts/plot/__gnuplot_version__.m	Fri May 22 23:48:04 2009 +0100
+++ b/scripts/plot/__gnuplot_version__.m	Sun May 24 10:05:30 2009 +0200
@@ -30,7 +30,7 @@
   persistent __version__ = "";
 
   if (isempty (__version__))
-    [status, output] = system (sprintf ("%s --version", gnuplot_binary ()));
+    [status, output] = system (sprintf ("\"%s\" --version", gnuplot_binary ()));
     if (status != 0)
       ## This message ends in a newline so that the traceback messages
       ## are skipped and people might actually see the message, read it,