questions on signals

Shaffer, Kenneth shaffek@sciatl.com
Wed Dec 31 15:43:00 GMT 2003


How do I get trap to get back to the default settings after entering 'trap
"echo hi" DEBUG'?  'trap -' doesn't seem to work.

How can I get ctrl-C to quit this cpu-intensive loop?
  echo | awk '{while(1){} }'

cygcheck shows:
  bash                    2.05b-16           OK
  gawk                    3.1.3-4            OK

type awk:
awk is /bin/awk

ls -l /bin/awk:
lrwxrwxrwx    1 shaffek  Users          19 Oct 29 15:44 /bin/awk ->
gawk.exe

type gawk:
gawk is /bin/gawk

stty -a:
speed 38400 baud; rows 40; columns 120; line = 0;
intr = ^C; quit = ^\; erase = ^?; kill = ^U; eof = ^D; eol = <undef>; eol2
= <undef>; start = ^Q; stop = ^S; susp = ^Z;
rprnt = ^R; werase = ^W; lnext = ^V; flush = ^O; min = 1; time = 0;
-parenb -parodd cs8 -hupcl -cstopb cread -clocal -crtscts
-ignbrk brkint -ignpar -parmrk -inpck -istrip -inlcr -igncr icrnl ixon
-ixoff -iuclc -ixany -imaxbel
opost -olcuc -ocrnl onlcr -onocr -onlret -ofill -ofdel nl0 cr0 tab0 bs0
vt0 ff0
isig icanon iexten echo -echoe -echok -echonl -noflsh -tostop -echoctl
-echoke

--
Ken Shaffer



     - - - - - - -  Appended by Scientific-Atlanta, Inc.  - - - - - - -  
This e-mail and any attachments may contain information which is confidential, proprietary, privileged or otherwise protected by law. The information is solely intended for the named addressee (or a person responsible for delivering it to the addressee). If you are not the intended recipient of this message, you are not authorized to read, print, retain, copy or disseminate this message or any part of it. If you have received this e-mail in error, please notify the sender immediately by return e-mail and delete it from your computer.


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/



More information about the Cygwin mailing list