[comp.unix.shell] ksh EOF problem

cca04@seq1.keele.ac.uk (P.J. Mitchell) (01/10/91)

Has anyone found why ksh hangs on receiving EOF on Suns yet ? I've
seen the question asked but I've not seen an answer here.

I've had a look at ksh using dbx on my Sun and it *appears* that the
problem lies in the getsc_() function in ksh/src/lex.c which defines
EOF to be 0 instead of -1. Is this anything to do with it ?

Yours in hope....
--
Paul Mitchell (CMA#136(18) MAG#65715 DoD#0145) | Computer Centre,
JANET:  p.j.mitchell@uk.ac.keele.seq1          | Keele University, Keele,
USENET: p.j.mitchell@seq1.keele.ac.uk          | Staffordshire, ST5 5BG, U.K.
BITNET: p.j.mitchell%seq1.keele.ac.uk@ukacrl   | (+44 or 0)782 621111 ext 3302