fn: sgnd_validate_int
Purpose
Test whether a string is a signed integer.
Arguments
$1— Candidate value.
Returns
- 0 for an optional minus sign followed by digits; 1 otherwise.
Usage
sgnd_validate_int "-42"

fn: sgnd_validate_int
Test whether a string is a signed integer.
$1 — Candidate value. sgnd_validate_int "-42"