On my Raspberry pi, when I call OS commands via the exec mode, they seem to be executed in the Bash shell (which is good since /bin/sh is the slimline Dash shell).
Is /bin/bash invoked explicitly or is it just whichever shell Node-red was started from?
Or something else, a parameter maybe?