I\'ve been looking through some of the .bashrc and .profile scripts that come with various Linux distros and am seeing that sometimes they check $-
.
Her
They mean various things. Each letter corresponds to an option being set for bash. eg, "i" means that the shell is interactive (so the code sample you gave is a test to see if it's an interactive shell or not).
A full list is available in the bash man page. Look for "set" - here's the first line:
set [+abefhkmnptuvxBCEHPT] [+o option-name] [arg ...]