This is something that's been niggling me for quite a while and I wondered if anyone else knows the answer. xterms don't normally repeat commands but the exit command is always printed out on a line by itself (with no prompt) just before the window closes.
I grepped the source code to see if there was an actual instruction to print "exit" as a goodbye message but there isn't. So why does this happen and what is its purpose?

