Updated SC2095 (markdown)

Oswaldo Caballero
2017-04-01 10:58:44 -04:00
parent 960760ea30
commit a53bf1ff1d

@@ -23,7 +23,7 @@ done < hosts.txt
Commands that process stdin will compete with the `read` statement for input. This is especially tricky for commands you wouldn't expect reads from stdin, like `ssh .. uptime`, `ffmpeg` and `mplayer`.
The most common symptom of this is a `while read` loop only running once, even though the input contains many lines. The is because the rest of the lines are swallowed by the offending command.
The most common symptom of this is a `while read` loop only running once, even though the input contains many lines. This is because the rest of the lines are swallowed by the offending command.
To refuse such commands input, redirect their stdin with `< /dev/null`.