mirror of
https://github.com/koalaman/shellcheck.git
synced 2025-10-03 19:29:44 +08:00
Updated SC2031 (markdown)
@@ -74,3 +74,9 @@ This applies not only to setting variables, but also setting shell options and c
|
|||||||
### Exceptions
|
### Exceptions
|
||||||
|
|
||||||
You can ignore this error if you don't care that the changes aren't reflected, because work on the value branches and shouldn't be recombined.
|
You can ignore this error if you don't care that the changes aren't reflected, because work on the value branches and shouldn't be recombined.
|
||||||
|
|
||||||
|
### Related resources:
|
||||||
|
|
||||||
|
* [BashFaq: I set variables in a loop that's in a pipeline. Why do they disappear after the loop terminates?](https://mywiki.wooledge.org/BashFAQ/024)
|
||||||
|
* [Bash Pitfalls: grep foo bar | while read -r; do ((count++)); done](https://mywiki.wooledge.org/BashPitfalls#pf8)
|
||||||
|
* [StackOverflow: A variable modified inside a while loop is not remembered](https://stackoverflow.com/questions/16854280/a-variable-modified-inside-a-while-loop-is-not-remembered)
|
||||||
|
Reference in New Issue
Block a user