bootstrap: Fix interactive prompts when sourced from zsh by mapitman · Pull Request #30 · mapitman/linux-bootstrap
read -p in bash means "display a prompt string", but in zsh read -p means "read from a coprocess". Since these scripts are sourced (not executed), they run in the caller's shell. When sourced from zsh, read -p fails with "no coprocess" and REPLY is never set, causing all optional install blocks to be silently skipped. Replace read -p "PROMPT" -n 1 -r with printf + read -r REPLY </dev/tty across debian, ubuntu, pop_os bootstraps and fedora/set-hostname. Using </dev/tty ensures the prompt reads from the terminal even when the script is sourced via process substitution (source <(curl ...)). Fixes: bash scripts/check.sh passes, works in both bash and zsh. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>