home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #19 / NN_1992_19.iso / spool / comp / unix / shell / 3714 < prev    next >
Encoding:
Internet Message Format  |  1992-08-31  |  937 b 

  1. Path: sparky!uunet!utcsri!bonnie.concordia.ca!daily-planet.concordia.ca!alcor.Concordia.CA!gsa
  2. From: gsa@alcor.concordia.ca ( CON U GRADUATE STUDENTS' ASSOC )
  3. Newsgroups: comp.unix.shell
  4. Subject: Blocking Control-C and Control-Z.
  5. Message-ID: <4849@daily-planet.concordia.ca>
  6. Date: 31 Aug 92 19:37:00 GMT
  7. Sender: usenet@daily-planet.concordia.ca
  8. Distribution: comp.unix.shell
  9. Organization: Concordia University, Montreal, Quebec
  10. Lines: 12
  11.  
  12. I have found that the only way to trap the break options in 
  13. non ksh shells is to redirect them to some unused control 
  14. sequences. When put in the .cshrc however, only the ^Z option
  15. is redirected and the 'stty intr <something>' is ignored, unless
  16. I later source the same file, which makes no sense whatsover.
  17. 'stty -isig' is fickle, it sometimes works and sometimes 
  18. doesn't.  Does anyone have a working code that blocks both
  19. the break and stop signals, which can be placed in .cshrc?
  20.  
  21.  
  22. ---
  23. Dan.
  24.