From a53bf1ff1d27ca6fd98f6ef5e4ba95b7623079e6 Mon Sep 17 00:00:00 2001 From: Oswaldo Caballero Date: Sat, 1 Apr 2017 10:58:44 -0400 Subject: [PATCH] Updated SC2095 (markdown) --- SC2095.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SC2095.md b/SC2095.md index bcab03d..ceb32f6 100644 --- a/SC2095.md +++ b/SC2095.md @@ -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`.