Command read
Name
read Reads one line from stdin and assigns to variablesSynopsis
read var1 [var2 ... varn]Reads one line from stdin, splits the line into fields using any of the charactors in the IFS variable (default space,tab),
and assigns the values to the specified variables.
Example:
read a b <<EOF string1 string2 EOF echo $a $b
Result
string1 string2
Commands
CategoryCommands
that the input is terminated.
read a b
Is needed, no more.
Without the <<EOF then "read a b" will read from stdin.
But I agree it could be clarified that this is intentionally both an example of read and of here documents in one.