trap 2 on /etc/profile

Bud Hovell bbh at whizz.UUCP
Fri Sep 9 22:43:18 AEST 1988


In a just-launched reply to John Sucilla, I said:

>Also, I am a bit unclear on your intended meaning when you describe how a
>'trap 1 2 3' statement "disables" the traps - it specifically *enables* traps
>1, 2, and 3 - trap 2 being the specific villain which must be removed in 
>order that the interrupt NOT be trapped (that is, hit in the head) when you 
>use the <del> key. (At least Kernighan thinks it works that way: see page 150
>of The UNIX Programming Environment).
>
>Or are we RTFMing out of different hymnals?

After myself re-reading Kernighan, I have to conclude that it is I who have a
limited understanding of the 'trap' command. Also, I must disclaim the ability
to assert what Kernighan - or anyone else - thinks about this subject, since
my mind-reading ability is even more flawed than my knowledge of 'trap'. :-)

However, I must stand by the basic facts offered: with the trap 2 command,
my 610 terminal and console completely loose the <del> key function when they
go into Informix SQL, and this problem is eliminated (with no apparent side
effects) by removing them. (Informix disclaims any knowledge).

Because I have just set up two other 7300 machines to dial into this database,
it was also necessary to make the same adjustments to those scripts after the
users complained about the absence of the <del> key - and couldn't get out of
the program till I killed the process! After 'trap' changes were made, they
have (like me) had no further problems. 

And, again, I invite anyone who knows to explain why these facts should be so.
Kernighan notwithstanding.
						    :::::::::::::::::::::::::
                                                    |                       | 
               Bud Hovell                           | OVERTURE SYSTEMS CORP |   
             (503) 636-3000                         |    Lake Oswego, OR    |
                                                    |                       | 
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
| UUCP{attmail!, tektronix!tekgen!teksce!bucket!, pacbell!safari!}whizz!bbh |
:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::



More information about the Unix-pc.bugs mailing list