Fixed bug where non-redirected commands would not report the correct number of parameters.