mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2095 (markdown)
@@ -25,7 +25,9 @@ Commands that process stdin will compete with the `read` statement for input. Th
|
|||||||
|
|
||||||
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.
|
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`.
|
To refuse such commands input, redirect their stdin with `< /dev/null`.
|
||||||
|
|
||||||
|
You can also use command specific options like `ssh -n` and `mplayer -noconsolecontrols`.
|
||||||
|
|
||||||
### Exceptions:
|
### Exceptions:
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user