home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / unix / shell / 5116 < prev    next >
Encoding:
Text File  |  1992-12-21  |  2.0 KB  |  44 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!nwnexus!Celestial.COM!bill
  3. From: bill@Celestial.COM (Bill Campbell)
  4. Subject: Re: Exiting KSH with ^D
  5. Organization: Celestial Software, Mercer Island, WA
  6. Date: Sat, 19 Dec 1992 19:57:24 GMT
  7. Message-ID: <1992Dec19.195724.10742@Celestial.COM>
  8. References: <50235@shamash.cdc.com> <1992Dec8.143148.13973@rtsg.mot.com> <1992Dec9.184249.24657@cbfsb.cb.att.com> <1992Dec17.223304.3274@kopachuk.uucp>
  9. Keywords: shell, ksh, kornshell, HP-UX
  10. Lines: 32
  11.  
  12. In <1992Dec17.223304.3274@kopachuk.uucp> dcb@kopachuk.uucp (David Breneman) writes:
  13.  
  14. :In article <1992Dec9.184249.24657@cbfsb.cb.att.com> jpittas@cbnewsf.cb.att.com (john.pittas) writes:
  15. :>Lots of people have followed up on this saying that you need
  16. :>to set 'viraw' in order to exit ksh with control-d.  However,
  17. :>on both Sun machines and AT&T 3B2's I can exit ksh with ^D
  18. :>without a subsequent <return> and WITHOUT having viraw set.
  19. :>So, the original question is still valid: why is this behavior
  20. :>different with HP's ksh?
  21. :>
  22.  
  23. :I don't have the answer, but I can tell you that HP isn't the only
  24. :offender.  Our AT&T 7020 (Pyramid MIS-02) does the same thing.  If
  25. :you want to log out you have to enter <CTRL> D  <RETURN>
  26. :If you just enter <CTRL> D  somebody can come along and press
  27. :<DELETE> and bring the terminal back up as you.  This is in the Sys V
  28. :universe.  Useful security feature. :-)  I now find myself using
  29. :<CTRL> D  <RETURN> even on the 3B2s just out of habit.
  30.  
  31. This problem would occur if your eof is something other than
  32. ctrl-d.  Look at stty -a output to see what your settings are.
  33. Here's part of stty -a from my Xenix 2.3.4 system.
  34.  
  35. speed extb baud; line = 0; intr = DEL; quit = ^\; erase = ^H; kill = ^U; eof = ^D; eol = ^@; swtch = ^@
  36. ....
  37.  
  38. Bill
  39. -- 
  40. INTERNET:  bill@Celestial.COM   Bill Campbell; Celestial Software
  41. UUCP:   ...!thebes!camco!bill   6641 East Mercer Way
  42.              uunet!camco!bill   Mercer Island, WA 98040; (206) 947-5591
  43. SPEED COSTS MONEY -- HOW FAST DO YOU WANT TO GO?
  44.