Mercurial > hg > octave-lojdl
changeset 13962:efa658122cc9
Fix tilde_expand %!test bug on MinGW (Bug #33862)
* sysdepd.cc (tilde_expand): Change test to match function behavior.
author | Rik <octave@nomad.inbox5.com> |
---|---|
date | Tue, 29 Nov 2011 20:34:00 -0800 |
parents | 0fea4cf22f88 |
children | 663594b481e5 |
files | src/sysdep.cc |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.cc +++ b/src/sysdep.cc @@ -896,7 +896,7 @@ %! setenv ("HOME", "foobar"); %! endif %! home = getenv ("HOME"); -%! assert (tilde_expand ("~/foobar"), [home filesep() "foobar"]); +%! assert (tilde_expand ("~/foobar"), strcat (home, "/foobar")); %! assert (tilde_expand ("/foo/bar"), "/foo/bar"); %! assert (tilde_expand ("foo/bar"), "foo/bar"); */