Re: git grep argument parser bug

2016-02-04 Thread Duy Nguyen
On Fri, Feb 5, 2016 at 5:02 AM, Dylan Grafmyre wrote: > In both ubuntu versions of git 1.9.1 and 2.7.0 > > git grep '-test' > git grep '--help' (Un)Quoting is done by shell and stripped out before "git" is executed. We just don't see them. > Or any other expressions literal leading with

Re: git grep argument parser bug

2016-02-04 Thread Junio C Hamano
Dylan Grafmyre writes: > In both ubuntu versions of git 1.9.1 and 2.7.0 > > git grep '-test' > git grep '--help' > > Or any other expressions literal leading with a single dash or double > dash get interpreted as argument flags and not as search expressions. > ... > What I expect is grep

git grep argument parser bug

2016-02-04 Thread Dylan Grafmyre
In both ubuntu versions of git 1.9.1 and 2.7.0 git grep '-test' git grep '--help' Or any other expressions literal leading with a single dash or double dash get interpreted as argument flags and not as search expressions. What I expect is grep results for the literal strings "-test" and