Funkaspuck.com
exit = 1 on SUSE

So I discovered an unusual quirk to SUSE linux the other day. It seems that, unlike every other unix I've tested, you get a return code of 1, if you do a check (echo $?) without having executed anything first. I didn't run into it myself, because I always use true as my default remote execute, so there's always something to check. Some people seem afraid of true. I'm not sure why.

[email protected]:~/> bash

[email protected]:~/> echo $?

1


vs


-bash-3.1$ bash

bash-3.1$ echo $?

0

2007-05-09