Shawn Presser writes: > Notice that it’s currently impossible for non-interactive scripts to > recover from EOF when reading from tty. After the user sends an EOF > character by pressing C-d, calling read-from-minibuffer will always result > in an error. This isn't quite true, see the attached script which catches the error and only exits after two EOFs.