You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Decide Whether secrets.sh Drops readarray for a Bash 3.2 Loop or macOS Gets a Bash 4.4 Floor #4408
Split out of #3933 by the away-mode backlog-burndown run (2026-11-24, round 3). #3933 is held for the macOS lane anyway, because the defect reproduces only on macOS and no CI job runs there. This records the one choice its fix leaves open, so the session that picks it up does not have to ask.
Question:lib/sh/secrets.sh splits a path with readarray -d / in secret_state, which needs bash 4.4, and stock macOS ships bash 3.2. #3933 proposes either replacing it with a loop that runs on bash 3.2, or stating a bash 4.4 floor that host_gate.py enforces on macOS. Which one?
Options, recommended first:
Replace readarray -d with a loop that runs on bash 3.2 (recommended). The library is carried byte-for-byte, so this makes it run on a stock macOS host with nothing else installed. It adds no floor, no gate check, and no Homebrew bash to the host contract. tests/test_secrets_sh.py can pin the loop's behavior on Linux, and the macOS run is still owed.
State a bash 4.4 floor and enforce it on macOS through host_gate.py. The library code stays as it is, but every macOS host then needs a newer bash before the secrets group runs, and spec/host-tools.json gains a bash entry that the docs then have to describe.
The portable stat half of #3933 is determined by the issue and needs no answer here. Nothing is in flight for #3933.
Answered by the maintainer (decision triage, 2026-11-25): macOS gets a bash 4.4 floor, and lib/sh/secrets.sh keeps readarray -d.
spec/host-tools.json gains a bash entry with a 4.4 floor and a macOS source and remedy (Homebrew bash).
scripts/host_gate.py enforces that floor on macOS.
docs/host-setup.md describes it.
The floor also covers any other bash 4 construct in repo-config/configure.sh. A macOS run is still owed for verification, per #3933. The issue stays open as work.
Activity
ptr727 commentedon Nov 25, 2026
Answered by the maintainer (decision triage, 2026-11-25): macOS gets a bash 4.4 floor, and
lib/sh/secrets.shkeepsreadarray -d.spec/host-tools.jsongains abashentry with a 4.4 floor and a macOS source and remedy (Homebrew bash).scripts/host_gate.pyenforces that floor on macOS.docs/host-setup.mddescribes it.The floor also covers any other bash 4 construct in
repo-config/configure.sh. A macOS run is still owed for verification, per #3933. The issue stays open as work.