Archive

All articles

51 articles, page 5 of 6

Bash

yesno() in Bash: Ask a Yes/No Question Safely

A yes/no confirmation prompt for Bash scripts that accepts any case, has an optional default and handles cron, pipes and EOF without looping forever.

6 min read, updated 17 Oct 2026