On Fri, Feb 23, 2007 at 03:02:14PM +0100, Benno Schulenberg wrote:
> Justin Pryzby wrote:
> > grep segfaults when invoked like:
> >
> > { echo h; echo yz; } |grep -A1 -m1 "`echo h; echo zz`"
> 
> It does not segfault here:
> 
> $ { echo h; echo yz; } | grep -A1 -m1 "`echo h; echo zz`"
> h
> yz
> 
> This is with grep-2.5.1a, the released tarball, the Gentoo version, 
> and the CVS version -- all okay.  What version are you using?
grep (GNU grep) 2.5.1

Copyright 1988, 1992-1999, 2000, 2001 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  grep           2.5.1.ds2-6    GNU grep, egrep and fgrep

It segfaults on redhat too (with the same upstream version).

Justin


Reply via email to