From: Rafael L. <rla...@us...> - 2004-01-15 08:26:14
|
* Rafael Laboissiere <rla...@us...> [2004-01-15 08:49]: > I think that the problem comes from the different treatment of global > variables in both versions. Indeed: > > $ octave > octave:1> global foo; exist("foo") > ans = 1 > > $ octave > GNU Octave, version 2.1.50 (i386-pc-linux-gnu). > [...] > octave:1> global foo; exist("foo") > ans = 0 This is fixed in CVS now. Here is the (almost) trivial patch (works in both Octave 2.1.50 and 2.1.52): diff -u -r1.5 plplot_octave_path.m.in --- plplot_octave_path.m.in 13 Apr 2003 20:54:06 -0000 1.5 +++ plplot_octave_path.m.in 15 Jan 2004 08:22:13 -0000 @@ -21,7 +21,7 @@ global __pl_plplot_octave_path - if (!exist("__pl_plplot_octave_path")) + if (!exist("__pl_plplot_octave_path") | isempty(__pl_plplot_octave_path)) __pl_plplot_octave_path = "@PLPLOT_OCTAVE_DIR@//"; endif -- Rafael |