echo takes -n, -e and -E only before its first operand, so echo 'git commit -m x' -n prints git commit -m x -n and runs the bypass when it is piped into sh. The producer text removed the -n wherever it stood and lost the flag. printf '%s' reuses its format for every argument without a separator, so printf '%s' 'git pu' 'sh --no-verify' writes git push --no-verify, but the arguments were joined with newlines. Both passed on main as well.