fn: sgnd_show_vars_by_prefix
Purpose
Log shell variables whose names start with a supplied prefix.
Arguments
$1— Nonempty variable-name prefix.$2— Optional flag to also print through sayinfo when debug is disabled.
Side effects
Uses saydebug and optionally sayinfo to emit matching variable names/values.
Returns
- 0 after logging; 1 when the prefix is missing.
Usage
sgnd_show_vars_by_prefix SGND_DT_ 1
