Project

General

Profile

« Previous | Next » 

Revision 14908

lib/sh/util.sh: added sig_num()

View differences:

trunk/lib/sh/util.sh
563 563

  
564 564
### signals
565 565

  
566
sig_num() { kill -l "$1"; } # usage: sig_num SIG__
567

  
566 568
sig_e() { echo $(( 128+$(kill -l "$1") )); } # usage: sig_e SIGINT, etc.
567 569

  
568 570
func_override catch__exceptions

Also available in: Unified diff