0

I have the following (reduced) function in my bash_profile

function gg()
{
    search=$1
    
    search=\"$search\"
    echo "git grep -i $search"
    git grep -i $search
}

I've added the "-quotes to the search variable, becuase the search literal can contains several words and the variable hasn't quotes anymore. The echo is correct (e.g. test "who is there" ---> git grep -i "who is there"), but I get no result...

Do you have any idea?

Jochen
  • 1

0 Answers0