Mercurial > hg > octave-nkf
changeset 6322:723a32c8ee10
[project @ 2007-02-16 21:48:21 by dbateman]
author | dbateman |
---|---|
date | Fri, 16 Feb 2007 21:48:21 +0000 |
parents | 363a2f8c9e97 |
children | ea65de49e18e |
files | src/syscalls.cc |
diffstat | 1 files changed, 6 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/syscalls.cc +++ b/src/syscalls.cc @@ -355,7 +355,7 @@ %! [in, out, pid] = popen2 ("sort", "-nr"); %! EAGAIN = errno ("EAGAIN"); %! else -%! [in, out, pid] = popen2 ("sort", "/R", 1); +%! [in, out, pid] = popen2 ("sort", "/R"); %! EAGAIN = errno ("EINVAL"); %! endif %! fputs (in, "these\nare\nsome\nstrings\n"); @@ -379,7 +379,11 @@ %! endif %! until (done) %! fclose (out); -%! assert(str,{"these\n","strings\n","some\n","are\n"}) +%! if (!isunix()) +%! assert(str,{"these\n","strings\n","some\n","are\n"}) +%! else +%! assert(str,{"these\r\n","strings\r\n","some\r\n","are\r\n"}) +%! end */