24.1 Signal specifications as strings and numbers

Function: mbfl_string_is_signame STR

Return true if STR is a valid signal–name string–specification; otherwise return false.

mbfl_string_is_signame 'SIGKILL'        ⇒ 0
mbfl_string_is_signame 'ciao            ⇒ 1
Function: mbfl_string_is_signum STR

Return true if STR is a valid signal–number specification; otherwise return false.

mbfl_string_is_signum 9                 ⇒ 0
mbfl_string_is_signum 9999              ⇒ 1
Function: mbfl_signal_map_signame_to_signum SIGNAME
Function: mbfl_signal_map_signame_to_signum_var SIGNUM_RV SIGNAME

Convert SIGNAME to the corresponding signal–number specification, then print the number or store it in the result variable SIGNUM_RV. When successful return true, otherwise return false.

mbfl_declare_integer_varref(SIGNUM)

mbfl_signal_map_signame_to_signum_var _(SIGNUM) 'SIGKILL'
⇒ 0
$SIGNUM         ⇒ 9
Function: mbfl_signal_map_signum_to_signame SIGNUM
Function: mbfl_signal_map_signum_to_signame_var SIGNAME_RV SIGNUM

Convert SIGNUM to the corresponding signal–name string–specification, then print the name or store it in the result variable SIGNAME_RV. When successful return true, otherwise return false.

mbfl_declare_varref(SIGNAME)

mbfl_signal_map_signum_to_signame_var _(SIGNAME) 9
⇒ 0
$SIGNAME        ⇒ SIGKILL

This document describes version 3.0.0-devel.9 of Marcos Bash Functions Library.