4 ms·
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. Th
by ben509 8y ago
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...