Re: Bug in bash read builtin, info from while read REPLY leaking into se
From:
Greg Wooledge
Subject:
Re: Bug in bash read builtin, info from while read REPLY leaking into separate red -r -p "$1" command in function
Date:
Sun, 9 Feb 2025 08:52:07 -0500
User-agent:
Mutt/1.10.1 (2018-07-13)
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.