From owner-freebsd-current@FreeBSD.ORG Sun Nov 27 11:08:16 2011 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E5F6B106564A; Sun, 27 Nov 2011 11:08:15 +0000 (UTC) (envelope-from jbeich@tormail.net) Received: from server2.hudsonvalleyhost.com (server2.hudsonvalleyhost.com [66.7.195.77]) by mx1.freebsd.org (Postfix) with ESMTP id 907188FC0A; Sun, 27 Nov 2011 11:08:12 +0000 (UTC) Received: from c-824570d5.03-168-6b6c6d1.cust.bredbandsbolaget.se ([213.112.69.130]:35499 helo=internal.tormail.net) by server2.hudsonvalleyhost.com with esmtpsa (TLSv1:RC4-SHA:128) (Exim 4.69) (envelope-from ) id 1RUcaf-002V4E-CM; Sun, 27 Nov 2011 06:08:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tormail.net; s=tm; h=Message-Id:X-TorMail-User:Content-Type:MIME-Version:Date:References:In-Reply-To:Subject:Cc:To:From; bh=PiW0HveVuTliaXZBUkvUQaFjNIasHHfD9z3RFnNWHcY=; b=Hl4XxECH4Ntg3tee/FCxXnentrHgqCw8DLjvkUlKK4x06RvxVVIdgRifXZYhqeVEXwECmyojL//bTjuhQDCobRq+SGIS6MaHP+2PQLEPD4aTAbI42RSjfe5LnHtFFbTKxDuDoU53dHCIPpIZfczqT0kPw5fOjEKVTDrRRdC0hNE=; Received: from jbeich by internal.tormail.net with local (Exim 4.63) (envelope-from ) id 1RUcaG-000Pux-OQ; Sun, 27 Nov 2011 11:07:45 +0000 From: Jan Beich To: "O. Hartmann" In-Reply-To: <1RUbug-000P7m-2d@internal.tormail.net> (Jan Beich's message of "Sun, 27 Nov 2011 09:24:15 -0100") References: <4ED20A68.90102@zedat.fu-berlin.de> <1RUbug-000P7m-2d@internal.tormail.net> Date: Sun, 27 Nov 2011 19:07:30 +0800 MIME-Version: 1.0 Content-Type: text/plain X-TorMail-User: jbeich Message-Id: <1RUcaG-000Pux-OQ@internal.tormail.net> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - server2.hudsonvalleyhost.com X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tormail.net X-Source: X-Source-Args: X-Source-Dir: Cc: FreeBSD , Current@FreeBSD.ORG, =?utf-8?B?R8OhYm9yIEvDtnZlc2TDoW4=?= Subject: Re: bsdgrep --null has no effect X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 27 Nov 2011 11:08:16 -0000 Jan Beich writes: > "O. Hartmann" writes: > >> ===> Patching for stellarium-0.11.1 >> sed: >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/src/core/external/fixx11h.h >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/src/CMakeLists.txt >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TelescopeControl/src/TelescopeControl.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Oculars/src/Oculars.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/CompassMarks/src/CompassMarks.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TextUserInterface/src/TextUserInterface.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Supernovae/src/Supernovae.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/SolarSystemEditor/src/SolarSystemEditor.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/Satellites/src/Satellites.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/HelloStelModule/src/HelloStelModule.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/TimeZoneConfiguration/src/TimeZoneConfiguration.hpp >> /usr/ports/astro/stellarium/work/stellarium-0.11.1/plugins/AngleMeasure/src/AngleMeasure.hpp >> : File name too long >> *** Error code 1 > > Do you use bsdgrep? ${GREP} -Rl --null ... | ${XARGS} -0 ... won't work. > > $ gnugrep -l --null . /usr/include/md*.h | vis > /usr/include/md2.h\^@/usr/include/md4.h\^@/usr/include/md5.h\^@ > > $ bsdgrep -l --null . /usr/include/md*.h | vis > /usr/include/md2.h > /usr/include/md4.h > /usr/include/md5.h Oops, here is a diff. Non -l/-L case still seems to be broken. $ echo t >a; echo t >b; echo t >c $ gnugrep --null . ? | vis a\^@t b\^@t c\^@t $ bsdgrep --null . ? | vis a\^@:t b\^@:t c\^@:t Index: usr.bin/grep/util.c =================================================================== --- usr.bin/grep/util.c (revision 228003) +++ usr.bin/grep/util.c (working copy) @@ -246,9 +246,9 @@ procfile(const char *fn) printf("%u\n", c); } if (lflag && !qflag && c != 0) - printf("%s\n", fn); + printf("%s%c", fn, nullflag ? 0 : '\n'); if (Lflag && !qflag && c == 0) - printf("%s\n", fn); + printf("%s%c", fn, nullflag ? 0 : '\n'); if (c && !cflag && !lflag && !Lflag && binbehave == BINFILE_BIN && f->binary && !qflag) printf(getstr(8), fn);