From: Vadim Zeitlin Date: Sat, 22 Mar 2008 04:08:03 +0000 (+0000) Subject: correct the REDIRECT_COMMAND definition for Unix X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/ea58aac5808a7617dd68c94b651ad70e038a324f correct the REDIRECT_COMMAND definition for Unix git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@52679 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/console/console.cpp b/samples/console/console.cpp index 73f48d3279..f345fc794d 100644 --- a/samples/console/console.cpp +++ b/samples/console/console.cpp @@ -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."));