home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / sys / sgi / apps / 94 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.3 KB

  1. Path: sparky!uunet!olivea!sgigate!odin!twilight!zola!anchor!olson
  2. From: olson@anchor.esd.sgi.com (Dave Olson)
  3. Newsgroups: comp.sys.sgi.apps
  4. Subject: Re: Is there a C-shell equivalent of "trap"?
  5. Message-ID: <v5m10vk@zola.esd.sgi.com>
  6. Date: 21 Jan 93 18:21:52 GMT
  7. References: <1993Jan21.051424.17868@ringer.cs.utsa.edu>
  8. Sender: news@zola.esd.sgi.com (Net News)
  9. Organization: Silicon Graphics, Inc.  Mountain View, CA
  10. Lines: 19
  11.  
  12. In <1993Jan21.051424.17868@ringer.cs.utsa.edu> senseman@lucy.brainlab.utsa.edu (David M. Senseman) writes:
  13.  
  14. | This is almost certainly the wrong group to post to, 
  15. | but the question is so dumb, it probably doesn't matter...
  16. | I'm use to programming in Bourne/Korn and use the "trap"
  17. | builtin command from time to time. Is there a similar
  18. | service in C-Shell or a way to emulate a "trap"? I don't
  19. | see anything at all like "trap" in my C-Shell reference
  20. | books. Is it there and I'm not seeing it or this feature 
  21. | not found in C-Shell?
  22.  
  23. onintr, but it isn't as general as trap.  One of the many
  24. reasons people recommend writing any non-trivial shell
  25. script with sh or ksh.
  26. --
  27. Let no one tell me that silence gives consent,  |   Dave Olson
  28. because whoever is silent dissents.             |   Silicon Graphics, Inc.
  29.     Maria Isabel Barreno                        |   olson@sgi.com
  30.