Re:Bash functions are better than I thought
by chaps on Sunday October 31, 2021 @08:36PM
(#29061904)
And what makes you think side effects aren't possible in the model described?
Think of grep as a way to control flow. If one side effect happens, send to stdout one thing. Another side effect, send something else. Then iterate over those outputs.
Think of grep as a way to control flow. If one side effect happens, send to stdout one thing. Another side effect, send something else. Then iterate over those outputs.