Peng Yu wrote:
> The following example shows that "\" at the line end means line
> continuation. Is this wrong? Or I misunderstand the document?
You forgot to quote the EOF part. See the stackoverflow reference.
Therefore the shell interpreted the string contents before 'read'
processing.
> read -r -d '' VAR <<EOF
Add quotes there.
read -r -d '' VAR <<'EOF'
Again, this has to do with the here-document part and not the 'read' part.
Bob