Re: grep ".one\|.two" doesn't work on OpenBSD. Is it expected?

2019-05-21 Thread Ingo Schwarze
Hi, Todd C. Miller wrote on Mon, May 20, 2019 at 01:22:21PM -0600: > On Mon, 20 May 2019 20:01:12 +0200, Juan Francisco Cantero Hurtado wrote: >> The grep command works with GNU, NetBSD, FreeBSD and BusyBox. It fails >> on OpenBSD and Solaris 11. I'm suggesting upstream to change the command >>

Re: grep ".one\|.two" doesn't work on OpenBSD. Is it expected?

2019-05-20 Thread Juan Francisco Cantero Hurtado
On Mon, May 20, 2019 at 01:22:21PM -0600, Todd C. Miller wrote: > On Mon, 20 May 2019 20:01:12 +0200, Juan Francisco Cantero Hurtado wrote: > > > The grep command works with GNU, NetBSD, FreeBSD and BusyBox. It fails > > on OpenBSD and Solaris 11. I'm suggesting upstream to change the command > >

Re: grep ".one\|.two" doesn't work on OpenBSD. Is it expected?

2019-05-20 Thread Paul de Weerd
On Mon, May 20, 2019 at 08:01:12PM +0200, Juan Francisco Cantero Hurtado wrote: | I've a test in one of my ports similar to this: | | $ cat test.txt | $TESTTMP/hgcache/master/packs/7bcd2d90b99395ca43172a0dd24e18860b2902f9.histpack |

Re: grep ".one\|.two" doesn't work on OpenBSD. Is it expected?

2019-05-20 Thread Todd C . Miller
On Mon, 20 May 2019 20:01:12 +0200, Juan Francisco Cantero Hurtado wrote: > The grep command works with GNU, NetBSD, FreeBSD and BusyBox. It fails > on OpenBSD and Solaris 11. I'm suggesting upstream to change the command > to "grep -e ".datapack" -e ".histpack"" but I would like to know if this

grep ".one\|.two" doesn't work on OpenBSD. Is it expected?

2019-05-20 Thread Juan Francisco Cantero Hurtado
I've a test in one of my ports similar to this: $ cat test.txt $TESTTMP/hgcache/master/packs/7bcd2d90b99395ca43172a0dd24e18860b2902f9.histpack $TESTTMP/hgcache/master/packs/dc8f8fdc76690ce27791ce9f53a18da379e50d37.datapack $ cat test.txt | grep ".datapack\|.histpack" $ cat test.txt | ggrep