I'm confused about this behavior:
$ unset REPLY
$ echo testing | read
$ echo $REPLY
echos a newline only (from echo). But this:
$ echo testing > tmpfile
$ read < tmpfile
$ echo $REPLY
testing
has expected behavior of setting REPLY from stdin.
Seems to me, should be the same behavior in both cases.
Is this expected behavior?