]> git.saurik.com Git - wxWidgets.git/commitdiff
correct the REDIRECT_COMMAND definition for Unix
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2008 04:08:03 +0000 (04:08 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 22 Mar 2008 04:08:03 +0000 (04:08 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/console/console.cpp

index 73f48d327960a1a0be4548d08abd593ff37c7828..f345fc794d4d50c58c5a13c524b04403405b084a 100644 (file)
@@ -539,7 +539,7 @@ static void TestExecute()
     #define COMMAND "echo hi"
     #define ASYNC_COMMAND "xclock"
     #define SHELL_COMMAND "echo hi from shell"
-    #define REDIRECT_COMMAND COMMAND "cat -n Makefile"
+    #define REDIRECT_COMMAND "cat -n Makefile"
 #elif defined(__WXMSW__)
     #define COMMAND "command.com /c echo hi"
     #define ASYNC_COMMAND "notepad"
@@ -586,7 +586,7 @@ static void TestExecute()
         unsigned count = output.GetCount();
         for ( unsigned n = 0; n < count; n++ )
         {
-            wxPrintf("%04u:\t%s\n", n, output[n]);
+            wxPrintf("%04u:\t%s\n", n + 1, output[n]);
         }
 
         wxPuts(_T("Ok."));