^D appears to work for EOF, but when I look at VMIN, it's 1. Where would I look for VEOF, and is there any way I can get source which, without #ifdefs, will also work with SunOS 4.1.3? I wrote a beautiful utility which unfortunately only works with SunOS. SVR4 appends '$<2>' to all the escape sequences, and NetBSD gets ^A for EOF. -s