epike on Fri, 18 Jan 2002 16:00:22 +0100


[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

Re: [PLUG] EOF


yes, ^Z is really the DOS EOF character.

Dont know if they changed it in the last few years but
you can easilly check this (in MS-DOS) by 

copy con: somefile

typing a few lines, 
and pressing ctrl-Z on a LINE BY ITSELF.

maybe you aren't pressing ctrl-D on a
line by itself?  Usually strings with
ctrl-d at the end wont work.  You
can easilly check this by (in Unix/Linux):

cat > /dev/null

note: ctrl-z on unix (on most unix shells 
anyway) sends a suspend signal to the
foreground process so you might be confused
to see your test program going into
background.


I think all of these can be reset by
the command stty (in Unix/Linux).

stty -a 

should display the current OEF charachter.



E.Pike

> 
> ^Z for EOF? That's totally crazy. ^D is the Unix (and POSIX, and
> ISO, and...) standard key sequence to enter EOF. But it may or may
> not work under Windows. (Gee, there's a shocker. ;^>)


______________________________________________________________________
Philadelphia Linux Users Group       -      http://www.phillylinux.org
Announcements-http://lists.phillylinux.org/mail/listinfo/plug-announce
General Discussion  -  http://lists.phillylinux.org/mail/listinfo/plug


  • Follow-Ups:
  • References: