home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!gatech!udel!darwin.sura.net!spool.mu.edu!sdd.hp.com!col.hp.com!fc.hp.com!pbm
- From: pbm@fc.hp.com (Peter McLain)
- Subject: Re: Exiting KSH with ^D
- Sender: news@fc.hp.com (news daemon)
- Message-ID: <BzpywD.6tw@fc.hp.com>
- Date: Wed, 23 Dec 1992 15:55:25 GMT
- References: <1992Dec19.195724.10742@Celestial.COM>
- Organization: Hewlett-Packard Fort Collins Site
- X-Newsreader: TIN [version 1.1.3 PL6]
- Lines: 30
-
- :
- : This problem would occur if your eof is something other than
- : ctrl-d. Look at stty -a output to see what your settings are.
- : Here's part of stty -a from my Xenix 2.3.4 system.
- :
- : speed extb baud; line = 0; intr = DEL; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ^@; swtch = ^@
-
-
- Be careful how you get the stty output. If you just do "stty -a" from
- the ksh prompt, you will NOT get the settings that ksh uses. ksh keeps
- track of two sets of tty settings. One for its own use while it is
- reading input from the user; the other is used as the settings for the
- tty for jobs.
-
- E.g., if I'm on ttyt4, and do:
-
- $ stty -a # done from ttyt4
- ... eof = ^D; eol =^@
-
- But, if from a different window, I do:
-
- $ stty -a < /dev/ttyt4 # NOT done from ttyt4
- ... eof = ^[; eol = ^M
-
- The first shows the tty settings that ksh sets up for jobs that it
- spawns, the second shows the tty settings that ksh uses for the editing
- modes.
-
- Peter McLain
- pbm@fc.hp.com
-