You'll see two processes that fork without an exec.
I'm pretty confident these are the printf calls in demo_script.sh.
It's possible that somehow the shell builtin printf is getting called,
but I tried to avoid that by calling command -v printf directly.
Steps to reproduce:
You'll see two processes that
fork
without anexec
. I'm pretty confident these are theprintf
calls indemo_script.sh
. It's possible that somehow the shell builtinprintf
is getting called, but I tried to avoid that by callingcommand -v printf
directly.