Discussion: ctrl z question
Afficher un message
Vieux 31/05/2007, 21h15   #2
Jose H.
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: ctrl z question

On May 30, 12:02 am, merrittr <merri...@gmail.com> wrote:
> can I trap ctrl-z and displa a message??? this doesn't seem to work:
> trap "echo You\'re trying to Control-z me" SIGTSTP


man bash
...........

SIGNALS
When bash is interactive, in the absence of any traps, it
ignores SIGTERM (so that kill 0 does not kill an interac-
tive shell), and SIGINT is caught and handled (so that the
wait builtin is interruptible). In all cases, bash
ignores SIGQUIT. If job control is in effect, bash ignores
SIGTTIN, SIGTTOU, and SIGTSTP.

  Réponse avec citation
 
Page generated in 0,05235 seconds with 9 queries