diff --git a/samples/exec/exec.cpp b/samples/exec/exec.cpp index 64d1aae2b5..add59464c9 100644 --- a/samples/exec/exec.cpp +++ b/samples/exec/exec.cpp @@ -727,6 +727,15 @@ void MyFrame::OnShell(wxCommandEvent& WXUNUSED(event)) void MyFrame::OnExecWithRedirect(wxCommandEvent& WXUNUSED(event)) { + if ( !m_cmdLast ) + { +#ifdef __WXMSW__ + m_cmdLast = "type Makefile.in"; +#else + m_cmdLast = "cat -n Makefile"; +#endif + } + wxString cmd = wxGetTextFromUser(_T("Enter the command: "), DIALOG_TITLE, m_cmdLast);