4 votes

How and why does using redirection or writing files within an if statement affect exit code?

$? In the PARAMETERS SET BY THE SHELL section of man zshparam, or info zsh 'Parameters Set By The Shell' you'll see that, $? is the exit status returned by the last command. $(...) In man zshexpn or ...
aviro's user avatar
  • 3,895

Only top scored, non community-wiki answers of a minimum length are eligible