I\'m trying to add a function to my bash_profile for msysgit:
bash_profile
function git-unpushed { brinfo=$(git branch -v | grep git-branch-name) if
According to https://groups.google.com/forum/#!topic/msysgit/yPh85MPDyfE this is because msys doesn't ship libregex along with bash. Supposedly if you compile/find an msys built libregex, and put it in the library path, =~ starts working fine.
=~