BSD grep dumps core

From: Steve Kargl <sgk_at_troutmask.apl.washington.edu>
Date: Sun, 31 Jul 2016 08:37:38 -0700
Script started on Sun Jul 31 08:30:56 2016
troutmask:sgk[200] cd gcc/gcc7
troutmask:sgk[201] svn status
?       7.diff
?       decl.c.diff
?       gcc/fortran/old
?       gcc/fortran/pr38351.diff
?       gcc/fortran/pr41922.diff
?       gcc/fortran/pr69860.diff
?       trans-decl.c.diff
?       typescript
?       z1.diff
troutmask:sgk[202] svn status | grep -v -E ^\?
Segmentation fault (core dumped)
troutmask:sgk[203] svn status | grep -v -E ^"\?"
troutmask:sgk[204] exit
exit

Script done on Sun Jul 31 08:31:54 2016

The core dump happens with both tcsh and sh.

The following works as expected

troutmask:sgk[202] svn status | gnugrep -v -E ^\?

-- 
Steve
Received on Sun Jul 31 2016 - 13:53:40 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:07 UTC