Fix #806 - Handle ^D in ==