Try this out: $ echo > foo ' > garbage > ... > ... > ... > ... > ' $ Then cat foo. This is a wierd bug but could be used instead of: cat << ! > foo garbage ... ... ... ... ! A user friendly bug !!!