1
gcc -Wl,--defsym,main=getchar -static -o gc
1 2 3 4 5 6 7
echo 9 | ./gc ; echo $? echo e | ./gc ; echo $? echo [ | ./gc ; echo $? printf \\b | ./gc