A pipeline can change where assignment occurs
printf 'hello world\n' | read -r first second
Under normal Bash pipeline behavior, read runs in a subshell. The parent does not retain its assignments. Bash lastpipe settings can alter the last component's environment.
read -r first second < fields.txt
With the supplied file, the current shell retains hello and world. The lesson tests both paths explicitly.