Date: Tue, 5 Aug 2008 20:10:17 -0400 (EDT) From: Stuart Barkley <stuartb@4gh.net> To: freebsd-ports@freebsd.org Subject: Re: bsd-grep-20080725_1 -v flag busted... Message-ID: <alpine.BSF.1.10.0808051949190.6204@freeman.4gh.net> In-Reply-To: <F27A7002-ED04-4A67-A95B-C45782700FD4@mac.com> References: <56E45E0F-29D4-4CA8-9936-384405AB874A@mac.com> <4897518D.4090001@FreeBSD.org> <20080804201806.GA50143@nagual.pp.ru> <F27A7002-ED04-4A67-A95B-C45782700FD4@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --0-82948907-1217981418=:6204 Content-Type: TEXT/PLAIN; charset=ISO-8859-15 Content-Transfer-Encoding: 8BIT On Mon, 4 Aug 2008 at 16:32 -0000, Chuck Swiger wrote: > (I'm much more interested in confirming whether the bug I see in BSD > grep is reproducible by others than debating how to get real > newlines from various shells.) Yes, I was seeing problems building several ports with the latest bsdgrep port. Specifically the neon28 and avifile ports where hanging in the ./configure phase as shown at in the original message in this thread. The problem appeared to be in the return code from grep. It looked like ./configure was in a loop doing a 'grep . file' as a method of testing for an empty file. Using tcsh: % set printexitvalue % /usr/bin/grep . < /dev/null Exit 1 % /usr/bin/grep -V grep (GNU grep) 2.5.1-FreeBSD 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. % % /usr/local/bin/grep . < /dev/null Exit 1 % /usr/local/bin/grep -V grep (BSD grep) 2.5.1-FreeBSD % pkg_info -I bsd-grep\* bsd-grep-20080723 BSD-licensed version of grep from OpenBSD % % pkg_delete bsd-grep\* % pkg_add ~/bsd-grep-20080725_1.tbz % /usr/local/bin/grep . < /dev/null ÿ % /usr/local/bin/grep -V grep (BSD grep) 2.5.1-FreeBSD % pkg_info -I bsd-grep\* bsd-grep-20080725_1 BSD-licensed version of grep from OpenBSD % Also, note that there IS output when grepping from /dev/null with the 20080725_1 version of bsdgrep: % /usr/local/bin/grep . < /dev/null | hd 00000000 ff 0a |..| 00000002 % Stuart Barkley --0-82948907-1217981418=:6204--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.1.10.0808051949190.6204>