This is pretty much all covered in the docs for system().
Why does adding a redirect to /dev/null increase the complexity enough to invoke the shell?
Because it's the shell that does the redirection.
🦛
In reply to Re^3: Effect of redirecting output to /dev/null on $? value
by hippo
in thread Effect of redirecting output to /dev/null on $? value
by Special_K
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |