(color_to_string): Implement. (shell_pattern_to_regex): Handle alternative syntax '^' for negation of character classes properly.