bug#41262: Weird behavior with grep regex

2020-05-14 Thread Gary Johnson
On 2020-05-14, loic.tregouet wrote: > Hi, > > I've reproduced a strange behaviour of grep command when a file > name of a single letter is present in current directory . > > $ echo a | grep [a-z] > a > $ touch t > $ echo a | grep [a-z] > $ rm t > $ echo a | grep [a-z] > a > $ > > > Any idea ?

bug#41262: Weird behavior with grep regex

2020-05-14 Thread Shlomi Fish
Hi Loic! On Thu, 14 May 2020 13:57:48 + wrote: > Hi, > > I've reproduced a strange behaviour of grep command when a file name of a > single letter is present in current directory . > > $ echo a | grep [a-z] > a > $ touch t > $ echo a | grep [a-z] > $ rm t > $ echo a | grep [a-z] > a > $ >

bug#41262: Weird behavior with grep regex

2020-05-14 Thread loic.tregouet
Hi, I've reproduced a strange behaviour of grep command when a file name of a single letter is present in current directory . $ echo a | grep [a-z] a $ touch t $ echo a | grep [a-z] $ rm t $ echo a | grep [a-z] a $ Any idea ? Regards