In bash script, I need to run a command, which is a &&
compound, I wonder what’s the difference between put it in a subshell, and just run it in if
condition?
if ! ( cmd_A && cmd_B ); then
doSth
fi
vs.
if ! cmd_A && cmd_B; then
doSth
fi