From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,2e58b3497bfff87 X-Google-Attributes: gidfee84,public X-Google-ArrivalTime: 1994-07-11 12:31:53 PST Newsgroups: comp.unix.osf.osf1 Path: bga.com!news.sprintlink.net!news.onramp.net!convex!cs.utexas.edu!howland.reston.ans.net!agate!darkstar.UCSC.EDU!news.hal.COM!olivea!decwrl!pa.dec.com!datum.nyo.dec.com!niagara.nyo.dec.com!frank From: frank@niagara.nyo.dec.com (Frank Wortner) Subject: Re: EOF and cntrl-D Message-ID: <1994Jul11.141209.15331@datum.nyo.dec.com> Sender: usenet@datum.nyo.dec.com (USENET News System) Reply-To: frank@niagara.nyo.dec.com (Frank Wortner) Organization: Digital Equipment Corporation X-Newsreader: mxrn 6.18-16 References: Date: Mon, 11 Jul 1994 14:12:09 GMT In article , rsmith@wisp5.physics.wisc.edu (Randall Smith) writes: |> ctrl-D doesn't work to close a file. |> It won't work in mailx, even with unset ignoreeof, and it won't work |> to close a file with cat > file.txt ; text ; ctrl-D. However, it |> _will_ work to log out; ie, ctrl-D at the command prompt exits. I'm |> running tcsh 6.03.00 I just tried your examples under various shells. Unfortnately, I don't have a copy of tcsh handy. Control-D does cause an EOF under GNU bash, /bin/sh, /bin/ksh, and /bin/csh. Frank