I'm not opposed to this behavior, exactly, but I think it's not what I'd expect. If I were using the CLI and I mis-typed a dirname, for instance, or didn't have my permissions set right, what I'd expect to see was an error to that effect, not the (possibly very large) rendered document scrolling by.

Perhaps it should just fail if it's asked to write a file to a directory that doesn't exist and that it can't create, or likewise for a file?