changeset 17969:c1e4e25872f7

syscalls.cc: Pipe %! system() call results to NUL on Windows platforms. * syscalls.cc: Pipe %! system() call results to NUL on Windows platforms.
author Rik <rik@octave.org>
date Thu, 21 Nov 2013 08:03:05 -0800
parents 43c199e83ed7
children f6e1be4ad923
files libinterp/corefcn/syscalls.cc
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libinterp/corefcn/syscalls.cc	Wed Nov 20 12:28:56 2013 -0800
+++ b/libinterp/corefcn/syscalls.cc	Thu Nov 21 08:03:05 2013 -0800
@@ -382,7 +382,7 @@
 %! unix_sort = true;
 %! cmd = {"sort", "-r"};
 %! if (ispc ())
-%!   status = system ("sort /? 2> NUL");
+%!   status = system ("sort /? 2>NUL 1>NUL");
 %!   if (status == 0)
 %!     unix_sort = false;
 %!     cmd = {"sort", "/R"};