When I try to use the read command in Bash like this:
read
echo hello | read str echo $str
Nothing echoed, while I think str<
str<
Other bash alternatives that do not involve a subshell:
read str <