Hi,

I was running into some unexpected behavior with bash and reading from
a pipeline, and am starting to wonder if im running into a bug or
whether im just doing something wrong.

For example, if I type the following :

echo foo | read VAR
echo $VAR

I would expect the the variable named VAR to contain the value foo.
Instead, the variable foo remains empty. Is this a bug or am I doing
something wrong ?




Sincerely,


John Smith


Reply via email to