How can a called external program unexpectedly interfere with the shell’s variables in bash/sh/ash like this?
I have had a baffling issue for years where some programs (like ffmpeg) called from a while
-loop in bash
, sh
or busybox ash
interfere with either the read
built-in or the shell itself, consistently on every other iteration.