diff --git a/doc_src/cmds/read.rst b/doc_src/cmds/read.rst index b26f92a81..ab19e063a 100644 --- a/doc_src/cmds/read.rst +++ b/doc_src/cmds/read.rst @@ -106,7 +106,7 @@ The following code stores the value 'hello' in the shell variable :envvar:`foo`. echo hello|read foo -While this is a neat way to handle command output line-by-line:: +The :doc:`while ` command is a neat way to handle command output line-by-line:: printf '%s\n' line1 line2 line3 line4 | while read -l foo echo "This is another line: $foo"