O que o kill embutido realmente faz nessas circunstâncias não está documentado no manual do shell do Bourne Again, mas está documentado nos manuais de shell Z e Korn:
- Concha Korn:
If the signal being sent is
TERM(terminate) orHUP(hangup), then the job or process will be sent aCONT(continue) signal if it is stopped. - Z shell:
If the signal being sent is not
KILLorCONT, then the job will be sent aCONTsignal if it is stopped.
O manual da shell do Bourne Again deve, da mesma forma, ler algo como:
If the signal being sent isTERMorHUPand a targetted process is part of a job, then the job will be sent aCONTsignal if it is stopped or job control is not available in the current terminal.
Porque é isso que realmente faz.