i810: missing modes when unpluging CRT

Colin Guthrie gmane at colin.guthr.ie
Mon Feb 5 10:32:44 PST 2007


Dan Nicholson wrote:
> If you really want to test whether $? is 0 or 1, use numeric expansion
> (in bash)
> 
> if (( $? )); then
>    failure case
> else
>    true case
> fi

Or in sh (I think... perhaps this /is/ a bashism - i generally don't
checkup on these things as I'm very lazy and find it quicker for more
intellegent people to correct me when I'm stupid in public :p)

if [ $? -eq 0 ]; then
  success case
else
  failure case
fi

(note the change in order to the first example).

Col.
....





More information about the xorg mailing list