Oleg Nesterov wrote: > $ sh -c 'while true; do /bin/true; done' Be careful that 'sh' is actually 'bash'. It isn't on a lot of machines. To ensure that you are actually running bash you should call bash explicitly. (At least we can't assume you are running bash otherwise.)
Is the behavior you observe any different for this case? $ bash -c 'while true; do /bin/true || exit 1; done' Or different for this case? $ bash -e -c 'while true; do /bin/true; done' Bob