Debugging issues with I/O redirection