# HG changeset patch # User dbateman # Date 1184685767 0 # Node ID d388a35a9481b1141ee4de5d2905766035e0d44a # Parent 67794bf1ab3ba56326247288218b5016ab8ea982 [project @ 2007-07-17 15:22:47 by dbateman] diff -r 67794bf1ab3b -r d388a35a9481 scripts/ChangeLog --- a/scripts/ChangeLog Sat Jul 14 20:28:06 2007 +0000 +++ b/scripts/ChangeLog Tue Jul 17 15:22:47 2007 +0000 @@ -1,3 +1,8 @@ +2007-07-17 Michael Goffioul + + * pkg/pkg.m (pkg:installed_packages): Use findstr rather than regexp + to avoid issues with regexp special characters in the path strings. + 2007-07-06 David Bateman * general/accumarray.m: New function to create an array by diff -r 67794bf1ab3b -r d388a35a9481 scripts/pkg/pkg.m --- a/scripts/pkg/pkg.m Sat Jul 14 20:28:06 2007 +0000 +++ b/scripts/pkg/pkg.m Tue Jul 17 15:22:47 2007 +0000 @@ -1587,21 +1587,21 @@ ## Now check if the package is loaded tmppath = strrep (path(), "\\", "/"); for i = 1:length (installed_packages) - if (regexp (tmppath, strrep (installed_packages{i}.dir, "\\", "/"))) + if (findstr (tmppath, strrep (installed_packages{i}.dir, "\\", "/"))) installed_packages{i}.loaded = true; else installed_packages{i}.loaded = false; endif endfor for i = 1:length (local_packages) - if (regexp (tmppath, strrep (local_packages{i}.dir, "\\", "/"))) + if (findstr (tmppath, strrep (local_packages{i}.dir, "\\", "/"))) local_packages{i}.loaded = true; else local_packages{i}.loaded = false; endif endfor for i = 1:length (global_packages) - if (regexp (tmppath, strrep (global_packages{i}.dir, "\\", "/"))) + if (findstr (tmppath, strrep (global_packages{i}.dir, "\\", "/"))) global_packages{i}.loaded = true; else global_packages{i}.loaded = false;