Given such situation:
echo "Please enter your name" read name # user enters: john smith echo $name # prints: john
What could cause
read to read only the first word of the input?
Is there a shell variable that controls this?
I came across this in a question on Ask Ubuntu and I'm wondering how to reproduce this behavior.