It is happening because cat, when called without a file name, reads from stdin. When it hangs, type in something and press Enter; whatever you typed will be written to file "date".
EDIT: sorry -- that should have been Ctrl+D to end the input, not Enter. Thanks to subsequent posters for pointing it out.
Last edited by catkin; 07-23-2011 at 03:24 AM.