Skip to content

Decide Whether secrets.sh Drops readarray for a Bash 3.2 Loop or macOS Gets a Bash 4.4 Floor #4408

Backlog

Description

@ptr727

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:

  1. 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.
  2. 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.

Activity

  1. added
    decision
    on Nov 24, 2026
  2. ptr727 commented on Nov 25, 2026

    @ptr727
    OwnerAuthor

    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.

  3. removed
    decision
    on Nov 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions