You can use the variable CORRECT_IGNORE to exempt commands from correction. E.g.: CORRECT_IGNORE="_*|rm" AFAICT correction takes account of keyboard layout, which would explain why "grem" was corrected to "rm" (e,r and g are close together on qwerty keyboards, m and p are further apart).