On Sun, Feb 09, 2025 at 12:30:33 +0700, Robert Elz wrote:
>   | and "read -p" for the prompt.
> 
> which could be just a printf without a trailing \n before the
> read -- but doesn't need to be as read -p is in the standard.

Oh, that must be another 2024 change.  The manpages-posix package I've
got on Debian is older (version "2017a-2"), and doesn't have read -p.

If something was *just* added to POSIX less than a year ago, it's not
a safe bet that all implementations will have it already.  If portability
is the goal, I'd still go with printf + read for a while.

Reply via email to