Eric provided the fixes to iocsh (empty commands would not reset redirected streams), I fixed various commands.