Eli Fulkerson .com HomeProjectsExitcode
 

Exitcode

Exitcode takes a single word in from stdin - the first word of the first line, ignoring all else. It then converts it into an integer and exits with that code. It can only return 0-255 due to the nature of things. This allows you to move arbitrary values into $?.

License:

GPLv3

Download:

source code - compile with g++ -std=c++11 -o exitcode exitcode.cpp