Syntax error =~ operator in msysgit bash

后端 未结 4 1903
迷失自我
迷失自我 2020-12-18 19:40

I\'m trying to add a function to my bash_profile for msysgit:

function git-unpushed {
    brinfo=$(git branch -v | grep git-branch-name)
    if          


        
4条回答
  •  心在旅途
    2020-12-18 19:53

    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.

提交回复
热议问题