FIXED: Make ^D produce EOF