Is there a way to test whether a particular installation can or cannot redirect output, and branch accordingly? The weakness here is that win32+SBCL is hardwired as not being able to redirect. That problem may eventually be fixed, while there may be other OS and implementation combinations that suffer from the problem and will still fail. If you can test on redirect ability, this code will still work in both cases.