Mercurial > hg > octave-nkf
diff scripts/path/savepath.m @ 11032:c9b0a75b02e8
Make all regexp in Octave compatible with both POSIX and PCRE.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 28 Sep 2010 09:25:14 -0700 |
parents | 95c3e38098bf |
children | c776f063fefe |
line wrap: on
line diff
--- a/scripts/path/savepath.m +++ b/scripts/path/savepath.m @@ -208,7 +208,7 @@ endfunction function path_elements = parsepath (p) - pat = sprintf ("([^%s]+[%s$])", pathsep, pathsep); + pat = sprintf ('([^%s]+[%s$])', pathsep, pathsep); [jnk1, jnk2, jnk3, path_elements] = regexpi (strcat (p, pathsep), pat); endfunction