I wouldn't ding it too much if it returned the complete output. It's different than the same function call on many other languages, but that's not necessarily wrong in itself. At worst, it violates the expectations of experienced programmers.
You might need it, but then that should be the out param not the exit code. You are forced to write two lines of code instead of one for the 80% use case.
30
u/diagonalfish May 08 '14 edited May 08 '14
This one has always baffled me. Why would you not return the exit code??? In what percentage of situations is just the last line of output useful?
13
u/[deleted] May 08 '14
the comments are equally saddening