Oops, == should really be = when used with test ([ and ]).