News for hackers. Stuff that matters.
Re:Something about functions in Bash (2017) by ben509 on Thursday July 05, 2018 @07:00PM (#17467597)
Even more fun: I was working on an unholy bash script that had a long curly brace block, and I was wondering why none of the environment variables survived.

Then I noticed, tucked away at the end:

      ...
      kill --all humans
      touch $children
      fork yourself
    } | log
Because, you see, components of a pipeline have to be run in subshells...

There are no comments on this comment yet.