Assuming I have this shell program :
foo.sh
#!/bin/sh
sum()
{
return 260
}
#main
sum
TMP=$?
echo$TMP
return $TMP
When running echo $? I get only the first 8 bits of the returned number 260 : 100000100 => 00000100 => 4 .
Is there any explanation for this ?
Does this mean that my ubuntu supports only 8 bits ?