fix(config-settings): sponge bools use true/false; hint width; set -- hardening

- C1: sponge_purge_only_on_exit / sponge_allow_previously_successful are 'bool'
  rows that write true/false (sponge's convention), not on/off; badge maps
  true->ON, false->OFF, unset->DEFAULT
- I1: shorten value-page hint to 49 cols so it fits the 50-wide tier
- M1: set -U -- before the var name guards typed values beginning with a dash
This commit is contained in:
2026-06-24 00:49:23 -04:00
parent 5cf5ca07c5
commit 453b5f1d50
3 changed files with 28 additions and 21 deletions
+3 -3
View File
@@ -38,10 +38,10 @@ function __config_settings_set_value
else
switch $type
case list
set -U $varname (string split -n ' ' -- $value) 2>/dev/null
set -U -- $varname (string split -n ' ' -- $value) 2>/dev/null
case '*'
# ponytail: values here are paths/ints/tokens, never leading-dash
set -U $varname $value 2>/dev/null
# -- (before the name) guards typed input that begins with a dash
set -U -- $varname $value 2>/dev/null
end
end