in reply to Re: control-d out of loop?
in thread control-d out of loop?

And for the uninitiated, remember that ^D does not equal EOF on all operating systems. With Windows, for example, you'd have to use ^Z for the same effect.