oh:
if ($1 != -g) works even if $1 doesn't exist?